Skip to content

Instantly share code, notes, and snippets.

@trevorblades
Created August 22, 2017 18:15
Show Gist options
  • Save trevorblades/03d1dc32abd362a59fc57ce34104deb4 to your computer and use it in GitHub Desktop.
Save trevorblades/03d1dc32abd362a59fc57ce34104deb4 to your computer and use it in GitHub Desktop.
getCurrentTileLayer example
const getCurrentTileLayer = year => L.tileLayer(`https://storage.googleapis.com/planet-bigspringsmap-tiles/${year}tiles/{z}/{x}/{y}.png`, {tms: true, attribution: ''});
getCurrentTileLayer(2007);
// L.tileLayer('https://storage.googleapis.com/planet-bigspringsmap-tiles/2007tiles/{z}/{x}/{y}.png', {tms: true, attribution: ''});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment