Hi,
I need to change the location of a point on a polygon when it is created. I
tried adding a point callback:
        drawFeature.handler.callbacks.point = function(point) { return
pointCallback(point); }

then I tried changing the location of the point in the callback:

        function pointCallback(point) 
        {
                point.x += 10;
                return point;
        }

This didn't work. The point was created at the origional location and then
the cursor was moved to the new location (x+10). Does anyone know a way that
I can intercept the creation of this new node to change its location, or get
access to the new node after its created to change its position?
-- 
View this message in context: 
http://n2.nabble.com/Changing-a-points-location-when-drawing-a-polygon-tp4494150p4494150.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to