Select to view content in your preferred language

WMS layer

529
2
01-22-2013 06:30 AM
VIKRANTKRISHNA
Regular Contributor
Is this the write way of loading WMS layer

esri.config.defaults.io.proxyUrl = "../proxy/proxy.ashx";
esri.config.defaults.io.alwaysUseProxy = true;
  
initExtent = new esri.geometry.Extent({"xmin":-35734.220130933,"ymin":4777506.27659575,"xmax":893683.447626841,"ymax":5521771.27659575,"spatialReference":{"wkid":26915}});
        
map = new esri.Map("map", {
          extent: initExtent
});


var wmsLmicAerial = new esri.layers.WMSLayer("http://geoint.lmic.state.mn.us/cgi-bin/wmsll?");
wmsLmicAerial.setVisibleLayers(["fsa2010"]);
wmsLmicAerial.setImageFormat("png");
map.addLayer(wmsLmicAerial);


this code works perfectly in IE and firefox, but it gets stuck in chrome.
Anyone know why?
0 Kudos
2 Replies
JeffPace
MVP Alum
try without the "?"
0 Kudos
VIKRANTKRISHNA
Regular Contributor
No luck even after removing "?"
0 Kudos