HEREMapping/Index.html

30 lines
1.5 KiB
HTML

<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes">
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>Map at a specified location</title>
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.1/mapsjs-ui.css" />
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
<script type="text/javascript" src="https://js.api.here.com/v3/3.1/mapsjs-mapevents.js"></script>
<script>window.ENV_VARIABLE = 'developer.here.com'</script>
</head>
<body id="markers-on-the-map">
<div class="page-header">
<h1>Map at a specified location</h1>
<p>Display a map at a specified location and zoom level</p>
</div>
<button onclick="moveMapToCanton()">Canton</button>
<button onclick="moveMapToCommerce()">Commerce</button>
<button onclick="moveMapToBerlin()">Berlin</button>
<br /><button onclick="captureMap()">Grab Screenshot</button>
<div id="map"></div>
<h3>Code</h3>
<p>
The <code>map.setCenter()</code> method and <code>map.setZoom() </code>method are able to control the location of the map.<br>
</p>
<script type="text/javascript" src='demo.js'></script>
</body>
</html>