sreeharikm

Black tiles appearing on map while using the Esri US Median Household Income layer

Discussion created by sreeharikm on Oct 27, 2013
We are facing the problem while using the Esri US Median Household Income layer in our mobile app developed using JavaScript API 3.7. There is a black tile appearing on map and its transparency  is also changing while we change the layer using the slider. This issue is only with Household Income layer as we are using other layers like USA Congressional Districts which doesn't have any issue.

URL we are using to access the layer is  http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Household_Income/MapServer

Adding Map:

map = new esri.Map("map", {
        extent: mapExtent,
        logo: false, sliderPosition: "top-right",
        basemap: "streets"
    });


Adding the Layer:

    var USIncomeimageParameters;
    USIncomeimageParameters = new esri.layers.ImageParameters();
    USIncomeimageParameters.format = "PNG32";  //set the image type to PNG24, note default is PNG8.
    //Add US Income Layer as Dynamic map servcie
    USIncomeDynLyr = new esri.layers.ArcGISDynamicMapServiceLayer(USIncomeDynLyrURL,
            { "visible": false, "id": 'USIncomeDynLyr', "opacity": 0.8, "copyright": '', "showAttribution": true, "imageParameters": USIncomeimageParameters, "spatialReference": new esri.SpatialReference({ wkid: 102100 }) });
    map.addLayer(USIncomeDynLyr);


Any help will be greatly appreciated. Attached the image showing black tile on map.

Attachments

Outcomes