1 changed files with 37 additions and 9 deletions
@ -1,11 +1,39 @@ |
|||||||
<!DOCTYPE html> |
|
||||||
<html lang="en"> |
<html lang="en"> |
||||||
<head> |
<head> |
||||||
<meta charset="UTF-8"> |
<meta charset="utf-8" /> |
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> |
||||||
<title>Document</title> |
<title>Intro to MapView - Create a 2D map | Sample | ArcGIS Maps SDK for JavaScript 4.30</title> |
||||||
</head> |
<style> |
||||||
<body> |
html, |
||||||
|
body, |
||||||
</body> |
#viewDiv { |
||||||
|
padding: 0; |
||||||
|
margin: 0; |
||||||
|
height: 100%; |
||||||
|
width: 100%; |
||||||
|
} |
||||||
|
</style> |
||||||
|
|
||||||
|
<link rel="stylesheet" href="/library/arcgis/4.30/esri/themes/light/main.css" /> |
||||||
|
<script src="/library/arcgis/4.30/init.js"></script> |
||||||
|
|
||||||
|
<script> |
||||||
|
require(["esri/Map", "esri/views/MapView"], (Map, MapView) => { |
||||||
|
const map = new Map({ |
||||||
|
basemap: "topo-vector" |
||||||
|
}); |
||||||
|
|
||||||
|
const view = new MapView({ |
||||||
|
container: "viewDiv", |
||||||
|
map: map, |
||||||
|
zoom: 4, |
||||||
|
center: [15, 65] // longitude, latitude |
||||||
|
}); |
||||||
|
}); |
||||||
|
</script> |
||||||
|
</head> |
||||||
|
|
||||||
|
<body> |
||||||
|
<div id="viewDiv"></div> |
||||||
|
</body> |
||||||
</html> |
</html> |
||||||
Loading…
Reference in new issue