How can I tell if a GeoLocation position is in the visible area of map? Or how can I get the GeoLocations of the boundaries of the visible portion of the map.I am using the HERE SDK (Starter) for Android.
Asked
Active
Viewed 168 times
1 Answers
0
To get the visible portion of the map, you can try Map.getBoundingBox(), which Returns the current visible map area as a GeoBoundingBox. Then, you can use GeoBoundingBox.contains(GeoCoordinate coord) to determine whether the specified GeoCoordinate is contained within this GeoBoundingBox. Details, please check here.
Btw, the starter edition has been deprecated. You should consider moving to other editions, like Premium edition.
-
Thanks, that solves the problem. I appreciate that the starter edition has been deprecated, but when I last looked the Lite edition didn't have the PositioningManager capability and this personal project doesn't justify the Premium edition. – jrisch Jul 15 '20 at 06:02