Permalink
Browse files

Added continuousWorld:true option to L.Map to not have to patch Leafl…

…et with "preDrag fix"
  • Loading branch information...
1 parent 1a3ccf9 commit c0b1922c6ea09ae006e8ef72b384dbc044cc09db Christopher Freden committed Dec 8, 2011
Showing with 4 additions and 0 deletions.
  1. +3 −0 examples/index.html
  2. +1 −0 examples/script.js
View
@@ -8,6 +8,9 @@
<body>
<div id="map"></div>
<script src="lib/leaflet/leaflet.js"></script>
+ <!-- Use this to debug with Leaflet source
+ <script src="../../Leaflet/debug/leaflet-include.js"></script>
+ -->
<script src="lib/proj4js-compressed.js"></script>
<script src="../src/proj4leaflet.js"></script>
<script src="script.js"></script>
View
@@ -7,6 +7,7 @@ var res = [8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5]
,scale: function(zoom) {
return 1 / res[zoom];
}
+ ,continuousWorld: true
})
,mapUrl = 'http://api.geosition.com/tile/lmv/{z}/{x}/{y}.png'
,attrib = 'Map data &copy; 2011 Lantmäteriet, Imagery &copy; 2011 Kartena'

0 comments on commit c0b1922

Please sign in to comment.