POST
|
I had same issue and concur with the solution: setting the imageFormat to 'png32' was the key issue. My service was returning 'png8' images by default - which does not seem to support transparency for this API. Below is my code. // Code is TypeScripty // Specified map service has 4 layers this.myDataLayer = new ArcGISDynamicMapServiceLayer(`${mapServiceUrl}${mapServicePath}/MapServer/`, { "visible": true, "id": "My_Data"} ); let layerDrawingOptions: LayerDrawingOptions[]= []; let drawingOption2 = new LayerDrawingOptions(); // Set 10 percent transparency for layers 0 and 1 drawingOption2.transparency = 10; layerDrawingOptions[0] = drawingOption2; layerDrawingOptions[1] = drawingOption2; // Set 50 percent transparency for layers 2 and 3 let drawingOption = new LayerDrawingOptions(); drawingOption.transparency = 50; layerDrawingOptions[2] = drawingOption; layerDrawingOptions[3] = drawingOption; this.myDataLayer.setLayerDrawingOptions(layerDrawingOptions); // The following line is required or transparency setting does not work! Default 'png8' does not support transparency. this.myDataLayer.setImageFormat("png32"); this.map.addLayer(this.myDataLayer);
... View more
03-29-2018
03:18 PM
|
0
|
0
|
989
|
POST
|
I want to implement a distance/area measure tool in ArcGIS Runtime 100.0.0 for .NET/WPF. Has this type of widget been built and published anywhere yet? Thanks.
... View more
12-08-2016
03:06 PM
|
0
|
1
|
1039
|
POST
|
How can I prevent jsapi map from panning beyond the basemap's northern or southern extent? I want to 'lock' the vertical pan so no white space can show above or below the basemap (e.g. arcgis 'streets' basemap). At any scale or level, I do not want my users to see beyond the northern or southern edge-of-the-world! thanks, Bill
... View more
05-28-2016
09:11 PM
|
0
|
0
|
2495
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|