ThinkGeo.com    |     Documentation    |     Premium Support

How to fire on drawing event

I’d like to handle a code when user start to draw a shape/polygon/line/point/etc…
But i just don’t know what event should be handled.
I don’t know if it is related to map.events.register("WHAT EVENT SHOULD BE APPLIED HERE", this, function (e) {...});
or not.

Hi Reza,

Our client side APIs and event can be found here: Client API Documentation for Map Suite Web Edition

It looks you should want to hang the OpenLayers event, but it looks the Openlayers only have an event named featureAdded which can be fired when a feature is added into map, you can view the document here: http://dev.openlayers.org/docs/files/OpenLayers/Control/DrawFeature-js.html#OpenLayers.Control.DrawFeature.events

Regards,

Don