Skip to content

Commit

Permalink
aldonas eblecon rigardi mapetojn tut-ekrane
Browse files Browse the repository at this point in the history
  • Loading branch information
interDist committed May 26, 2020
1 parent 75a9e95 commit 46a782c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions maps/static/maps/mapbox-gl-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ window.addEventListener("load", function() {

var nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');
var scr = new mapboxgl.FullscreenControl();
map.addControl(scr, 'top-right');
var loc = new mapboxgl.GeolocateControl({
positionOptions: {
enableHighAccuracy: true
Expand Down
4 changes: 2 additions & 2 deletions maps/static/maps/place-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ window.addEventListener("load", function() {
});

map.on('load', function() {
var nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');
map.addControl(new mapboxgl.NavigationControl(), 'top-left');
map.addControl(new mapboxgl.FullscreenControl(), 'top-right');

if (position) {
map.addSource("thisplace", {
Expand Down
4 changes: 2 additions & 2 deletions maps/static/maps/region-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ window.addEventListener("load", function() {
map.on('load', function() {
container.style.backgroundImage = "none";

var nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');
map.addControl(new mapboxgl.NavigationControl(), 'top-left');
map.addControl(new mapboxgl.FullscreenControl(), 'top-right');

map.addSource("region_hosts", {
type: "geojson",
Expand Down

0 comments on commit 46a782c

Please sign in to comment.