Estoy comenzando con MapLibre y ESRI, y no puedo hacer que reconozca mi clave api.<\/P>
Mi clave api tiene privilegios de basemap y estilos de basemap. <\/P>
Con el código simple del tutorial<\/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.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.