|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html>
|
3 |
| - <head> |
4 |
| - <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
5 |
| - <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" > |
6 |
| - <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> |
7 |
| - <title>Basemaps</title> |
8 |
| - <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/css/esri.css" /> |
9 |
| - <link rel="stylesheet" href="../../css/examples.css" /> |
10 |
| - |
11 |
| - <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3compact"></script> |
12 |
| - <script type="text/javascript"> |
13 |
| - dojo.require("esri.map"); |
14 |
| - |
15 |
| - var map; |
16 |
| - function init() { |
17 |
| - var options = { |
18 |
| - basemap: "streets", |
19 |
| - center: [-79.40, 43.55], |
20 |
| - zoom: 9 |
21 |
| - }; |
22 |
| - // Create map |
23 |
| - map = new esri.Map("mapDiv",options); |
24 |
| - } |
25 |
| - |
26 |
| - dojo.addOnLoad(init); |
27 |
| - </script> |
28 |
| - </head> |
29 |
| - <body> |
30 |
| - <div class="message"><span id="userMessage" class="user-message">Select an ArcGIS Online basemap</span></div> |
| 3 | +<head> |
| 4 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9"> |
| 6 | + <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> |
| 7 | + <title>Basemaps</title> |
| 8 | + <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/css/esri.css"> |
| 9 | + <link rel="stylesheet" href="../../css/examples.css"> |
| 10 | + <!-- Load the library references for ArcGIS API for JavaScript --> |
| 11 | + <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.3compact"></script> |
| 12 | + <script> |
| 13 | + dojo.require("esri.map"); |
| 14 | + |
| 15 | + var map; |
| 16 | + |
| 17 | + function init() { |
| 18 | + var options = { |
| 19 | + basemap: "gray", |
| 20 | + center: [-122.69, 45.52], |
| 21 | + zoom: 3 |
| 22 | + }; |
| 23 | + // Create map |
| 24 | + map = new esri.Map("mapDiv",options); |
| 25 | + } |
| 26 | + |
| 27 | + dojo.addOnLoad(init); |
| 28 | + </script> |
| 29 | +</head> |
| 30 | + <body> |
31 | 31 | <div class="panel">
|
| 32 | + <div class="titlearea"><span id="titleMessage" class="title-message">Basemaps</span></div> |
32 | 33 | <div class="controls">
|
33 | 34 | <div class="buttons">
|
34 |
| - <button class="btn btn-primary" onclick="map.setBasemap('streets');">Streets</button> |
35 |
| - <button class="btn btn-primary" onclick="map.setBasemap('satellite');">Satellite</button> |
36 |
| - <button class="btn btn-primary" onclick="map.setBasemap('topo');">Topographic</button> |
37 |
| - <button class="btn btn-primary" onclick="map.setBasemap('gray');">Gray Canvas</button> |
| 35 | + <button class="btn btn-primary btn-wide" onclick="map.setBasemap('streets');">Streets</button> |
| 36 | + <button class="btn btn-primary btn-wide" onclick="map.setBasemap('satellite');">Satellite</button> |
| 37 | + <button class="btn btn-primary btn-wide" onclick="map.setBasemap('hybrid');">Hybrid</button> |
| 38 | + <button class="btn btn-primary btn-wide" onclick="map.setBasemap('topo');">Topo</button> |
| 39 | + <button class="btn btn-primary btn-wide" onclick="map.setBasemap('gray');">Gray</button> |
| 40 | + <button class="btn btn-primary btn-wide" onclick="map.setBasemap('national-geographic');">National Geographic</button> |
38 | 41 | </div>
|
39 | 42 | </div>
|
| 43 | + <div class="message"><span id="userMessage" class="user-message"></span></div> |
40 | 44 | </div>
|
41 | 45 | <div id="mapDiv"></div>
|
42 |
| - </body> |
| 46 | + </body> |
43 | 47 | </html>
|
0 commit comments