Skip to content

Instantly share code, notes, and snippets.

@turban
Created September 30, 2012 11:28
Show Gist options
  • Save turban/3806508 to your computer and use it in GitHub Desktop.
Save turban/3806508 to your computer and use it in GitHub Desktop.
var seafloor = L.tileLayer('tiles/nz-seafloor/{z}/{x}/{y}.png', {
maxZoom: 9,
attribution: 'Map data from <a href="http://www.niwa.co.nz/our-science/oceans/bathymetry">NIWA</a>'
});
var topo = L.tileLayer('tiles/nz-topo/{z}/{x}/{y}.png', {
attribution: '<a href="http://data.linz.govt.nz/">LINZ</a>, <a href="http://lris.scinfo.org.nz/">LRIS</a>'
});
var map = new L.Map('map', {
center: [-41.2728, 173.2996],
minZoom: 4,
maxZoom: 11,
zoom: 6,
layers: [topo]
});
var layers = L.control.layers({}, {
'Seafloor': seafloor,
'Topographic': topo
}).addTo(map);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment