Toolbar that supports functionality to create new geometries by drawing them: points (POINT or MULTI_POINT), lines (LINE, POLYLINE, or FREEHAND_POLYLINE), polygons (FREEHAND_POLYGON or POLYGON), or rectangles (EXTENT). To edit geometries of existing graphics, use the Edit Toolbar. Toolbar that supports functionality to create new geometries by drawing them: points (POINT or MULTI_POINT), lines (LINE, POLYLINE, or FREEHAND_POLYLINE), polygons (FREEHAND_POLYGON or POLYGON), or rectangles (EXTENT). To edit geometries of existing graphics, use the For FREEHAND_POLYLINE and FREEHAND_POLYGON, press mouse down where to start, draw the feature, then let go when finished drawing. When set to false, the geometry is modified to be topologically correct. When set to true, the input geometry is not modified. Finishes drawing the geometry and fires the onDrawEnd event. Use this method to finish drawing a polyline, polygon or multipoint when working with the compact build on a touch supported device like the iPhone. Determines how far the mouse moves before adding a new point when using one of the freehand tools. The default value is 8. When set to false, the geometry is modified to be topologically correct. When set to true, the input geometry is not modified. Determines how far the mouse moves before adding a new point when using one of the freehand tools. The default value is 8. Finishes drawing the geometry and fires the onDrawEnd event. Use this method to finish drawing a polyline, polygon or multipoint when working with the compact build on a touch supported device like the iPhone. When set to false, the geometry is modified to be topologically correct. When set to true, the input geometry is not modified. function createToolbar(map) { toolbar = new esri.toolbars.Draw(map), dojo.connect(toolbar, 'onDrawEnd', addToMap), } function addToMap(geometry) { var graphic = new esri.Graphic(geometry, symbol), map.graphics.add(graphic), } Source.


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