Hello, is there any way to load specified json, depending on actual variable value ? :)

715
2
06-04-2017 01:31 PM
JędrekMarkowski
New Contributor II

Arcgis JS  I need help with refreshing the map, when the variable changes and the other json file is loaded

Tags (1)
0 Kudos
2 Replies
MirHashmi
Occasional Contributor

What is the layer type in your map please. For example, ArcGISDynamicMapServiceLayer.

RobertScheitlin__GISP
MVP Emeritus

Jędrek,

  Sure you would use esriRequest to get the json file and then use Dojo JSON class to parse the result as a true json object.