[OpenLayers-Users] (no subject)

TAMER GUR tamer.gur at vodafone.com
Fri May 28 04:35:18 EDT 2010


Hi all,

I have problem when drawing circles on google map layer.

I simply edit this google example

http://www.openlayers.org/dev/examples/google.html

for drawing circle I added

polygonLayer = new OpenLayers.Layer.Vector("Polygon Layer");

var polyOptions = {
                sides :40
};

 polygonControl = new OpenLayers.Control.DrawFeature(polygonLayer, 
OpenLayers.Handler.RegularPolygon, {
                handlerOptions :polyOptions
        });
 
map.addControl(polygonControl);


after this circles drawn as expected  but when panning up and down side on 
 map , circles positions are broken.

Any solution for this
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100528/72a4f8ea/attachment.html


More information about the Users mailing list