-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSymbol_JSON.html
53 lines (47 loc) · 1.19 KB
/
Symbol_JSON.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Mostrar un mapa con JSAPI 3.27</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.27/esri/css/esri.css">
<script src="https://js.arcgis.com/3.27/"></script>
<script src="json.js"></script>
<style>
html, body, #map {
height: 100%;
padding: 0;
margin: 0;
}
</style>
<script>
var map;
var modulos = [
"esri/map",
"esri/symbols/PictureMarkerSymbol",
"esri/graphic",
"esri/geometry/Point",
"dojo/domReady!"
];
var callback = function(
Map,
PictureMarkerSymbol,
Graphic,
Point) {
map = new Map("mapDiv", {
basemap: "satellite",
center: [-122.45, 37.75],
zoom: 13
});
graphic = new Graphic(obj)
map.on("load",function(){
map.graphics.add(graphic);
});
};
require(modulos, callback);
</script>
</head>
<body>
<div id="mapDiv"></div>
</body>
</html>