[OpenLayers-Users] NavToolbar BUG ?? ScrollWheel Zoom / MapClick ?

2010-02-18 Thread Bytechanger
Hi, when I add the NavToolbar to my map then : - when I scroll with the mousewheel, the zoom-level steps not 10, 11, 12 it steps 10,12,14, ... - the mousclick event doesn´t work anymore ! when I remove the toolbar all this thinks works fine ! Greetings Byte -- View this message in context

Re: [OpenLayers-Users] Accessing the events of DrawFeature and ModifyFeature to calculate area

2010-02-18 Thread Albert Ang
Hi Christoph, thank you very much for your assistance. I tried the following and it works beautifully. One little problem is the closing of the polygon vertices. Before adding the events listeners, a simple double-click will close the polygon. After adding the events, sometimes I need to double-cl

[OpenLayers-Users] Multiple invoke by zoom, very bad performance

2010-02-18 Thread johnalvarado
Hello, I need your help. I have a problem with openlayers in performance. I have an application that has an interface where I show a map that is composed of two layers, but do not directly invoking the Web service GIS, I do it through a servlet, I apply a logic and stores information in a databas

Re: [OpenLayers-Users] help (pgrouting)

2010-02-18 Thread Stephen Woodbridge
Ricardo Rodríguez wrote: > hello all, it is possible that openlayers, work DIRECTLY with postgres, > postgis and mapserver without pgrouting or need something WFS, which > recommend. > additionally there are tutorials or examples that utilize these programs OpenLayers runs in your browser and it

Re: [OpenLayers-Users] Changing the srs of a map

2010-02-18 Thread Christopher Schmidt
On Thu, Feb 18, 2010 at 11:25:39PM +0100, Andreas Hocevar wrote: > Phil Scadden wrote: > > I am wanting to change the SRS of map "on the fly", (largely dependent > > on what imagery is selected am using as a backdrop). Can you just change > > it for an existing map or do you have to destroy the m

[OpenLayers-Users] Overview map with ArcIMS breaks

2010-02-18 Thread Vadim Bokin
Hi, Created a new ticket on Trac but didn't get a response there, so I'm wondering if this is a user error API error (http://trac.openlayers.org/ticket/2490). When an ArcIMS layer is a base layer, the overview map doesn't load and errors are throw in Grid.js.addTileMonitoringHooks(tile) the "

[OpenLayers-Users] help (pgrouting)

2010-02-18 Thread Ricardo Rodríguez
hello all, it is possible that openlayers, work DIRECTLY with postgres, postgis and mapserver without pgrouting or need something WFS, which recommend. additionally there are tutorials or examples that utilize these programs thanks for your answers Ricardo Rodríguez Ing. Topográfico Univalle

Re: [OpenLayers-Users] How do I transform deg decimal to TransverseMercator projection NAD27

2010-02-18 Thread Joel
Hi - I am restating my problem: How do I make a proj4 EPSG projection file that works to transform GPS deg decimal to TransverseMercator projection with adjusted bounds. I have my map and layers defined as the following: OpenLayers.DOTS_PER_INCH = 25.4 / 0.28;

Re: [OpenLayers-Users] OL + database

2010-02-18 Thread ngreen
Zer wrote: > > I can understand that you feel hesitant about installing another server, > but it's just a war-file that you can deploy in your container. Depending > of what server you are running, that is. > It isn't my server - that's why I said I don't even know if that's an option. And mo

Re: [OpenLayers-Users] Changing the srs of a map

2010-02-18 Thread Andreas Hocevar
Phil Scadden wrote: > I am wanting to change the SRS of map "on the fly", (largely dependent > on what imagery is selected am using as a backdrop). Can you just change > it for an existing map or do you have to destroy the map and recreate > with a the new srs? If your backdrop is a base layer,

Re: [OpenLayers-Users] OL + database

2010-02-18 Thread Zer
I can understand that you feel hesitant about installing another server, but it's just a war-file that you can deploy in your container. Depending of what server you are running, that is. Well anyway, good luck with your project! ZM -- View this message in context: http://n2.nabble.com/OL

Re: [OpenLayers-Users] OL + database

2010-02-18 Thread ngreen
I've half figured it out. I was reading OpenLayers.Handler.Drag instead of OpenLayers.Control.DragFeature. onComplete is OL and the equivalent property for new points is featureAdded - which works for new points. Hurrah! But using {featureAdded: onNewLine} for a line causes the linedraw feature

Re: [OpenLayers-Users] OL + database

2010-02-18 Thread ngreen
Zer wrote: > > Go with GeoServer's WMS/WFS protocols. Most likely it will save you > tremendous time and lots of teared out hair! :) > I wasn't aware of GeoServer. It does look handy though I'm trying to keep this simple. I don't know if installing new server software is even an option and I'm

Re: [OpenLayers-Users] OL + database

2010-02-18 Thread Christopher Schmidt
On Thu, Feb 18, 2010 at 12:41:04PM -0800, ngreen wrote: > > I forgot number 3 - what does the OpenLayers.Feature.Vector url thingy do? > The description for it says "If this property is set it will be taken into > account by {} when upadting or deleting the feature." > > Does that mean I could po

Re: [OpenLayers-Users] OL + database

2010-02-18 Thread Zer
Go with GeoServer's WMS/WFS protocols. Most likely it will save you tremendous time and lots of teared out hair! :) OpenLayers, GeoServer and PostGIS is a perfect combination. You will be off with just a few rows of js-code. MySQL will probably do if you do not need advanced GIS functionality.

[OpenLayers-Users] Changing the srs of a map

2010-02-18 Thread Phil Scadden
I am wanting to change the SRS of map "on the fly", (largely dependent on what imagery is selected am using as a backdrop). Can you just change it for an existing map or do you have to destroy the map and recreate with a the new srs? Notice: This email and any attachments are confidential. If r

Re: [OpenLayers-Users] OL + database

2010-02-18 Thread ngreen
I forgot number 3 - what does the OpenLayers.Feature.Vector url thingy do? The description for it says "If this property is set it will be taken into account by {} when upadting or deleting the feature." Does that mean I could point this to a particular script external to the map page which execu

Re: [OpenLayers-Users] OL + database

2010-02-18 Thread ngreen
Thank you. That does fill in some gaps. I'm trying to keep this simple for these friends though, so I'll probably stick to the mySQL database they currently have. I have made a bit of progress on this - passing map coords to form fields - but am stuck on two points. The below code will pass a d

Re: [OpenLayers-Users] Scale Control Position

2010-02-18 Thread Eric France
Oops! I was trying to start a new thread, but apparently my topic got appended to yours as a subthread. I did not mean to threadjack. Eric From: Zer To: users@openlayers.org Sent: Thu, February 18, 2010 1:03:08 PM Subject: Re: [OpenLayers-Users] Scale Cont

Re: [OpenLayers-Users] Accessing the events of DrawFeature and ModifyFeature to calculate area

2010-02-18 Thread Christoph Ratke
Hi Mr. Ang, you can have a look here: http://dev.openlayers.org/releases/OpenLayers-2.8/examples/modify-feature.html or here: http://dev.openlayers.org/releases/OpenLayers-2.8/examples/highlight-feature.html Have a good day, Christoph Albert Ang schrieb: > Dear all, > > I need assistance in u

[OpenLayers-Users] Error when cumputing attribute value in context for WFS styling

2010-02-18 Thread Zer
Hi, I'm also fighting with this problem. I stared out with this code: var myStyle = new OpenLayers.Style( { pointRadius :"${radius}", fillColor :'#00', fillOpacity :0.5, strokeColor :'#FF',

Re: [OpenLayers-Users] Scale Control Position

2010-02-18 Thread Zer
Hey! What happened to this thread? Did it just change subject by it self? What about my question? :) Well... I'd better open a new thread then ZM -- View this message in context: http://n2.nabble.com/problem-using-pointRadius-computed-in-context-tp1830106p4593293.html Sent from the OpenLa

Re: [OpenLayers-Users] click/hover select controls on one layer

2010-02-18 Thread Andreas Hocevar
Andreas Hocevar wrote: > Hi Rob, > > Robert Marianski wrote: >> I want to be able to handle both hover and click events on features in a >> vector layer. I created two select controls, one with hover set to true, >> added them to the layer, and activated them. >> >> What I'm seeing is that the cli

Re: [OpenLayers-Users] click/hover select controls on one layer

2010-02-18 Thread Andreas Hocevar
Hi Rob, Robert Marianski wrote: > I want to be able to handle both hover and click events on features in a > vector layer. I created two select controls, one with hover set to true, > added them to the layer, and activated them. > > What I'm seeing is that the click select control doesn't receive

Re: [OpenLayers-Users] Scale Control Position

2010-02-18 Thread Eric France
Thanks! Are these CSS classes and styles documented anywhere? Eric From: Christopher Schmidt To: Eric France Cc: OpenLayers Users Sent: Thu, February 18, 2010 11:58:28 AM Subject: Re: [OpenLayers-Users] Scale Control Position On Thu, Feb 18, 2010 at 08:40

Re: [OpenLayers-Users] Scale Control Position

2010-02-18 Thread Christopher Schmidt
On Thu, Feb 18, 2010 at 08:40:10AM -0800, Eric France wrote: > "The Scale control displays the current map scale as a ratio (e.g. > Scale = 1:1M). By default it is displayed in the lower right corner of > the map." > > This page does not seem to indicate how to change the default position of the

[OpenLayers-Users] Scale Control Position

2010-02-18 Thread Eric France
"The Scale control displays the current map scale as a ratio (e.g. Scale = 1:1M). By default it is displayed in the lower right corner of the map." This page does not seem to indicate how to change the default position of the scale display (I would like to move it to the lower left so that it i

[OpenLayers-Users] click/hover select controls on one layer

2010-02-18 Thread Robert Marianski
I want to be able to handle both hover and click events on features in a vector layer. I created two select controls, one with hover set to true, added them to the layer, and activated them. What I'm seeing is that the click select control doesn't receive any of featured selected events, but the h

Re: [OpenLayers-Users] problem using pointRadius computed in context

2010-02-18 Thread Zer
Hi, I'm also fighting with this problem. I stared out with this code: var myStyle = new OpenLayers.Style( { pointRadius :"${radius}", fillColor :'#00', fillOpacity :0.5, strokeColor :'#FF',

Re: [OpenLayers-Users] Appliaction loads the first google tile and then gives up

2010-02-18 Thread Steve . Toutant
Hi, These problems were fix after the release of OL 2.8. So you have the use a recent built of OL see the response of Andreas on another thread, please use a current trunk version of OpenLayers, not a patched 2.8 version. You can download a nightly build from http://trac.openlayers.org/wiki/HowToD

Re: [OpenLayers-Users] Appliaction loads the first google tile and then gives up

2010-02-18 Thread paweluz
Hi Andreas! I have tried using Openlayers2.7 and 2.8, and I still have this same problem? What version should I use -> http://openlayers.org/download/ ?? Regards, Poul -- View this message in context: http://n2.nabble.com/SelectFeature-control-and-click-event-on-marker-tp2186747p4591932.html

Re: [OpenLayers-Users] OL + database

2010-02-18 Thread Alexandre Dube
Hi, I'm not sure if I fully understand your need, but anyway here's a solution that could work for you : put your data in a PostGIS table and have them served by a "feature server". Then, create a vector layer in your OpenLayers application that connects to this "feature server". PostGIS : htt

Re: [OpenLayers-Users] wfs digitize

2010-02-18 Thread Sven Böhme
Hi David, thank you for the answer. That a nice example, but I hoped there would be an example without MapFish. Greetz Sven Am 17.02.2010 17:44, schrieb David Fawcett: > It isn't pure OpenLayers, but there is a MapFish example that may fit > your case at: > > http://demo.mapfish.org/mapfishsamp

Re: [OpenLayers-Users] Appliaction loads the first google tile and then gives up

2010-02-18 Thread Andreas Hocevar
On 2010-02-18 13:36, paweluz wrote: > I have this same problem. Did anyone solve it?? Please write > Make sure that your gwt plugin uses the latest nightly build of OpenLayers, not version 2.8. These issues should all be fixed now. Regards, Andreas. > > agul wrote: > >> Hi David I f

Re: [OpenLayers-Users] Appliaction loads the first google tile and then gives up

2010-02-18 Thread paweluz
I have this same problem. Did anyone solve it?? Please write agul wrote: > > Hi David I faced the sama problem but I couldnt solve if you find a way > please write... > > David Potts wrote: >> >> >> Hi >> >> Am trying to load a google map via the gwt plug in and its not working. >> >

Re: [OpenLayers-Users] GWT and Openlayers

2010-02-18 Thread paweluz
Hi! I know that the post is actually pretty old, but maybe you still remember what library did you choose, and why? I am looking for a java library too, I was actually thinking about using gwt-openlayers. I made an application using just js Openlayers and now I am tyring to rewrite it with GWT +

[OpenLayers-Users] Sailor wanted

2010-02-18 Thread Markus
Dear professionals, I have a nice customized mesurement-tool (made by Arnd/Tobias). Now I would like to integrate it in OpenSeaMap. Who can help me doing this? (Specification is finished in German, can be translated if necessary) Thanks a lot! Markus __

Re: [OpenLayers-Users] rewrite 00-map-with-wms.html in GWT and org.gwtopenmaps.openlayers library

2010-02-18 Thread paweluz
Hi Jim! I have this same problem Did you manage to deal with it?? I tried everything, on different server (glassfish, Jetty) and the problem still occurs. Please write to me whether you found the solution... Cheers, Poul www.gwtorm.com wrote: > > Anybody uses GWT and org.gwtopenmaps libra

Re: [OpenLayers-Users] Textfield Event Handling in a Custom Control

2010-02-18 Thread J.Schumann
Hello Michael and everyone else! I solved it now, using the way like OpenLayers.Popup works, register all the available events for this.div and stop event bubbling but don't prevent the default actions: OpenLayers.Event.stop(evt, true); The second param is the important one :-) Just check OpenLa

[OpenLayers-Users] vsdoc for Visual Studio intellisense?

2010-02-18 Thread Dylan Parry
Hi, I usually use Visual Studio for writing my code, and I was wondering if there is a “-vsdoc.js” file available for OpenLayers so that I can get code completion hints via Intellisense? I’ve had a look around, but I can’t find one. Does anyone know of such a file? Thanks, -- Dylan Parry __

Re: [OpenLayers-Users] Geometry.Collection (LineString) GetCentroid - fake?

2010-02-18 Thread BrainDrain
I need just center point of polyline that belongs to polyline. Ok, I'll do it with Linear Referencing System of NTS (C# port of JTS) [WebMethod(EnableSession = true)] [ScriptMethod(UseHttpGet = true)] public string GetCenterPoint(...) { //... return new NetTopologySuite.IO.WKTWriter().Write(

[OpenLayers-Users] Accessing the events of DrawFeature and ModifyFeature to calculate area

2010-02-18 Thread Albert Ang
Dear all, I need assistance in using the events of DrawFeature and ModifyFeature. Can anyone provide some examples? I use the DrawFeature and ModifyFeature as following but need guidance on how to use the events of DrawFeature (featureadded) and ModifyFeatures (featuremodified). Basically I like t

Re: [OpenLayers-Users] Problems using Layer.WMS.Post

2010-02-18 Thread Andreas Hocevar
On 2010-02-18 10:00, David Alda Fernandez de Lezea wrote: > Thanks for your help. What does trunk mean?? > Trunk is the development branch in Subversion, our code versioning system. The nightly builds are built off this version. Layer.WMS.Post was added *after* release 2.8, which is the latest

Re: [OpenLayers-Users] Problems using Layer.WMS.Post

2010-02-18 Thread David Alda Fernandez de Lezea
Hi, Thanks for your help. What does trunk mean?? Whenever a change is made, another build is also made? And is available as one file only?? I'm a bit confused withs names (trunk, nightly build, etc) If I create my own control, how can I add the control to this .js file?? Thanks again. -

Re: [OpenLayers-Users] Problems using Layer.WMS.Post

2010-02-18 Thread Andreas Hocevar
Hi, please use a current trunk version of OpenLayers, not a patched 2.8 version. You can download a nightly build from http://trac.openlayers.org/wiki/HowToDownload Regards, Andreas. On 2010-02-18 08:59, David Alda Fernandez de Lezea wrote: > Hello, thanks for your response. > > I'm trying to m