weralio

WMS stuck on SRS=EPSG:102100

Discussion created by weralio on Dec 11, 2012
Latest reply on Mar 22, 2017 by fcbassongis
I'm creating now access to this WMS server I had working before on 2.1 ... moving to jsapi 3.2 it get stuck on that projection (that is actually not supported by the WMS)

I read it takes the SRS from previous layers or the default.. any hint on how to change it??

I'm setting the layer now with:

// set up the OGC layer    
var layer1 = new esri.layers.WMSLayerInfo({name:'DigitalGlobe:Imagery',version:'1.1.1',title:'DGCS'});    
var resourceInfo = {    
    extent:initialExtent,    
    layerInfos:[layer1]    
};    

var wmsLayer = new esri.layers.WMSLayer(wmsURL, {resourceInfo: resourceInfo, visibleLayers: ['DigitalGlobe:Imagery']});    
wmsLayer.setImageFormat('png');    
wmsLayer.setImageTransparency(true);    
// the layer1 object instantion is broken, without this it defaults to 1.3.0    
wmsLayer.version = '1.1.1';    
        legendLayers.push({layer:wmsLayer,title:'Imagery'});    
wmsLayer.hide();        
 
and InitialExtent is on:
   var initialExtent = new esri.geometry.Extent({    
      'xmin': -9382860.162660452,    
      'ymin': 4998573.770502064,    
      'xmax': -9377829.6507363,    
      'ymax': 5001683.8020905,    
      'spatialReference': {'wkid': 3857}    
   });


Thanks

Walter

Outcomes