Re: [OpenLayers-Users] Deleting a vectore Feature leaves Vertex dirt on layer

2009-03-16 Thread Eric Lemoine
Hi Have you tried unselecting the feature - using selectControl.unselect(feature) - before deleting the feature? Cheers, Eric 2009/3/17, Dave Potts : > > If I attempt to delete a feature from a layer it seems to leave behind a > yellow spot at every point where a line join another, ie a vertext

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

2009-03-16 Thread sylvie fiat
Hi, Thanks for your reply, what I had for the radius value was ${radius} just like in the exemple. I figured out that my problem was not in the radius definition itself but in the layer definition, first my style definition was at the wrong place then I had to define the styleMap out of the v

[OpenLayers-Users] Markers that are too close to distinguish

2009-03-16 Thread Craig Stanton
Hi All, I'm trying to display a load of points (ranging from 5-2000 depending on user prefs) across New Zealand and many of them end up very close to another one. So close that you'd have to zoom in well below the level that the baselayer becomes a blur before being able to tell them apart.

Re: [OpenLayers-Users] Deleting a vectore Feature leaves Vertex dirt onlayer

2009-03-16 Thread Robert Sanson
Is this anything to do with this: http://trac.openlayers.org/ticket/1627 Robert Sanson >>> Dave Potts 17/03/2009 2:35 p.m. >>> If I attempt to delete a feature from a layer it seems to leave behind a yellow spot at every point where a line join another, ie a vertext Is there anyway of sto

[OpenLayers-Users] Deleting a vectore Feature leaves Vertex dirt on layer

2009-03-16 Thread Dave Potts
If I attempt to delete a feature from a layer it seems to leave behind a yellow spot at every point where a line join another, ie a vertext Is there anyway of stopping this happening? I am using the onSelect call back to invoke a function that calls detroyFeatures to actual do the removal

[OpenLayers-Users] IE fires click event on shift-click

2009-03-16 Thread William Kyngesburye
I registered a click event on my map, like so: map.events.register('click', map, function (e) { //do some stuff } On IE (6 & 7), when I shift-click at a point on the map to zoom in, the click event fires in addition to the OL shift-click zoom. On Safari and Firefox, only the zoom occ

[OpenLayers-Users] Events.register Method

2009-03-16 Thread José Carrizo
Hello, I'm having problems assigning events to some markers on my map, I have already registered 'click' and 'dblclick' events with something like this: marker.events.register('click', marker, mouseClick); marker.events.register('dblclick', marker, mouseDobleClick); where mouseClick and mouseDob

Re: [OpenLayers-Users] Passing parameters to ajax request callback method

2009-03-16 Thread Zer
Thanks Eric! I'm not that JS guru I should be Could you please explain a bit more how this would work? Thanks, -Z -- View this message in context: http://n2.nabble.com/Passing-parameters-to-ajax-request-callback-method-tp2487503p2488616.html Sent from the OpenLayers Users mailing list ar

Re: [OpenLayers-Users] proj4s and openlayers, coordinates not projected

2009-03-16 Thread Robert Sanson
Hi Steve This is what I do: include EPSG files specifically as required: Later, I have code that retrieves the entered coordinates and converts: var src = new OpenLayers.Projection('EPSG:4326'); var dest = new OpenLayers.Projection('EPSG:2193');

[OpenLayers-Users] proj4s and openlayers, coordinates not projected

2009-03-16 Thread Steve . Toutant
I created a simple html page where the user enter lat/long coordinates and the program returns the projected coord in EPSG 32198. That works well, but if I insert the same code in a more complex program using openlayers, the coordinates are not projected. Here is the code I put just after map.s

Re: [OpenLayers-Users] Passing parameters to ajax request callback method

2009-03-16 Thread Eric Lemoine
Hi You would use a JavaScript closure for that. The OpenLayers.Function.bind can create that closure for you. Cheers, Eric 2009/3/16, Zer : > > Hi list, > > Is there a way to pass a parameter to the callback method that is called in > an ajax request? > > Something like this: > > myRequest = Op

[OpenLayers-Users] Passing parameters to ajax request callback method

2009-03-16 Thread Zer
Hi list, Is there a way to pass a parameter to the callback method that is called in an ajax request? Something like this: myRequest = OpenLayers.Request.GET( { url :myUrl, callback :myCallback(myParameter) }); and

Re: [OpenLayers-Users] How the OL MapGuide layer class relates to the MapDefinition

2009-03-16 Thread gingerbbm
Superb. Thanks to you both. Especially for such quick responses. I'm now able to switch between layers inside a single MapGuide map. Thanks again, Stuart. -- View this message in context: http://n2.nabble.com/How-the-OL-MapGuide-layer-class-relates-to-the-MapDefinition-tp2479970p2487362.html Se

Re: [OpenLayers-Users] Cluster Strategy WKT Vectors - not clustering

2009-03-16 Thread Christopher Schmidt
On Mon, Mar 16, 2009 at 10:27:01AM -0400, Christopher Schmidt wrote: > On Mon, Mar 16, 2009 at 01:11:14PM +0100, Andreas Hocevar wrote: > > > > You shouldn't do this manually. Add a HTTP Protocol with a WKT Format > > to your layer. See > > http://www.openlayers.org/dev/examples/behavior-fixed-htt

Re: [OpenLayers-Users] Cluster Strategy WKT Vectors - not clustering

2009-03-16 Thread Christopher Schmidt
On Mon, Mar 16, 2009 at 01:11:14PM +0100, Andreas Hocevar wrote: > > You shouldn't do this manually. Add a HTTP Protocol with a WKT Format > to your layer. See > http://www.openlayers.org/dev/examples/behavior-fixed-http-gml.html > for a similar use case. You just have to replace the Fixed strateg

Re: [OpenLayers-Users] How the OL MapGuide layer class relates to the MapDefinition

2009-03-16 Thread Kenneth Skovhede, GEOGRAF A/S
You should be able to use the "showLayers" / "hideLayers" attributes. You can obtain the GUID's by inspecting the runtime map layer's object id: http://mapguide.osgeo.net/files/mapguide/docs/webapi/d6/de2/class_mg_layer_126f4d4e55b249ce8a014b8e189b1b2c.html#126f4d4e55b249ce8a014b8e189b1b2c Regards

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

2009-03-16 Thread Heidt, Christopher M.
I don't see what you had before but this wont work because pointRadius has to be a number, not a function. You can use a function to create the number: //Styles var clusterStyle = new OpenLayers.Style({ pointRadius: "${radius}", fillColor: '#ee9900', fil

Re: [OpenLayers-Users] How the OL MapGuide layer class relates to the MapDefinition

2009-03-16 Thread Zac Spitzer
$layerCollection = $map->GetLayers(); $layer->GetName() $layer->GetObjectId() z On Mon, Mar 16, 2009 at 11:50 PM, gingerbbm wrote: > > Hmm. Can I not use the "showLayers" and "hideLayers" options in the OL > MapGuide layer constructor? Presumably I could then set up 20 OL MG layers > pointing t

Re: [OpenLayers-Users] howto manage empty geojson streams

2009-03-16 Thread Eric Lemoine
2009/3/16 Didrik Pinte : > Hi list, Hi > We have an application that is linked to a servlet that generates a > GeoJSON stream. In some situations, the stream is empty. > > Looking a Format/GeoJSON.js, I cannot find the correct way to provide a > valid GeoJSON stream that containts no features. A

Re: [OpenLayers-Users] WMSGetFeatureInfo Format

2009-03-16 Thread Alexandre Dube
Andreas, I'll take care of this and the patch during the following days. Thanks to you for your interests, Alexandre Andreas Hocevar wrote: > Alexandre, > > it seems we don't have a CLA from you or Mapgears yet. Is this > correct? If so, please follow the instructions on > http://trac.openlaye

Re: [OpenLayers-Users] How the OL MapGuide layer class relates to the MapDefinition

2009-03-16 Thread gingerbbm
Hmm. Can I not use the "showLayers" and "hideLayers" options in the OL MapGuide layer constructor? Presumably I could then set up 20 OL MG layers pointing to a single MapDefinition that contains my 20 layers, defining which to show/hide. I'm creating a MapGuide runtime map, returning the session

Re: [OpenLayers-Users] Style in GML Layer

2009-03-16 Thread Andreas Hocevar
Hi, On Thu, Mar 12, 2009 at 2:02 PM, Fernando Quadro wrote: > I can add a style (SLD) in GML layer? If yes, how? Yes you can. See http://www.openlayers.org/dev/examples/sld.html to see how that works. Regards, Andreas. -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight f

Re: [OpenLayers-Users] Having Trouble with displaying features

2009-03-16 Thread Andreas Hocevar
Hi, On Tue, Mar 10, 2009 at 3:48 AM, George Silva wrote: > I'm quite a novice OL user. I'm using Geoserver with PostGIS layers, and > i would like to display them with OL. In the "Demo" session of GeoServer > admin page i can see my FeatureType and GeoServer correctly renders a > test page of thi

Re: [OpenLayers-Users] Cluster Strategy WKT Vectors - not clustering

2009-03-16 Thread Andreas Hocevar
Hi, there are several things wrong in your code. if what you pasted below is your code, then you should get JavaScript errors because you messed up the braces: On Tue, Mar 3, 2009 at 5:21 PM, RFeagin wrote: > > I am having problems with getting a clustering strategy to work on my vector > layer

Re: [OpenLayers-Users] Curved line over a polygon?

2009-03-16 Thread Andreas Hocevar
On Thu, Mar 5, 2009 at 8:29 PM, SebastienLachance wrote: > > I am using OpenLayers to allow users to place a four-points polygon over an > image layer. Lately, the client want to add a line over the feature like > this : > > http://farm4.static.flickr.com/3555/3330714055_8bd9cfb58e.jpg?v=0 > http:

Re: [OpenLayers-Users] WMSGetFeatureInfo Format

2009-03-16 Thread Andreas Hocevar
Alexandre, it seems we don't have a CLA from you or Mapgears yet. Is this correct? If so, please follow the instructions on http://trac.openlayers.org/wiki/HowToContribute Thanks! Andreas. On Wed, Mar 4, 2009 at 2:13 PM, Alexandre Dube wrote: > We found out what was not working for us.  I've pr

Re: [OpenLayers-Users] WMSGetFeatureInfo Format

2009-03-16 Thread Andreas Hocevar
Hi Alexandre, if you can create a ticket with this patch and set it to Review, I'd be willing to commit this since it does not break any unit tests. It would be good if you could add a test in your patch to show the problem. Thanks! Andreas. On Wed, Mar 4, 2009 at 2:13 PM, Alexandre Dube wrote:

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

2009-03-16 Thread Didrik Pinte
On Sun, 2009-03-08 at 23:12 -0700, sylvie fiat wrote: > Hi, > > I have the same problem and it's taking me hours, did you figure out what > was the problem ? > I have tried : > styleMap: new OpenLayers.StyleMap(OpenLayers.Util.applyDefaults( > { pointRa

[OpenLayers-Users] howto manage empty geojson streams

2009-03-16 Thread Didrik Pinte
Hi list, We have an application that is linked to a servlet that generates a GeoJSON stream. In some situations, the stream is empty. Looking a Format/GeoJSON.js, I cannot find the correct way to provide a valid GeoJSON stream that containts no features. A FeatureCollection with no feature raise

Re: [OpenLayers-Users] sample points outside the map

2009-03-16 Thread Andreas Hocevar
You can render vectors outside a map. If you are using ExtJS, or to see how to do that, you may want to have a look at http://projects.opengeo.org/styler/browser/trunk/lib/Styler/widgets/FeatureRenderer.js This code is part of OpenGeo's styler application (see http://styler.opengeo.org/trunk/).

[OpenLayers-Users] cannot run vector-format.html

2009-03-16 Thread wrap map
while trying to run the example vector-format.html following from within my computer without changing any in code I got the following errors: OpenLayers.Format.WKT is not a constructor updateFormats()vector-f...mats.html (line 74) init()vector-f...mats.html (line 110) onload(load )7tnQksP2...GPg%3

Re: [OpenLayers-Users] How the OL MapGuide layer class relates to the MapDefinition

2009-03-16 Thread Kenneth Skovhede, GEOGRAF A/S
If you have 20 layers, you will also get 20 http requests, which would worry me. You can't point to a single layer inside a map, but you can use server code to toggle layer visibility, and thus have a single MG layer and control what layers are visible. Regards, Kenneth Skovhede, GEOGRAF A/S