Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (32 sloc) 875 Bytes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mapquest example</title>
<style>
#map {
width: 600px;
height: 600px;
}
</style>
<script src="https://api.mqcdn.com/sdk/mapquest-js/v1.3.2/mapquest.js"></script>
<link type="text/css" rel="stylesheet" href="https://api.mqcdn.com/sdk/mapquest-js/v1.3.2/mapquest.css"/>
<script>
// 1. The basic part of the example
var L;
window.onload = function() {
L.mapquest.key = 'YOUR-API-KEY-HERE';
// 'map' refers to a <div> element with the ID map
var map = L.mapquest.map('map', {
center: [53.480759, -2.242631],
layers: L.mapquest.tileLayer('map'),
zoom: 12
});
}
</script>
</head>
<body>
<h1>Simple Mapquest example</h1>
<div id="map"></div>
</body>
</html>
You can’t perform that action at this time.