Hi Everybody.
I'm looking for answer how to set feature id.
I'm creating feature like this:
var f = new OpenLayers.Feature.Vector(
new
OpenLayers.Geometry.Point(15.24346,52.72433).transform(geographic,
mercator),
{
title: "nananana",
description: "lalalala"
}
);
and then trying to set the id property on the object.
f.id = "my-featureid-1";
But when I add this to the layer the feature id is for example:
<image id="OpenLayers.Geometry.Point_189" ... cursor="pointer"></image>
Is there any way to change the featureId?
--
Thanks in advance
-----
eDojazd.pl
Niższe koszty dojazdów dla wszystkich i wszędzie!
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/How-to-Set-Feature-Id-When-creating-Features-programmatically-tp6617758p6617758.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users