Squashed commit of the following:
commit f00503ad21200f49b360b64297e6969768721ff6 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 25 15:58:53 2016 +0000 Update changelog commit dc0e92b0b9085609525ec937d21625ddca5350d7 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 25 15:58:17 2016 +0000 gulp derived assets commit 78501ee5ffe39ca0c96539d5406fcdc4170176c4 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 25 15:57:47 2016 +0000 Add navigation controls, fixes #37
This commit is contained in:
parent
23b6e440ba
commit
dc6b8c53ec
11 changed files with 7 additions and 4 deletions
|
@ -44,6 +44,7 @@ for (var i = 0; i < mapDivs.length; i++) {
|
|||
zoom: 15,
|
||||
scrollZoom: false
|
||||
});
|
||||
map.addControl(new mapboxgl.NavigationControl());
|
||||
new mapboxgl.Marker(el, {offset: [-10, -20]}).setLngLat([longitude, latitude]).addTo(map);
|
||||
mapDiv.appendChild(mapMenu);
|
||||
}
|
||||
|
|
|
@ -67,6 +67,7 @@ function addMap(latitude, longitude, places) {
|
|||
center: [longitude, latitude],
|
||||
zoom: 15
|
||||
});
|
||||
map.addControl(new mapboxgl.NavigationControl());
|
||||
//create the current location marker
|
||||
var el = document.createElement('div');
|
||||
el.classList.add('marker');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue