<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Map without API key in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1121726#M75448</link>
    <description>&lt;P&gt;Thanks for the reply, Bjorn&lt;/P&gt;&lt;P&gt;I understand API Keys are just for ArcGIS Online and Enterprise should use token or OAuth authentication, but what I don't understand is what tells ArcGIS that I really have a license in the first place if I can go to codepen or any other site and just input a code with no reference to my enterprise account whatsoever?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is it just for demonstration/testing purposes?&lt;/LI&gt;&lt;LI&gt;If so, why the maps accessible with the API key is not open for testing as well?&lt;/LI&gt;&lt;LI&gt;Does this approach without a key or token have any limits to how much the application can consume?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm asking all these questions because if we can just ship out a code without any API/token reference that's the way we will take it since we won't have to deal with another endpoint to handle authentication (we are using &lt;SPAN&gt;client_credentials tokens). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I just want to be certain that this approach will keep working in the future, in order to keep our site running without problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Just to give you a context, the website in question is only using the base map, all the other layers are being generated on the client side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 19:08:44 GMT</pubDate>
    <dc:creator>LeandroAlmeida</dc:creator>
    <dc:date>2021-12-01T19:08:44Z</dc:date>
    <item>
      <title>Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1106529#M74927</link>
      <description>&lt;P&gt;I wrote some code that creates a map and allows users to click on the map. The click takes the lat,lng (of click) and queries a government's GIS database and returns the parcel number. They can also use the default search widget and search by address, which ultimately does the same thing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also added a polygon layer that outlines parcels and another polygon layer that outlines houses.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am NOT USING AN API KEY. I am NOT using esriConfig.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code works and seems fairly easy to disseminate. I just add:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;link&lt;/SPAN&gt; &lt;SPAN&gt;rel&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"stylesheet"&lt;/SPAN&gt; &lt;SPAN&gt;href&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://js.arcgis.com/4.20/esri/themes/light/main.css" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.20/esri/themes/light/main.css&lt;/A&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt; &lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://js.arcgis.com/4.20/" target="_blank" rel="noopener"&gt;https://js.arcgis.com/4.20/&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;And the code just works.&amp;nbsp;Basemap layers and Geocoding are a part of the Pricing, although nothing is stopping my code from running.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;The Questions is: Do I still need an API key? If so, does the search widget use a Geocoding credit? Does the adding a layer or loading the basemap use a Basemap credit?&amp;nbsp;&lt;BR /&gt;If not, why not? (But also not complaining)&lt;BR /&gt;&lt;BR /&gt;Extra Info:&lt;BR /&gt;To Query I use -&amp;gt; {featurelayerlink}/query?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;geometry={lat} {lng}&amp;amp;...etc&lt;BR /&gt;To Add a Layer I use -&amp;gt;&amp;nbsp;map.add(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;url:&lt;/SPAN&gt; &lt;SPAN&gt;featureLayerURL, ...etc&amp;nbsp; &amp;nbsp; }))&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;To Make the map -&amp;gt; map = new Map&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;basemap:&lt;/SPAN&gt; &lt;SPAN&gt;"streets"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Oct 2021 20:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1106529#M74927</guid>
      <dc:creator>ScottAndersonGQ</dc:creator>
      <dc:date>2021-10-11T20:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1108622#M75002</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/474521"&gt;@ScottAndersonGQ&lt;/a&gt;&amp;nbsp;- as for your question about "Do I need an API key?":&lt;BR /&gt;&lt;BR /&gt;That depends on your account.&amp;nbsp; If you are using an ArcGIS Developer account, then yes, you need an API key. If you are using an ArcGIS Online account, then no, API key is not required.&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/deployment/accounts/#arcgis-online-accounts" target="_blank"&gt;https://developers.arcgis.com/documentation/mapping-apis-and-services/deployment/accounts/#arcgis-online-accounts&lt;/A&gt;&lt;BR /&gt;As shown on that page, if you're using an ArcGIS Online account, then "Basemap layers" and "Geocoding (not stored)" does not consume credits.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 22:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1108622#M75002</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2021-10-18T22:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1121430#M75443</link>
      <description>&lt;P&gt;I also came across the same situation while configuring my application to use a token-based authentication from ArcGIS Enterprise.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you check this &lt;A href="https://codepen.io/lndr27/pen/yLzyYNw" target="_self"&gt;codepen&lt;/A&gt;&amp;nbsp;you can see what we mean.&lt;/P&gt;&lt;P&gt;There is no code to input an API key nor a token and yet the map loads without a problem.&lt;/P&gt;&lt;P&gt;All the basemaps from this &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#:~:text=For%20use%20without,ArcGIS%20Enterprise%20license." target="_self"&gt;documentation section&lt;/A&gt; works without authentication.&lt;/P&gt;&lt;P&gt;"For use &lt;STRONG&gt;without an API key&lt;/STRONG&gt;&lt;BR /&gt;Use of these basemaps &lt;STRONG&gt;requires a valid ArcGIS Online organizational subscription or an ArcGIS Enterprise license.&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it correct to assume these base maps don't need authentication of any kind to be loaded? If so, will it continue to be accessible in the future in the same manner?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 20:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1121430#M75443</guid>
      <dc:creator>LeandroAlmeida</dc:creator>
      <dc:date>2021-11-30T20:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1121583#M75445</link>
      <description>&lt;P&gt;If you have an ArcGIS Enterprise license , you can legally use the basemaps listed under "&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#:~:text=For%20use%20without,ArcGIS%20Enterprise%20license." target="_blank" rel="noopener"&gt;For use without an API key&lt;/A&gt;"&amp;nbsp; - and your application does not need to specify an API key.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/542019"&gt;@LeandroAlmeida&lt;/a&gt;&amp;nbsp;- does this help clarify?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 05:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1121583#M75445</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2021-12-01T05:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1121726#M75448</link>
      <description>&lt;P&gt;Thanks for the reply, Bjorn&lt;/P&gt;&lt;P&gt;I understand API Keys are just for ArcGIS Online and Enterprise should use token or OAuth authentication, but what I don't understand is what tells ArcGIS that I really have a license in the first place if I can go to codepen or any other site and just input a code with no reference to my enterprise account whatsoever?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is it just for demonstration/testing purposes?&lt;/LI&gt;&lt;LI&gt;If so, why the maps accessible with the API key is not open for testing as well?&lt;/LI&gt;&lt;LI&gt;Does this approach without a key or token have any limits to how much the application can consume?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm asking all these questions because if we can just ship out a code without any API/token reference that's the way we will take it since we won't have to deal with another endpoint to handle authentication (we are using &lt;SPAN&gt;client_credentials tokens). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I just want to be certain that this approach will keep working in the future, in order to keep our site running without problems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Just to give you a context, the website in question is only using the base map, all the other layers are being generated on the client side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 19:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1121726#M75448</guid>
      <dc:creator>LeandroAlmeida</dc:creator>
      <dc:date>2021-12-01T19:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1122326#M75466</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/542019"&gt;@LeandroAlmeida&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Technically there is nothing that tells ArcGIS that you indeed have an Enterprise license. It's a "paper" license. The terms are described in details in the E300 MLA - &lt;A href="https://www.esri.com/en-us/legal/terms/product-specific-scope-of-use" target="_blank" rel="noopener"&gt;https://www.esri.com/en-us/legal/terms/product-specific-scope-of-use&lt;/A&gt;.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;There's no special limits for using this keyless/tokenless approach - assuming you have the license.&lt;BR /&gt;&lt;BR /&gt;We don't currently have any plans to change that as far as I know.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/licensing/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/licensing/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 20:09:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1122326#M75466</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2021-12-02T20:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1244811#M79757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/881"&gt;@BjornSvensson&lt;/a&gt;&amp;nbsp;, please help me with iOS code to setup map without API key for&amp;nbsp;&lt;SPAN&gt;ArcGIS enterprise account. Please share sample code or links for&amp;nbsp;&lt;/SPAN&gt;iOS and Android. thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 09:19:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1244811#M79757</guid>
      <dc:creator>NarasimhaNallamsetty</dc:creator>
      <dc:date>2023-01-03T09:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1245894#M79785</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/647048"&gt;@NarasimhaNallamsetty&lt;/a&gt; , for questions related to iOS/Android, I would recommend asking in their related communities, see &lt;A href="https://community.esri.com/t5/arcgis-maps-sdks-for-native-apps/ct-p/arcgis-runtime-sdks" target="_blank"&gt;https://community.esri.com/t5/arcgis-maps-sdks-for-native-apps/ct-p/arcgis-runtime-sdks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 22:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1245894#M79785</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2023-01-05T22:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1367327#M83278</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/881"&gt;@BjornSvensson&lt;/a&gt;,&amp;nbsp;I'm in the same situation as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/474521"&gt;@ScottAndersonGQ&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/542019"&gt;@LeandroAlmeida&lt;/a&gt;,&amp;nbsp;however, in the link provided in the image below there is no longer the option you mentioned.&amp;nbsp;I didn't find the basemaps that can be used without using an API Key.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Flayner_0-1704723164794.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90823i998951EE0C46504E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Flayner_0-1704723164794.png" alt="Flayner_0-1704723164794.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have the ArcGIS enterprise license, and I would like to know if there is still an option to use basemaps without using the API Key.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 14:14:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1367327#M83278</guid>
      <dc:creator>Flayner</dc:creator>
      <dc:date>2024-01-08T14:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1371175#M83369</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/663256"&gt;@Flayner&lt;/a&gt;&amp;nbsp;- the basemap documentation is available at&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap&lt;/A&gt;&amp;nbsp;.&lt;BR /&gt;In your case, you're looking for option 2, "From a basemap id" - see&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap-id" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap-id&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 19:13:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1371175#M83369</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2024-01-17T19:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1386613#M83745</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/881"&gt;@BjornSvensson&lt;/a&gt;&amp;nbsp;I am part of an organization (NOAA) that has an Esri enterprise license. I want to use vector basemaps without an API key as those above are doing, but I need to use them through OpenLayers, not through the Ersi JavaScript API. I see examples like&amp;nbsp;&lt;A href="https://codepen.io/lndr27/pen/yLzyYNw" target="_blank"&gt;https://codepen.io/lndr27/pen/yLzyYNw&lt;/A&gt;&amp;nbsp;(reference above) that use the Esri API and just have to specify&amp;nbsp;&lt;FONT face="courier new,courier"&gt;basemap: "satellite"&lt;/FONT&gt; as part of making their map object. But in the OpenLayers examples such as&amp;nbsp;&lt;A href="https://developers.arcgis.com/openlayers/layers/add-a-vector-tile-layer/," target="_blank"&gt;https://developers.arcgis.com/openlayers/layers/add-a-vector-tile-layer/,&lt;/A&gt;&amp;nbsp;an API key is used, and trying to leave it off the URL results in a 401 permissions error for me. Can you point me to an example of using a styled vector basemap under OpenLayers without an API key?&lt;/P&gt;&lt;P&gt;I was able to get as far as the code below. It adds the layer, but the layer is just in a blue outline, which I take to be the layer without any styling applied. Is there a way for me to apply styles to this layer (without an API key)? Or is this the wrong approach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    const streetsSource = new ol.source.VectorTile(
        {
            format: new ol.format.MVT(),
            url: `https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf`
        } );
   
    const streetsLayer = new ol.layer.VectorTile(
        {
            source: streetsSource
        } );
   
    map.addLayer( streetsLayer );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 06:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1386613#M83745</guid>
      <dc:creator>MichaelKatz-NOAAAffiliate</dc:creator>
      <dc:date>2024-02-26T06:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1387641#M83773</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;You have the correct URL to access the enhanced endpoint of the basemap styles service, which does allow you to access basemaps without an API key.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The standard practice for styling ArcGIS vector basemaps in OpenLayers is to request the layer info as Mapbox style JSON and use&amp;nbsp;&lt;A href="https://github.com/openlayers/ol-mapbox-style" target="_self"&gt;ol-mapbox-style&lt;/A&gt;&amp;nbsp;to load the basemap. The OpenLayers&amp;nbsp;&lt;A href="https://developers.arcgis.com/openlayers/maps/display-a-map/" target="_self"&gt;"Display a map"&lt;/A&gt;&amp;nbsp;tutorial is a good example of this pattern.&amp;nbsp;However, the enhanced endpoint that you are using does not support mapbox style JSON, which is a requirement to style basemaps in OpenLayers.&lt;/P&gt;&lt;P&gt;Unfortunately, Mapbox style JSON is only supported by the new basemap styles endpoint (&lt;A href="https://developers.arcgis.com/rest/basemap-styles/" target="_self"&gt;docs here&lt;/A&gt;), which does require an API key / other access token. I'm not sure if there is a workaround for your specific use case. I will look into this more.&lt;/P&gt;&lt;P&gt;My suggestion for now would be to implement an&amp;nbsp;&lt;A href="https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json" target="_self"&gt;Image tile basemap&lt;/A&gt;&amp;nbsp;instead (doesn't require authentication). Alternatively, if API keys are the limiting factor, I would recommend that you implement an alternative method of authentication such as&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/user-authentication/" target="_self"&gt;user authentication&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/app-credential-authentication/" target="_self"&gt;app credential authentication.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 19:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1387641#M83773</guid>
      <dc:creator>Gowin</dc:creator>
      <dc:date>2024-02-27T19:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Map without API key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1406720#M84246</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/769344"&gt;@MichaelKatz-NOAAAffiliate&lt;/a&gt;&amp;nbsp;, hopefully you have already gotten an answer to your question about &lt;A href="https://developers.arcgis.com/openlayers/" target="_self"&gt;OpenLayers&lt;/A&gt;.&amp;nbsp; If not, it's better to ask in the &lt;EM&gt;Open Source Mapping Libraries&lt;/EM&gt; community --&amp;nbsp;&lt;A href="https://community.esri.com/t5/open-source-mapping-libraries/ct-p/open-source-mapping-libraries" target="_blank"&gt;https://community.esri.com/t5/open-source-mapping-libraries/ct-p/open-source-mapping-libraries&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 00:18:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-without-api-key/m-p/1406720#M84246</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2024-04-06T00:18:07Z</dc:date>
    </item>
  </channel>
</rss>

