If I have this vector layer:
var vectors = new OpenLayers.Layer.Vector("vector", {isBaseLayer: false});
var feature = new OpenLayers.Feature.Vector(
OpenLayers.Geometry.fromWKT(
"POLYGON ((-18 -3, -18 14, 15 14, 15 -3, -18 -3))"
)
);
vectors.addFeatures([feature]);
How I can zoom to a selected feature of the layer by a single click event?
No comments:
Post a Comment