Is it possible to find the extent of the map in a downloaded and live application built through Web AppBuilder(Dev Edition)?

351
6
Jump to solution
01-23-2018 10:24 AM
PhilBeilin1
Occasional Contributor

I have a published and deployed app created with Web AppBuilder Developer. 

Is there a way to find out the exact extent of the current map?

I need to know information such as the following: 

"type": "extent",
"xmin": -13588276.74216401,
"ymin": 4566302.296222248,
"xmax": -13588151.337664517,
"ymax": 4566421.729078907,

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

In that case it is extremely simple. In your app open the developer tools (F12) and in the console tab find the command prompt line (>) and type _viewerMap.extent and click enter.

View solution in original post

6 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Phil,

   You need to know the extent of the web map that your app uses or the extent at a certain point in your apps usage?

0 Kudos
PhilBeilin1
Occasional Contributor

I think I mean the extent that the app uses at any given time.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Phil,

  If it is just something you need to print to the console then it would be supper easy to add come code to the MapManager.js to console log the maps extent changes.

0 Kudos
PhilBeilin1
Occasional Contributor

I need the extent to manually create new book marks after the application has already been downloaded and deployed.

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

In that case it is extremely simple. In your app open the developer tools (F12) and in the console tab find the command prompt line (>) and type _viewerMap.extent and click enter.

PhilBeilin1
Occasional Contributor

Exactly what I needed! Thank you Robert!

0 Kudos