get map extent in the widget

93
1
07-04-2018 01:49 PM
rajujee
New Contributor II

How I can get map extent in the widget (minX, minY, maxX, maxY).

I am getting type error in the widget. Could you please guide

  var minxx = this.map.extent.getMinx(); //TypeError: this.map.extent.xMin is not a function

  var minxx = this.map.getMinx(); //TypeError: this.map.extent.xMin is not a function

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Raju,

   Try:

var minxx = this.map.extent.minx;
0 Kudos