Ik begin net met MapLibre en ESRI, en kan mijn api-sleutel niet laten herkennen.<\/P>
Mijn api-sleutel heeft basemap- en basemap-stijlen privileges. <\/P>
Met de eenvoudige tutorialcode<\/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.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.