You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
961 B
39 lines
961 B
<html lang="en"> |
|
<head> |
|
<meta charset="utf-8" /> |
|
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> |
|
<title>Intro to MapView - Create a 2D map | Sample | ArcGIS Maps SDK for JavaScript 4.30</title> |
|
<style> |
|
html, |
|
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> |