L.mapquest.key = 'YOUR-API-KEY-HERE';
// 'map' refers to a
element with the ID map
const map = L.mapquest.map('map', {
center: [53.480759, -2.242631],
// 1. change 'map' to 'hybrid', try other type of map
layers: L.mapquest.tileLayer('hybrid'),
zoom: 12
});
// 2. Add control
map.addControl(L.mapquest.control());
// 3. Add icon
L.marker([53.480759, -2.242631], {
icon: L.mapquest.icons.marker({
primaryColor: '#22407F',
secondaryColor: '#3B5998',
shadow: true,
size: 'md',
symbol: 'A'
})
})
.bindPopup('This is Manchester!')
.addTo(map);