Hi All I am trying to access my customly styled base map layer, with OpenLayers.
I am using ol-mapbox-style for it.
Unfortunately I receive a 403 response with follwoing url:
https://basemaps-api.arcgis.com/arcgis/rest/services/styles/<MY_STYLE_ID>?apiKey=<MY_API_KEY>
Api Key should have basemaps permission (or at least the ui tells me so)
codesnippet:
this.map = new Map(...magic...)
olms(this.map, <URL_AS_ABOVE>);
Thanks for your help
Alexander,
Try using "token" instead of "apiKey". For example:
https://basemaps-api.arcgis.com/arcgis/rest/services/styles/<MY_STYLE_ID>?token=<token>
I am using `apiKey` successfully instead of `token`. Not sure which is correct...
Things to check:
After you change the settings, the page says "it can take 15 minutes to propagate these updates". So, grab some coffee and check back later I guess 🙂