refactoring: extract scale & locate controls to Map.js
This commit is contained in:
parent
49ac7f5127
commit
0d30461ebc
2 changed files with 8 additions and 8 deletions
|
|
@ -113,10 +113,17 @@ BR.Map = {
|
|||
|
||||
layersControl = L.control.layers(baseLayers, overlays).addTo(map);
|
||||
|
||||
L.control.locate({
|
||||
icon: 'glyphicon glyphicon-screenshot',
|
||||
iconLoading: 'glyphicon glyphicon-refresh',
|
||||
}).addTo(map);
|
||||
|
||||
L.control.scale().addTo(map);
|
||||
|
||||
// expose map instance for console debugging
|
||||
BR.debug = BR.debug || {};
|
||||
BR.debug.map = map;
|
||||
|
||||
|
||||
return {
|
||||
map: map,
|
||||
layersControl: layersControl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue