Právě začínám s MapLibre a ESRI a nemohu přimět, aby rozpoznal můj api klíč.<\/P>
Můj api klíč má oprávnění pro basemap a styly basemap. <\/P>
S jednoduchým ukázkovým kódem<\/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.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.