Practice time with the Geometry Engine
In this practice, you will create an application that shows off the performance capabilities of the Geometry Engine by creating a buffer around the location of the user's cursor on the map and updating that buffer as the cursor moves.
- Go to the ArcGIS API for JavaScript Sandbox and clear the contents of the following
<script>block:
<script>
var map;
require(["esri/map", "dojo/domReady!"], function(Map) {
map = new Map("map", {
basemap: "topo", //For full list of ...
center: [-122.45, 37.75], // longitude, latitude
zoom: 13
});
});
</script>- Create a variable called
mapto store theesri/Mapobject:
<script>
var map;
</script> - Create the
require()function to import the necessary modules as shown in the following:
<script>
var map;
require(["esri/map",
"esri/Color",
"esri/symbols/SimpleMarkerSymbol",...