# How to fire on drawing event

**URL:** <https://community.thinkgeo.com/t/how-to-fire-on-drawing-event/8345>\
**Category:** MVC\
**Created:** [December 29, 2016, 10:09am UTC](https://community.thinkgeo.com/t/how-to-fire-on-drawing-event/8345 "2016-12-29T10:09:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![reza\_assar](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/71e660/32.png) [@reza\_assar](https://community.thinkgeo.com/u/reza_assar)\
**Post date:** [December 29, 2016, 10:09am UTC](https://community.thinkgeo.com/t/how-to-fire-on-drawing-event/8345/1 "2016-12-29T10:09:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [December 30, 2016, 6:14am UTC](https://community.thinkgeo.com/t/how-to-fire-on-drawing-event/8345/2 "2016-12-30T06:14:04Z")

</div>

Hi Reza,

Our client side APIs and event can be found here: [Client API Documentation for Map Suite Web Edition](https://community.thinkgeo.com/t/client-api-documentation-for-map-suite-web-edition/4771/23)

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](http://dev.openlayers.org/docs/files/OpenLayers/Control/DrawFeature-js.html#OpenLayers.Control.DrawFeature.events)

Regards,

Don
