Osclass Support Forums

Osclass plugin support => OpenStreetMaps Plugin => Topic started by: Jack on March 18, 2023, 06:17:11 PM

Title: Limit Mapbox Static Tiles API requests
Post by: Jack on March 18, 2023, 06:17:11 PM
Does anyone know how to setup the cache to limit Mapbox Static Tiles API requests? Or create even just a simple non-interactive jpg map, if it costs less.. ;)
Over 200,000 API requests per month the service is very expensive..

Thank you
Title: Re: Limit Mapbox Static Tiles API requests
Post by: MB Themes on March 18, 2023, 08:38:27 PM
You must have a lot of visitors.
Solution coukd be "click to load map" that would probably limit requests by 90-95%
Title: Re: Limit Mapbox Static Tiles API requests
Post by: Jack on March 19, 2023, 07:07:05 PM
Thanks for the advice. I have now restricted the map view to only the vehicle and property categories  ;)
I don't have that many visitors and probably crawlers are counted as well.

On the Mapbox site I seem to have understood that if the map has a custom style it is not possible to create a map cache.
Title: Re: Limit Mapbox Static Tiles API requests
Post by: MB Themes on March 31, 2023, 02:48:05 PM
What is "custom style" ?