this question has been asked before, but no answer available. so here it is
again,
the unit defined in map is 'km', however not matters what unit I chaged to the
map the function createRegularPolygon always create a very tiny circle around
the selected feature. the code is
// slider is a ext js componnet, slider.getValue returns exact what i what, so
here is no problems i assume
tempvec = new OpenLayers.Layer.Vector("buffer");
bufferCircle =
OpenLayers.Geometry.Polygon.createRegularPolygon(window.selectedFeature.geometry,
parseFloat(slider.getValue()),40);
buffer = new OpenLayers.Feature.Vector(bufferCircle);
tempvec.addFeatures([buffer]);
Thanks in advance!!
--
View this message in context:
http://n2.nabble.com/createRegularPolygon-ignores-map-units-tp2557095p2557095.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users