<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="http://localhost/3.34/3.34/esri/css/esri.css">
<script src="http://localhost/3.34/3.34/init.js"></script>
<style>
html,
body,
#viewDiv {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
</style>
<script>
require([
"esri/map",
"esri/SpatialReference",
"esri/layers/ArcGISDynamicMapServiceLayer",
"esri/layers/ArcGISTiledMapServiceLayer",
"esri/layers/FeatureLayer",
"esri/layers/MapImageLayer",
"esri/toolbars/navigation",
"esri/toolbars/draw",
"esri/geometry/Circle",
"esri/units",
"esri/graphic",
"esri/geometry/Extent",
"esri/geometry/geodesicUtils",
"esri/geometry/webMercatorUtils",
"esri/tasks/GeometryService",
"esri/tasks/AreasAndLengthsParameters",
"esri/tasks/LengthsParameters",
"esri/tasks/geometry",
"esri/tasks/PrintTask",
"esri/tasks/PrintTemplate",
"esri/tasks/PrintParameters",
"esri/symbols/LineSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/symbols/SimpleFillSymbol",
"esri/symbols/PictureMarkerSymbol",
"esri/symbols/MarkerSymbol",
"esri/symbols/SimpleMarkerSymbol",
"esri/dijit/editing/Add",
"esri/dijit/editing/Delete",
"esri/dijit/editing/Update",
"esri/InfoTemplate",
"esri/tasks/QueryTask",
"esri/tasks/query",
"esri/tasks/IdentifyTask",
"esri/tasks/IdentifyParameters",
"esri/tasks/FindTask",
"esri/tasks/FindParameters",
"esri/tasks/FindResult",
"esri/geometry/geometryEngine",
"dojo/dom",
"dojo/on",
"dojo/domReady!"
], function(
Map,
SpatialReference,
ArcGISDynamicMapServiceLayer,
ArcGISTiledMapServiceLayer,
FeatureLayer,
MapImageLayer,
Navigation,
Draw,
Circle,
Units,
Graphic,
Extent,
geodesicUtils,
webMercatorUtils,
GeometryService,
AreasAndLengthsParameters,
LengthsParameters,
Geometry,
PrintTask,
PrintTemplate,
PrintParameters,
LineSymbol,
SimpleLineSymbol,
SimpleFillSymbol,
PictureMarkerSymbol,
SimpleMarkerSymbol,
Add,
Delete,
Update,
InfoTemplate,
QueryTask,
Query,
IdentifyTask,
IdentifyParameters,
FindTask,
FindParameters,
FindResult,
geometryEngine,
dom,
on
) {
var startExtent = new esri.geometry.Extent(394447.65239553, 2813852.1189, 491999.92010447, 2862729.8697, new esri.SpatialReference(4549));
//创建地图
var map = Map("viewDiv", {
//extent: startExtent,
basemap: "topo",
center: [120.395907, 36.112175],
zoom: 11,
nav: false,
slider: false,
isDoubleClickZoom: false,
logo: false
});
var ImageMapLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://192.168.0.106:6080/arcgis/rest/services/qingdao/MapServer");
map.addLayer(ImageMapLayer);
});
</script>
</head>
<body>
<div id="viewDiv">
</div>
</body>
</html>
ArcGIS API for JavaScript3.x 类的引用
最新推荐文章于 2024-03-15 14:51:38 发布