<?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: Can't get basemap using js 3.10+ and proxy rules in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138535#M12930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a few samples in the JSAPI resource center that use addProxyRule and they work at 3.9+ - check out the Directions sample for one example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/widget_directions_basic.html" title="https://developers.arcgis.com/javascript/jssamples/widget_directions_basic.html"&gt;Directions | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you run your app with browser developer tools open are there any error messages written to the console? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 00:12:19 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2014-12-16T00:12:19Z</dc:date>
    <item>
      <title>Can't get basemap using js 3.10+ and proxy rules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138532#M12927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the 3.9 of the ArcGIS Javascript library this works fine, but I've found if I use 3.10 or 3.11 I no longer get basemaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm adding the proxy rule like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;esri.urlUtils.addProxyRule({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlPrefix: "server.domain.com",&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxyUrl: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost/proxy/proxy.ashx" rel="nofollow" target="_blank"&gt;http://localhost/proxy/proxy.ashx&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm adding my map like this:&lt;/P&gt;&lt;P&gt; map = new esri.Map("mapDiv", {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-100.167, 48.167],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 5,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "topo"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the proxy rule the basemap comes up fine.&amp;nbsp; The proxy I'm using is the one from github&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 19:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138532#M12927</guid>
      <dc:creator>MichaelDennis1</dc:creator>
      <dc:date>2014-12-10T19:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get basemap using js 3.10+ and proxy rules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138533#M12928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think if basemap is cached you would also have to add tile server url in proxy rule. You can find tile server url from ArcGIS rest end point or use fiddler or browser network panel to identify the url.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my Windows Phone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 03:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138533#M12928</guid>
      <dc:creator>RahulMetangale2</dc:creator>
      <dc:date>2014-12-11T03:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get basemap using js 3.10+ and proxy rules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138534#M12929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I probably wasn't specific enough in my description.&amp;nbsp; The proxy rules are only for ArcGIS web services on our server.&amp;nbsp; I don't want the basemap to route through the proxy.&amp;nbsp; Even though I don't have any of the esri sites in the proxy rules, somehow the having the proxy rules there seems to effect the access of the basemap layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned this same code works under js.arcgis.com/3.9 but upon changing it to js.arcgis.com/3.10 I get no layers on my map (including the basemap).&amp;nbsp; If I comment out the lines related to the proxy rules then I get a basemap.&amp;nbsp; So something must have changed in regards to the way the proxy rules are handled between 3.9 and 3.10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 15:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138534#M12929</guid>
      <dc:creator>MichaelDennis1</dc:creator>
      <dc:date>2014-12-11T15:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get basemap using js 3.10+ and proxy rules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138535#M12930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a few samples in the JSAPI resource center that use addProxyRule and they work at 3.9+ - check out the Directions sample for one example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/widget_directions_basic.html" title="https://developers.arcgis.com/javascript/jssamples/widget_directions_basic.html"&gt;Directions | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you run your app with browser developer tools open are there any error messages written to the console? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 00:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138535#M12930</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2014-12-16T00:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get basemap using js 3.10+ and proxy rules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138536#M12931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a very similar problem.&amp;nbsp; I added a proxyRule for my local secure server, but do I need to add another one for the ESRI base maps?&amp;nbsp; I am getting an initial basemap from my map creation.&amp;nbsp; I'm getting errors when creating a BasemapGallery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error comes when I first load the page:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; esri.dijit.BasemapGallery:&amp;nbsp; Unable to find the 'map' property in parameters.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I use BasemapGallery in nearly all my maps and I know the syntax is pretty straight forward.&amp;nbsp; I have loaded the Search widget using the exact same syntax for the map parameter and it loads just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //basemapgallery widget&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.basemapGallery = new BasemapGallery({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showArcGISBasemaps: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: app.map&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, "basemapGalleryDiv");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.basemapGallery.startup();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app.basemapGallery.on("error", function(msg){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("basemap gallery error:&amp;nbsp; ", msg.message);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even with the error, the thumbnails load OK&amp;nbsp; in my side panel, but when I try to change the basemap I'm getting the error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;basemap gallery error:&amp;nbsp;&amp;nbsp; esri.dijit.BasemapGallery: could not find group for basemaps.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference between this map and others is that I have secured services, so I need the proxy set up and I'm using IdentityManager.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 14:40:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138536#M12931</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-08-25T14:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get basemap using js 3.10+ and proxy rules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138537#M12932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The initial error seems to come from this ServerInfo definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var serverInfo = new ServerInfo();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverInfo.server = pathName;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; serverInfo.tokenServiceUrl = pathName+"/arcgis/tokens/generateToken"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why I had that in the first place.&amp;nbsp;&amp;nbsp; I commented these lines out and there is no error when I load the map.&amp;nbsp; I'm still getting the error when I try to switch basemaps, though. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 15:54:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138537#M12932</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-08-25T15:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get basemap using js 3.10+ and proxy rules</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138538#M12933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally solved this by waiting until the secured layers were getting loaded.&amp;nbsp; I put a load listener on a featureLayer to create the basemapGallery then.&amp;nbsp; No more errors and switching basemaps works as well.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on(app.secureLayer, 'load', function (evt){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var basemapGallery = new BasemapGallery({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showArcGISBasemaps: true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: app.map&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, "basemapGalleryDiv");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemapGallery.startup();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on(basemapGallery, "error", function(msg){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("basemap gallery error:&amp;nbsp; ", msg.message);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 18:10:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-t-get-basemap-using-js-3-10-and-proxy-rules/m-p/138538#M12933</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-08-25T18:10:58Z</dc:date>
    </item>
  </channel>
</rss>

