Re: [OpenLayers-Users] how to update POIs or markers on open street maps without refreshing the whole map

2009-10-30 Thread helmi
These browser nowadays pretty good at handling bigger DOM. As recommended in http://trac.openlayers.org/wiki/FrequentlyAskedQuestions, you should keep ~100-200 Features in vector layer. marker.moveTo() for number of markers within 100-200 should be OK. >> this looks pretty easy, but for few number

Re: [OpenLayers-Users] how to update POIs or markers on open street maps without refreshing the whole map

2009-10-30 Thread helmi
Refer this http://openlayers.org/pipermail/users/2009-June/012274.html My example code: function setLonLat(marker, lonlat) { var newPx = map.getLayerPxFromLonLat(newLonLat); marker.moveTo(newPx); } var marker = new OpenLayers.Marker(new OpenLayers.LonLat(102.2168, 3.09185), new OpenLayer

[OpenLayers-Users] Openlayers selection on Geowebcached layer?

2009-10-30 Thread Dragan Podvezanec
Is this possible at all? Currently I use WMS layer from Geoserver, and I can make selection on it, and get all needed feature info: onclick.events.register("featureselected", this, function(e) { var object = (e.feature); var bbox = (object.geometry.bounds);

Re: [OpenLayers-Users] graphicZIndex of vector features

2009-10-30 Thread Joao Campos Duarte
Pierre, That worked like a charm. Many thanks! Regards, João Duarte SAPO Mapas - http://mapas.sapo.pt -Original Message- From: Pierre Giraud [mailto:pierre.gir...@camptocamp.com] Sent: sexta-feira, 30 de Outubro de 2009 15:51 To: Christoph Boehme Cc: Joao Campos Duarte; users@openlaye

Re: [OpenLayers-Users] graphicZIndex of vector features

2009-10-30 Thread Christoph Boehme
Joao Campos Duarte wrote: > Is the graphicZIndex style property working for everyone? I try to > bring some features on top of other by changing this property and > re-drawing the feature but with no success. > > Am I doing something wrong? I am currently playing with it as well and have not quit

[OpenLayers-Users] graphicZIndex of vector features

2009-10-30 Thread Joao Campos Duarte
Is the graphicZIndex style property working for everyone? I try to bring some features on top of other by changing this property and re-drawing the feature but with no success. Am I doing something wrong? Thanks, João Duarte SAPO Mapas - http://mapas.sapo.pt __

Re: [OpenLayers-Users] png images, vector layers, pop-ups, and IE

2009-10-30 Thread Wendell Turner
On Fri, Oct 30, 2009 at 06:30:45AM +0100, Eric Lemoine wrote: > On Thursday, October 29, 2009, Wendell Turner wrote: > > > > I can't get pop-ups to appear when using png images on a > > vector layer in IE.  I have a vector layer with points that > > have .png images.  The images show properly in b

[OpenLayers-Users] chrome vector layer problem

2009-10-30 Thread frknml
Hi everyone; I have an elemantary problem.I have a google layer and on my google layer i'm drawing a line dynamically there is no problem while drawing the line .My problem is when i try to move the map, map moves but my vector layer stays at the same position .it works on firefox and explore

[OpenLayers-Users] Problem with layer switcher

2009-10-30 Thread Rahn Hanno (rahn)
Hello list, I have a problem with the Layerswitcher control. Perhaps somebody can help me. I use two different maps with different layers in one side. Now I will realise a Layerswitcher for both maps. But the layerswitcher only works for one map. The second one shows my layers but I can't

Re: [OpenLayers-Users] Mouse Drag Coordinates

2009-10-30 Thread Dave Thomas
Eric Lemoine-2-2 wrote: > > implementing a specific control based on a Drag handler is what I'd go > with. You can look at the DragPan control to know how to use the Drag > handler - I tend to think that you could rely on the "move" and "done" > callbacks only. Now regarding the conflict with t

Re: [OpenLayers-Users] How to stop registering events

2009-10-30 Thread Max Stephan
Ok, thanks. Now the unregistering works and the function that gets called when the event was triggered only runs once. But another problem appeared. The layer that contains the features I want to select is shown or hidden depending on the resolution. For this reason I need to query the WFS-Server

[OpenLayers-Users] WFS GetFeatureInfo with Filter

2009-10-30 Thread stash
Hi, I have a GetFeatureInfo Request with the following code: map.events.register('click', map, function(e) { var url = "http://.../geoserver/wms"; + "?REQUEST=GetFeatureInfo" + "&EXCEPTIONS=application/vnd.ogc.se_xml" + "&BBOX=" + map.getExtent().toBBOX() + "&X=" + e.xy.x + "&Y=" + e.xy.y +