<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <title></title> <link rel="stylesheet" href="https://community.esri.com//js.arcgis.com/3.8/js/esri/css/esri.css"> <style> html, body, #map { height: 100%; width: 100%; margin: 0; padding: 0; } </style> <script src="//js.arcgis.com/3.8/"></script> <script> var map; require([ "esri/map", "esri/toolbars/draw", "esri/symbols/SimpleFillSymbol", "esri/graphic", "dojo/domReady!" ], function( Map, Draw, SimpleFillSymbol, Graphic ) { map = new Map("map", { basemap: "streets", center: [ 19.291, 48.343 ], zoom: 4 }); map.on("load", function() { var d = new Draw(map); d.on("draw-end", function(e) { console.log("e", e); map.graphics.add(new Graphic(e.geometry, new SimpleFillSymbol())); }); d.activate(Draw.EXTENT); }); }); </script> </head> <body> <div id="map"></div> </body> </html>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.