You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a RasterSource that is restricted to only certain User-Agent strings. This is a common anti-scraping measure for tiles stored on e.g. AWS. Not 100% effective, of course, but enough to keep out Web crawlers and most scripts.
I would like to set the User-Agent on HTTP requests from the Mapbox library. I do see a reference to replacing the entire HTTP stack in the Mapbox documentation (https://docs.mapbox.com/android/beta/maps/guides/migrate-to-v10/), but that's massive overkill, and anyway, this is the only reference to com.mapbox.common.HttpServiceInterface on the whole Internet, so I'm not sure that it's actually supported and used by clients.
There is a similar feature request for the Mapbox iOS SDK where it sounds like support is coming soon: mapbox/mapbox-maps-ios#435
This is easy to do in the Google Maps SDK for both Android and iOS, as the interface is a callback that lets you run arbitrary code to fetch a tile (a much preferable interface that would solve this and many other tile fetching issues).
The text was updated successfully, but these errors were encountered:
I have a RasterSource that is restricted to only certain User-Agent strings. This is a common anti-scraping measure for tiles stored on e.g. AWS. Not 100% effective, of course, but enough to keep out Web crawlers and most scripts.
I would like to set the User-Agent on HTTP requests from the Mapbox library. I do see a reference to replacing the entire HTTP stack in the Mapbox documentation (https://docs.mapbox.com/android/beta/maps/guides/migrate-to-v10/), but that's massive overkill, and anyway, this is the only reference to
com.mapbox.common.HttpServiceInterface
on the whole Internet, so I'm not sure that it's actually supported and used by clients.There is a similar feature request for the Mapbox iOS SDK where it sounds like support is coming soon: mapbox/mapbox-maps-ios#435
This is easy to do in the Google Maps SDK for both Android and iOS, as the interface is a callback that lets you run arbitrary code to fetch a tile (a much preferable interface that would solve this and many other tile fetching issues).
The text was updated successfully, but these errors were encountered: