1
0
Fork 0

Phi: add a scale to map

This commit is contained in:
Torsten Dreyer 2015-03-05 19:40:38 +01:00
parent 21a7105fa8
commit a2b2a91618
2 changed files with 5 additions and 0 deletions

View file

@ -11,4 +11,5 @@
},
overlays: overlays,
hasFollowAircraft: true,
scale: { metric: false }
}}"></div>

View file

@ -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