enable zoom control buttons by default (Fixes #33).
If you want maximum screen estate you can disable them until you clear your cache: Firefox: CTRL+SHIFT+K Opera/Chrome: CTRL+SHIFT+I, select console Then enter the following and hit enter: localStorage['iitc.zoom.buttons'] = 'false' You can enable them by exchanging “false” with anything else or by clearing your cache. You can close the web developer console by hitting the shortcut again or clicking the x-button somewhere.
This commit is contained in:
@ -57,7 +57,9 @@ window.setupMap = function() {
|
|||||||
portalsLayer = L.layerGroup([]);
|
portalsLayer = L.layerGroup([]);
|
||||||
linksLayer = L.layerGroup([]);
|
linksLayer = L.layerGroup([]);
|
||||||
fieldsLayer = L.layerGroup([]);
|
fieldsLayer = L.layerGroup([]);
|
||||||
window.map = new L.Map('map', $.extend(getPosition(), {zoomControl: false}));
|
window.map = new L.Map('map', $.extend(getPosition(),
|
||||||
|
{zoomControl: !(localStorage['iitc.zoom.buttons'] === 'false')}
|
||||||
|
));
|
||||||
try {
|
try {
|
||||||
map.addLayer(views[readCookie('ingress.intelmap.type')]);
|
map.addLayer(views[readCookie('ingress.intelmap.type')]);
|
||||||
} catch(e) { map.addLayer(views[0]); }
|
} catch(e) { map.addLayer(views[0]); }
|
||||||
|
Reference in New Issue
Block a user