rowanwins / maplibregl-mapbox-request-transformer

Transform mapbox:// urls in MapboxGL Styles for use in MapLibreGL.
MIT License
26 stars 5 forks source link

Mention billing differences with MapLibre GL v1 #3

Closed th0rgall closed 1 year ago

th0rgall commented 1 year ago

I was using this transformer, which allowed me to upgrade to MapLibre GL v2 (thanks!), but wasn't aware of the implications it would have on my Mapbox bill: it significantly increased my costs. All "Map loads for Web" charges had turned into Vector Tiles API charges.

I figured out why, which I included in this PR to help other people who find this library while inadvertently upgrading their v1 to v2.

As a reference, here's a partially anonymised screen of my billing view to illustrate the effect:

CleanShot 2023-02-17 at 12 14 40@2x

And about the Mapbox GL JS included tiles pricing: https://docs.mapbox.com/mapbox-gl-js/guides/pricing/

image

rowanwins commented 1 year ago

Thanks for this PR @th0rgall - I hadn't actually thought about the pricing side of things as I'm using this in a small app so I've been operating within the free tier, but it's definitely worth mentioning.