[OpenLayers-Users] OpenLayers - mixing Google and other projections - seeking an example?

2009-04-09 Thread Greg Cocks
Hello Again, I am trying to better learn how the Google projection works when mixed with other datasets in an OpenLayers 'function'. I have built OpenLayers 'functions' that bring them all in - but as you know they need to be reprojected. * If someone could be good enough to provide a 'work

Re: [OpenLayers-Users] Capturing when a drawn feature has been dragged - How??

2009-04-09 Thread plen
Arnd, Oh yeah. That works perfectly. Thanks for your help. - Peter Hi, I use this way ctrlDragFeature.onComplete = ctrlDragFeature_onComplete; Arnd -- View this message in context: http://n2.nabble.com/Capturing-when-a-drawn-feature-has-been-dragged---How---tp2613057p2614199.html Se

Re: [OpenLayers-Users] Capturing when a drawn feature has been dragged - How??

2009-04-09 Thread Arnd Wippermann
Hi, I use this way ctrlDragFeature.onComplete = ctrlDragFeature_onComplete; Arnd -Ursprüngliche Nachricht- Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von plen Gesendet: Donnerstag, 9. April 2009 21:47 An: users@openlayers.org Betreff: [OpenLayers

[OpenLayers-Users] Capturing when a drawn feature has been dragged - How??

2009-04-09 Thread plen
Hello, I am using the OpenLayers drawing controls for drawing points, lines, and polygons. For the "select" control, I have define it like: select: new OpenLayers.Handler.Feature( { map: MAP_OBJ }, getFeaturesLayer(),

Re: [OpenLayers-Users] Dynamic size of point using StyleMap

2009-04-09 Thread Christopher Schmidt
On Thu, Apr 09, 2009 at 05:49:20PM +0200, Jacolin Yves wrote: > Hello, > > Is it possible to use zoomLevel variable in a symbolizer object in > StyleMap? :) You can use min and max scale. -- Chris > Thanks, > > Y. > -- > Yves Jacolin > > Ne demandez pas si vous pouvez contribuer, contribuer

Re: [OpenLayers-Users] Issue creating Vector layer with data

2009-04-09 Thread Eric Lemoine
On Thu, Apr 9, 2009 at 3:39 PM, Christopher Schmidt wrote: > On Thu, Apr 09, 2009 at 03:32:33PM +0200, Jacolin Yves wrote: >> Hi, >> >> Le Thursday 09 April 2009 15:21:11 Christopher Schmidt, vous avez écrit : >> > [..] >> > >> > Are you using trunk, or 2.7? >> I am using 2.7 >> >> > 2.7 doesn't h

[OpenLayers-Users] Dynamic size of point using StyleMap

2009-04-09 Thread Jacolin Yves
Hello, Is it possible to use zoomLevel variable in a symbolizer object in StyleMap? :) Thanks, Y. -- Yves Jacolin Ne demandez pas si vous pouvez contribuer, contribuer ! :) --- http://softlibre.gloobe.org ___ Users mailing list Users@openlayers.org

[OpenLayers-Users] zoomToExtent based on a postgre table

2009-04-09 Thread Hugo
Hello, I'm trying to make a zoomToExtent based on a postgres table which has in the same column the values for defining a bounding box. So, for each record there i have one field with minx, miny, maxx and maxy (example of a record: "010101", "-8.341552734375, 40.4988288879395, -8.24995231628418, 4

Re: [OpenLayers-Users] [Geoserver-users] wfs, state plane, and spherical mercator

2009-04-09 Thread David Hollema
I tried #1 below and it works sometimes. The key was setting the srsName. That was the whole trick. Are those options like 'typeName', 'srsName', etc. case sensitive? Trouble is, my WFS layer only shows at small scales but not when zoomed in...what other things can I check. Is that a server

Re: [OpenLayers-Users] Issue creating Vector layer with data

2009-04-09 Thread Jacolin Yves
Hi, Le Thursday 09 April 2009 15:39:46 Christopher Schmidt, vous avez écrit : > > My final purpose was to move to GeoJSON format. But my GeoJSON data seems > > not good. I tried to use GeoJSON data made from ogr2ogr from a shape file > > (railway stations) and it is working. However I can't see th

Re: [OpenLayers-Users] Issue creating Vector layer with data

2009-04-09 Thread Christopher Schmidt
On Thu, Apr 09, 2009 at 03:32:33PM +0200, Jacolin Yves wrote: > Hi, > > Le Thursday 09 April 2009 15:21:11 Christopher Schmidt, vous avez écrit : > > [..] > > > > Are you using trunk, or 2.7? > I am using 2.7 > > > 2.7 doesn't have reprojection support. > Hum, this is strange because I succeed

Re: [OpenLayers-Users] Issue creating Vector layer with data

2009-04-09 Thread Jacolin Yves
Hi, Le Thursday 09 April 2009 15:21:11 Christopher Schmidt, vous avez écrit : > [..] > > Are you using trunk, or 2.7? I am using 2.7 > 2.7 doesn't have reprojection support. Hum, this is strange because I succeed to see my GML layer with the first method :/ It seems that was du to a cache prob

[OpenLayers-Users] Filling URL with OpenLayers.Util.getParameterString

2009-04-09 Thread Kai Behncke
Dear users, I try to fill an URL with: if (startPoint && stopPoint) { var result = { startpoint: startPoint.geometry.x + ' ' + startPoint.geometry.y, finalpoint: stopPoint.geometry.x + ' ' + stopPoint.geometry.y, method: OpenLayers.Util.getElement('

Re: [OpenLayers-Users] Issue creating Vector layer with data

2009-04-09 Thread Christopher Schmidt
On Thu, Apr 09, 2009 at 02:58:32PM +0200, Jacolin Yves wrote: > Hello, > > I am trying to create this vector layer after clicking on a buton: > > /*- code - > var styleMap = new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults( > {fillColor: "green", fillOpacity: 1, stroke

[OpenLayers-Users] Issue creating Vector layer with data

2009-04-09 Thread Jacolin Yves
Hello, I am trying to create this vector layer after clicking on a buton: /*- code - var styleMap = new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults( {fillColor: "green", fillOpacity: 1, strokeColor: "black"}, OpenLayers.Feature.Vector.style["default"]) ); var

[OpenLayers-Users] SwitchLayer behaviour ignoreEvent

2009-04-09 Thread Michal Seidl
Hi, I am trying to customize SwitchLayer but I can not figure out how it was designed to work. I want to add element to SwitchLayer but it has unusual behavior. I can not check it or uncheck it. I guess it has something with ignoreEvent function registered at begging of loadContets(). Can some