Do not add scale prefix when viewing raster data tiles (close #57)
This commit is contained in:
parent
098f057e55
commit
a3d8240aac
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue