Select to view content in your preferred language

center of map

549
2
Jump to solution
10-22-2019 03:12 AM
RAHULPANDIA
Emerging Contributor

I am creating a widget(web app builder).... which places a graphics at center of map on button click?

i tried :

-this.map.extent.center

Any idea how to get this is JavaScript 4.x?

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Rahul,

   WAB is using 3.x and not 4.x (unless you are talking about a 3D scene). In 3.x it would be 

this.map.extent.getCenter();

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Rahul,

   WAB is using 3.x and not 4.x (unless you are talking about a 3D scene). In 3.x it would be 

this.map.extent.getCenter();
RAHULPANDIA
Emerging Contributor

Thanks!

0 Kudos