AnsweredAssumed Answered

Can't get basemap using js 3.10+ and proxy rules

Question asked by mikedenn on Dec 10, 2014
Latest reply on Aug 25, 2015 by schlot

Hi,

 

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.

 

I'm adding the proxy rule like this:

 

esri.urlUtils.addProxyRule({

            urlPrefix: "server.domain.com",

            proxyUrl: "http://localhost/proxy/proxy.ashx"

        });

 

I'm adding my map like this:

map = new esri.Map("mapDiv", {

              center: [-100.167, 48.167],

              zoom: 5,

              basemap: "topo"

        });

 

If I remove the proxy rule the basemap comes up fine.  The proxy I'm using is the one from github

Any suggestions?

 

Mike

Outcomes