hide elevation link in light version
This commit is contained in:
parent
93cf7685ed
commit
f361bdb5b1
1 changed files with 3 additions and 2 deletions
|
@ -571,8 +571,9 @@ async function start(opts) {
|
||||||
data.is_vector = tileJSON.format === 'pbf';
|
data.is_vector = tileJSON.format === 'pbf';
|
||||||
if (!data.is_vector) {
|
if (!data.is_vector) {
|
||||||
if (
|
if (
|
||||||
tileJSON.encoding === 'terrarium' ||
|
(tileJSON.encoding === 'terrarium' ||
|
||||||
tileJSON.encoding === 'mapbox'
|
tileJSON.encoding === 'mapbox') &&
|
||||||
|
!isLight
|
||||||
) {
|
) {
|
||||||
data.elevation_link = getTileUrls(
|
data.elevation_link = getTileUrls(
|
||||||
req,
|
req,
|
||||||
|
|
Loading…
Reference in a new issue