Phi: add a scale to map
This commit is contained in:
parent
21a7105fa8
commit
a2b2a91618
2 changed files with 5 additions and 0 deletions
|
@ -11,4 +11,5 @@
|
|||
},
|
||||
overlays: overlays,
|
||||
hasFollowAircraft: true,
|
||||
scale: { metric: false }
|
||||
}}"></div>
|
||||
|
|
|
@ -78,6 +78,10 @@ define(
|
|||
L.control.layers(baseLayers, params.overlays).addTo(self.map);
|
||||
}
|
||||
|
||||
if (params && params.scale) {
|
||||
L.control.scale(params.scale).addTo(self.map);
|
||||
}
|
||||
|
||||
L.RotatedMarker = L.Marker.extend({
|
||||
options : {
|
||||
angle : 0
|
||||
|
|
Loading…
Add table
Reference in a new issue