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?
Solved! Go to Solution.
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();
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();
Thanks!