OpenLayers.Handler.Path – OpenLayers

Handler to draw a path on the map. Path is displayed on mouse down, moves on mouse move, and is finished on mouse up. {Boolean} In freehand mode, the handler starts the path on mouse down, adds a point for every mouse move, and finishes the path on mouse up. Outside of freehand mode, a point is added to the path on every mouse click and double-click finishes the path. {String} If set, freehandToggle is checked on mouse events and will set the freehand mode to the opposite of this.freehand. To disallow toggling between freehand and non-freehand mode, set freehandToggle to null. Acceptable toggle values are ‘shiftKey’, ‘ctrlKey’, and ‘altKey’. Add point to geometry. Send the point index to override the behavior of LinearRing that disregards adding duplicate points. Handle mouse down. Add a new point to the geometry and render it. Return determines whether to propagate the event on the map. Handle mouse move. Adjust the geometry and redraw. Return determines whether to propagate the event on the map. Handle mouse up. Send the latest point in the geometry to the control. Return determines whether to propagate the event on the map. Source.


Яндекс.Метрика Рейтинг@Mail.ru Free Web Counter
page counter
Last Modified: April 23, 2016 @ 5:03 am