[OpenLayers-Users] GeoJSON layer and modifyFeature control
Jan van der Ven
j.vanderven at magion.nl
Thu Dec 4 03:54:46 EST 2008
Hi,
Only one select control can be active at the same time. Selections are made
in the layer that is on top of the Z-order.
Kind regards,
Jan
_____
From: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On
Behalf Of Adorian Ardelean
Sent: Thursday, December 04, 2008 09:47
To: users at openlayers.org
Subject: [OpenLayers-Users] GeoJSON layer and modifyFeature control
Hi,
I have a very simple question: is it possible to modify features in a layer
populated from a GeoJSON file? I am asking just about modifying feature on
map without the saving part.
I did add the modifyFeature control, but I cannot select and modify any of
the polygons in this layer ( var regions = new
OpenLayers.Layer.Vector("regions",{extractAttributes:true, format:
OpenLayers.Format.GeoJSON, projection: new
OpenLayers.Projection("EPSG:4326"), styleMap: new
OpenLayers.StyleMap(mystyle)});)
Another modifyFeature control works OK on a second vector layer (var vectors
= new OpenLayers.Layer.Vector("vectors");).
All the best,
Adorian
--
Dr. Adorian Ardelean
coordinator of myNature Project
http://mybiosis.info/nature/portal.php?pagename=firstpage [a Romanian
biodiversity-database]
http://mybiosis.info/nature/portal.php?pagename=adorian [CV]
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.9.12/1824 - Release Date: 2-12-2008
9:31
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20081204/ad844f11/attachment.html
More information about the Users
mailing list