[OpenLayers-Users] animation when zooming

2010-06-09 Thread Alessandro Ferrucci
Hello, Are there any built-in animations or does OpenLayers allow the developer to plug in animations when the user zooms into a map much like google maps does with their red rectangle? Thanks! -- Signed, Alessandro Ferrucci ___ Users mailing list

Re: [OpenLayers-Users] Register click event on OpenLayers.Feature.Vector

2010-06-09 Thread JuKiM
Hi, I'll take a look to your examples.. But after a little searching I'm trying do like this: var polygonFeature = new OpenLayers.Feature.Vector(linearRing, null, style_poly); polygonFeature.data.OLPosition = position; polygonFeature.data.infoContent = szInformation;

Re: [OpenLayers-Users] Register click event on OpenLayers.Feature.Vector

2010-06-09 Thread JuKiM
I've seen that this is happening when I reload the layers.. For cleaning the map and redraw other things.. if (lyrTesting) { lyrTesting.destroy(); } lyrTesting = new OpenLayers.Layer.Vector('Testing'); map.addLayer(lyrTesting); I'll investigate

Re: [OpenLayers-Users] Register click event on OpenLayers.Feature.Vector

2010-06-09 Thread Imran Rajjad
Hi Ju try adding onSelect : check after toggle to your OpenLayers.Control.SelectFeature where check is var check =function(e){ alert(e.feature.id); } try it regards, Imran On Wed, Jun 9, 2010 at 2:03 PM, JuKiM rif...@gmail.com wrote: I've seen that this is happening when I reload the

Re: [OpenLayers-Users] animation when zooming

2010-06-09 Thread Vito Tafuni
if you take a look at the overview example you'll see a smooth movement when clicking on a map area if we combine this to a fake zoom (zooming in or out the current tile while the new ones are coming from the server) we could have a more friendly navigation interface... available for every map

[OpenLayers-Users] Cleaning a map..

2010-06-09 Thread JuKiM
Hi, I don't know if this is a trivial question.. But I can't get with it.. How should a map be cleared? I have a map with some layers in it.. And some points and lines drawed in the different layers.. By now, when I want to clean the map I destroy the different layers, and I add them again.. But

Re: [OpenLayers-Users] Cleaning a map..

2010-06-09 Thread Imran Rajjad
Hi Ju if i pass name = 'vec1' that function will get a layer with name 'vec1' and destroy all it features function resetVecLayer(name) { var layer=map.getLayersByName(name); layer[0].destroyFeatures(); } regards, Imran On Wed, Jun 9, 2010 at 2:42

[OpenLayers-Users] problems with restrictedExtent

2010-06-09 Thread Vito Tafuni
i'm using this options to display a google layer and a vector one var options = { projection: new OpenLayers.Projection(EPSG:900913), displayProjection: new OpenLayers.Projection(EPSG:4326), units: km, maxScale:

[OpenLayers-Users] openlayers.org down?

2010-06-09 Thread Alessandro Ferrucci
Cannot access it, is it down? -- Signed, Alessandro Ferrucci ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

[OpenLayers-Users] add remove vertex in line feature??

2010-06-09 Thread Imran Rajjad
Hi, I`m trying to draw a pattern path in open layers using OpenLayers.Feature.Vector, my application requires to dynamically add and remove vertices of a line. Is it possible in openlayers or do I need to redraw the whole thing at each change? regards, Imran -- I.R

Re: [OpenLayers-Users] openlayers.org down?

2010-06-09 Thread christopher.schmidt
On Jun 9, 2010, at 6:37 AM, ext Alessandro Ferrucci wrote: Cannot access it, is it down? I heard several reports of this this morning. In each case, it turned out that the person in question was using the Google DNS service, which was not resolving the name for OpenLayers. I have looked

Re: [OpenLayers-Users] add remove vertex in line feature??

2010-06-09 Thread Alexandre Dube
Hi, It's possible with the ModifyFeature control [1]. Use 'draw line', draw your line then press the 'del' key when hovering a vertex to remove it. [1] http://www.openlayers.org/dev/examples/modify-feature.html Regards, Alexandre Imran Rajjad wrote: Hi, I`m trying to draw a pattern path

Re: [OpenLayers-Users] add remove vertex in line feature??

2010-06-09 Thread Imran Rajjad
Hi, well I have to draw the line through a function and not directly from the user. Is it possible to add single line segment and then removing it? I will take a look at the link. Thanks regards, Imran On Wed, Jun 9, 2010 at 6:08 PM, Alexandre Dube ad...@mapgears.com wrote: Hi, It's possible

[OpenLayers-Users] Problem using OverviewMap ...

2010-06-09 Thread Paul james
Hello guys My Map: map = new OpenLayers.Map('Test', { scales: [3000,2300,1500,1000,500,300,100,50,25,10], resolutions :

Re: [OpenLayers-Users] add remove vertex in line feature??

2010-06-09 Thread Alexandre Dube
Imran, You could check how the controls does it. Taking a look at the handleKeypress method inside ModifyControl.js should do the trick. Regards, Alexandre Imran Rajjad wrote: Hi, well I have to draw the line through a function and not directly from the user. Is it possible to add

Re: [OpenLayers-Users] Vector layer with map.events.register(click)

2010-06-09 Thread Brad Spencer
Vito, Sorry I can't help you here. I only use temporary select polygon [i.e. vectors] in client as all my data polygons remain on the WMS service. I do drag the select polygon around map to spatially select more WFS data from the server and once I'm done I delete the search polygon then my

[OpenLayers-Users] problem consuming escaped single quotes in GeoJSON with a clustered vector layer

2010-06-09 Thread Zac Spitzer
I have having a problem consuming some GeoJSON, basically the name value in the sample below is causing my vector layer to silently abort rendering. i believe it's valid json, as i can load it into a javascript variable and dump it to the firebug console I'm using trunk Revision: 10300 { type:

Re: [OpenLayers-Users] vector labels using kml

2010-06-09 Thread Thqr
I am using the label : ${name} exactly how you specified and still can not get the name from the KML to apply to a label on any of my placemarks from my KML feed. Tried you style exactly did not work this is what I was trying with: \\- var styleMap = new