Do not add scale prefix when viewing raster data tiles (close #57)

This commit is contained in:
Petr Sloup 2016-10-07 11:16:22 +02:00
parent 098f057e55
commit a3d8240aac

View file

@ -124,6 +124,10 @@
<div id='map'></div>
<script>
var map = L.mapbox.map('map', '/data/{{id}}.json{{&key_query}}', { zoomControl: false });
map.eachLayer(function(layer) {
// do not add scale prefix even if retina display is detected
layer.scalePrefix = '.';
});
new L.Control.Zoom({ position: 'topright' }).addTo(map);
setTimeout(function() {
new L.Hash(map);