add scale
This commit is contained in:
@@ -286,6 +286,9 @@ function initSpotMessages(aoMessages, aoTracks) {
|
||||
return $('<div>', {'class':'leaflet-control-layers leaflet-control leaflet-control-layers-expanded'}).append($('<section>').append($Labels))[0];
|
||||
};
|
||||
oProjects.addTo(oMap);
|
||||
|
||||
//Scale
|
||||
L.control.scale({imperial: false, 'position':'bottomright'}).addTo(oMap);
|
||||
}
|
||||
|
||||
function getBoundsZoomLevel(bounds, mapDim) {
|
||||
@@ -396,6 +399,7 @@ function getPost(asPost) {
|
||||
.hover(function(){
|
||||
var oMarker = oSpot.tmp(['markers', $(this).data('id')]);
|
||||
if(oSpot.tmp('map').getBounds().contains(oMarker.getLatLng())) oMarker.togglePopup();
|
||||
else if(oMarker.isPopupOpen()) oMarker.closePopup();
|
||||
});
|
||||
break;
|
||||
case 'picture':
|
||||
|
||||
Reference in New Issue
Block a user