daily pastebin goal
73%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var mapSW = [0, 4096],
  2.     mapNE = [4096, 0];
  3. var map = L.map('map').setView([0,0],1);
  4. L.tileLayer('maps/emptyGrid/{z}/{x}/{y}.png', {
  5.   minZoom: 1,
  6.   maxZoom: 4,
  7.   continousWorld: false,
  8.   noWrap:true,
  9.   crs: L.CRS.Simple,
  10. }).addTo(map)
  11.  
  12. map.setMaxBounds(new L.LatLngBounds(
  13.   map.unproject(mapSW, map.getMaxZoom()),
  14.   map.unproject(mapNE, map.getMaxZoom())
  15.   ));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top