Ich fange gerade erst mit MapLibre und ESRI an und kann meinen api key nicht erkennen lassen.<\/P>
Mein api key hat Berechtigungen für basemap und basemap styles. <\/P>
Mit dem einfachen Tutorial-Code<\/P>
<\/P>
apiKey = '<api key>';
@hess8 it really looks like your API key is no good. Check your settings and verify you have the required privilages, expiration date is in the future, and if you have any referrers set to make sure they match your origin.
If I run your URL above with my API key the service responds with 200, so you can use this technique to test your api key
https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/styles/arcgis/outdoor?f=json&echoToken=false&token=AAPT...
If you do not get it work work can you post the server response JSON here it might provide additional information.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.