Skip to content

Use basemap without borders or labels for data api#226

Merged
TomAugspurger merged 2 commits intomainfrom
feature/data-api-basemap
Oct 19, 2022
Merged

Use basemap without borders or labels for data api#226
TomAugspurger merged 2 commits intomainfrom
feature/data-api-basemap

Conversation

@mmcfarland
Copy link
Member

It's difficult to get an Azure Map basemap into Folium, so use a non-geopolitically sensitive basemap without borders or labels.

It's difficult to get an Azure Map basemap into Folium, so use a
non-geopolitically sensitive basemap without borders or labels.
@mmcfarland
Copy link
Member Author

{
"data": {
"text/html": [
"\n",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Output is from the new pystac html rendering

Comment on lines +670 to +671
" tiles=\"https://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}\",\n",
" attr=\"Basemap © Esri — Source: Esri\"\n",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaningful change here.

")\n",
"\n",
"folium.TileLayer(tiles=tiles, attr=\"Planetary Computer\").add_to(m)\n",
"folium.TileLayer(tiles=tiles, attr=\"Planetary Computer\", min_zoom=render_config['minZoom']).add_to(m)\n",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here.

@TomAugspurger
Copy link

LGTM other than the linting error. Running black / pre-commit should fix it.

@TomAugspurger TomAugspurger merged commit ab536f1 into main Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants