3

Unfortunately, cloneNode will not copy image data from a canvas. A possible solution is to use the Views takeScreenshot method to copy the imageData from the map and then add it to the copied canvas. var canvas = domClone.querySelector("canvas"); $printSection.appendChild(domClone); return view .takeScreenshot({ area: { ignorePadding: false ...


2

We resolved the issue by JSON.stringfy() the parameter. inputLayers: JSON.stringify([ { url: soilURL, serviceToken: user.creds.token }, ]),


1

If you look at the 3.x to 4.x Functionality Matrix, it says ColorPicker is "coming soon": So one option would be to wait until it's included. If that is not an option, I am not aware of a great way to use the 3.x ColorPicker on the same page that the 4.x API is included - I would probably just use the default HTML Color input in the mean time or some other ...


1

The property you want to look into is the legendResponse of each layer. console.log(operationalLayer1); if you log individual layers property you will find legendResponse on the list of properties. If you can access it on your script and able to change the layerName property it will be reflected on you map. I once did it in Web AppBuilder for developer ...


1

It seems like it has to do with your css rule: body * { visibility:hidden; } When you remove that, the map shows up. So does the non-modal content though, so I think the solution is to find a more fine-grained CSS rule to hide the background but not the map.


1

I will assume that you are using the 4.x version of the API since it seems GeoJSONLayer was implemented in 4.11. Remember that you have to define the modules and classes you will use on top of your script. I see you are calling several modules and classes but GeoJsonLayer is not listed (hence the error you are getting). If you take a look at the ...


1

Since you're using WAB, I guess you have a WebMap. Then you can customize the Popup directly in your WebMap using Arcade and get information from a related table using a custom attribute expression. Here general info about customizing your Popup using arcade Here you have info about getting info from another layers You're attribute expression would be ...


Only top voted, non community-wiki answers of a minimum length are eligible