这是一个很简单的一个功能,希望能给朋友们提供帮助。
源码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,user-scalable=no">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<!--
ArcGIS API for JavaScript, https://js.arcgis.com
For more information about the toolbar_draw sample, read the original sample description at developers.arcgis.com.
https://developers.arcgis.com/javascript/3/jssamples/toolbar_draw.html
-->
<title>Maps Toolbar</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.30/dijit/themes/nihilo/nihilo.css">
<link rel="styl