index.ejs 1.09 KB
Newer Older
Porter Libby's avatar
Porter Libby committed
1
2
3
<!DOCTYPE html>
<html lang="en" dir="ltr">
    <head>
Porter Libby's avatar
Porter Libby committed
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
        <meta charset="utf-8">
        <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
        <title>Datavis 2.0</title>
        <style>
            html, body, #viewDiv {
                padding: 0;
                margin: 0;
                height: 100%;
                width: 100%;
            }
        </style>
        <link rel="stylesheet" href="https://js.arcgis.com/4.12/esri/css/main.css">
        <script src="https://js.arcgis.com/4.12/"></script>
        <script>
            require([
                "esri/Map",
                "esri/views/MapView"
            ], function(Map, MapView) {
                var map = new Map({
                    basemap: "topo-vector"
                });
                var view = new MapView({
                    container: "viewDiv",
                    map: map,
                    center: [-118.71511,34.09042],
                    zoom: 11
                });
            });
        </script>
Porter Libby's avatar
Porter Libby committed
33
34
    </head>
    <body>
Porter Libby's avatar
Porter Libby committed
35
        <div id="viewDiv"></div>
Porter Libby's avatar
Porter Libby committed
36
37
    </body>
</html>