cancel
Showing results for 
Search instead for 
Did you mean: 

Start ESRI map with my coordinates as center

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

mark_pe
Active Contributor
0 Kudos

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