Created
August 22, 2017 18:15
-
-
Save trevorblades/03d1dc32abd362a59fc57ce34104deb4 to your computer and use it in GitHub Desktop.
getCurrentTileLayer example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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