Closed ollehints closed 5 years ago
Maps on different pages should include Estonian Land Board tile layers like in sarv-edit app. If locality is from Estonia, the Estonian tile layer should be shown by default instead of mapbox layer.
tileProviders: [ { name: 'Maaameti fotokaart', maxZoom: 18, minZoom: 6, leafletObject: L.tileLayer( 'https://tiles.maaamet.ee/tm/tms/1.0.0/foto@GMC/{z}/{x}/{-y}.png&ASUTUS=TALTECH&KESKKOND=LIVE&IS=SARV', { attribution: 'Eesti kaardid: <a href=\'http://www.maaamet.ee/\'>Maa-amet</a>', tms: true, worldCopyJump: true, detectRetina: true, zIndex: 1, updateWhenIdle: true, continuousWorld: true,}) }, { name: 'Maaameti kaart', maxZoom: 18, minZoom: 6, leafletObject: L.tileLayer( 'https://tiles.maaamet.ee/tm/tms/1.0.0/kaart@GMC/{z}/{x}/{-y}.png&ASUTUS=TALTECH&KESKKOND=LIVE&IS=SARV', { attribution: 'Eesti kaardid: <a href=\'http://www.maaamet.ee/\'>Maa-amet</a>', tms: true, worldCopyJump: true, detectRetina: true, zIndex: 1, updateWhenIdle: true, continuousWorld: true }) }, { name: 'Maaameti hübriidkaart', leafletObject: L.tileLayer( 'https://tiles.maaamet.ee/tm/tms/1.0.0/hybriid@GMC/{z}/{x}/{-y}.png&ASUTUS=TALTECH&KESKKOND=LIVE&IS=SARV', { attribution: 'Eesti kaardid: <a href=\'http://www.maaamet.ee/\'>Maa-amet</a>', tms: true, worldCopyJump: true, detectRetina: true, zIndex: 2, updateWhenIdle: true, continuousWorld: true, }) }, ]
Maps on different pages should include Estonian Land Board tile layers like in sarv-edit app. If locality is from Estonia, the Estonian tile layer should be shown by default instead of mapbox layer.