colormap_name for MosaicJSON #440
-
Is it possible to set the import requests
from folium import Map, TileLayer
titiler_endpoint = "https://titiler.xyz"
r = requests.get(
f"{titiler_endpoint}/mosaicjson/tilejson.json",
params={
"url": "https://fldpln.blob.core.windows.net/maps/spring.json.gz",
# 'colormap_name': "blues"
}
).json()
print(r)
m = Map(
location=(36.8608, -94.8152),
zoom_start=13
)
tiles = TileLayer(
tiles=r["tiles"][0],
min_zoom=r["minzoom"],
max_zoom=r["maxzoom"],
opacity=1,
attr="NOAA Esri"
)
tiles.add_to(m)
m |
Beta Was this translation helpful? Give feedback.
Answered by
vincentsarago
Feb 24, 2022
Replies: 1 comment 1 reply
-
sorry @giswqs I moved this to I think you're issue is you need to add a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
giswqs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry @giswqs I moved this to
discussion
because there is nobug
here.I think you're issue is you need to add a
rescale
parameter to rescale the data from 0 to 255.