Widget to Switch Apps to a known extent

568
3
12-06-2018 07:49 PM
RodWoodfordOld
Occasional Contributor III

Hi

Is there a widget that will allow a user to select another App from a listing and switch to that nominated app and open it to the same extent of the current app if the projections are the same?

cheers

Tags (1)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Rod,

   There is a web map switcher widget but it does not maintain the same extent.

https://community.esri.com/docs/DOC-7630 

0 Kudos
RodWoodfordOld
Occasional Contributor III

Thanks Robert,

I'll take a look. Really need somthing that will open at the same extent if the projection is the same. I'm getting lots of requests for this.

cheers

0 Kudos
JamalWest2
Occasional Contributor

We have created something like this. We did it for several internal apps. For each button the onclick function is something like the following.

funcApp_publicgisExtent: function () {
var app_url_parameter_map_extent = "https://matterhornwab.co.pierce.wa.us/publicgis/?extent=" + this.map.extent.xmin + "," + this.map.extent.ymin + "," + this.map.extent.xmax + "," + this.map.extent.ymax + ",2927";
window.open(app_url_parameter_map_extent, "_blank");
},

jimu.js/MapURLParamsHandler.js has code to handle an extent specification in the url already.