Hi,

I am trying to figure out how to give features I create a custom ID. For
example:

var feature_point = new OpenLayers.Feature.Vector(new
OpenLayers.Geometry.Point(-81, 26));

map.layers[1].addFeatures([feature_point]);

When I do this, I end up with an id of "OpenLayers.Feature.Vector_92" or
whatever random number it chooses. What I want to know is, how do I give
the feature, its' own custom id during creation? It would also be nice to
know if there is a way to change a features id later on, not during
creation?

-- 
Thanks,

Renosis
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to