Skip to Content
0

Start ESRI map with my coordinates as center

Nov 04, 2016 at 06:41 AM

57

avatar image

Hi,

I am working on a custom Agentry application based on SMP 3.0 on SAP Work Manager 6.2. In my LocationTileView I am passing a NotificationLocationString as a Geometry Object to the BaseLocationStringAdapter and when i test in my android apk the Geometry Location is being plotted on the map.

I want to plot the Location at the center of the map every time I load the map, currently the map centers at some Location which i'm not sure where the coordinates are coming from. What i intend to achieve is similar to clicking the FOCUS button though without zooming.

I had a look at the Arcgis API for Javascript Reference and there is a centerAt function to achieve this. Is there a similar event in Agentry and how can i achieve?

Your assistance is much appreciated.

Regards,

Luckson Moyo

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mark Pe
Nov 04, 2016 at 02:42 PM
0

Luckson,

Hi. The main assumption here is that you have the correct data getting returned in the BaseLocationCollecitonAdapter from the Agentry class file. From the Agentry editor, you can see that each of the variables that is being returned.

Most of the Agentry values are controlled by the rules. So you need to look at the rules on some of the Preferred (PREF_*) Agentry rules. Each of those Agentry rules needs to be reviewed for your case and see if you can study the rules to see the midpoint.

Best Regards,

SAP Support Team


aa.png (245.3 kB)
Share
10 |10000 characters needed characters left characters exceeded