赞
踩
- <!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>Simple Map</title>
- <!--引入样式表文件-->
- <link rel="stylesheet" href="https://js.arcgis.com/3.16/esri/css/esri.css">
- <style>
- html, body, #map {
- height: 100%;
- margin: 0;
- padding: 0;
- }
- </style>
- <!--引入javascript-->
- <script src="https://js.arcgis.com/3.16/"></script>
- <script>
- var map;
- //dojo代码段,需要调用的模块在这里请求
- require(["esri/map", "dojo/domReady!"], function(Map) {
- //创建地图
- map = new Map("map", {
- //设置基础地图的图层
- basemap
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。