348 mapbox raster tiles#351
Conversation
|
It's possible to apply mapbox styles to pmtiles sources, this may be a good approach: https://github.com/openlayers/ol-mapbox-style/blob/main/examples/pmtiles.js |
|
Ended up writing a bug report about the label color display shown in the top post, as I had isolated it to being caused by |
|
At this point it is pretty low priority to get this change into the code base, as visitorship is lower than when the mapbox limits were originally being exceeded. Also, as mentioned in #380 , the vector tile style does not show as many street names as we would like, so it's actually been good to keep the hybrid satellite/streets style in the main app, because sometimes it renders streetnames that the other new vector style doesn't. I think I'll just merge this in soon to cleanup the PR list, but leave the basemap configuration as is, perhaps relegating the determination of which imagery basemap to use to a setting. |




Closes #348
Instead of using the Mapbox Static Tile API to pull in a basemap style that combines satellite imagery and road labels, now there is a composite of the Mapbox Raster Tile API satellite with OpenFreeMap labels on top of it created directly in the fronted. This is a big improvement because the Raster Tile API has a much higher free tier limit than the Static Tile API.
There is one funny quirk, even though I force the labels to all be colored white with a grey halo (for the best visibility against the imagery background), one layer,

highway-name-majorseems to always be painted with black text.No idea what's going on here, but it's kind of funny.