Topic: Only display buildings that are near the 3D marker

Hi, I have a bunch of 3D markers and I want to control the number of buildings display on the online map, making it displaying only buildings that are close to the 3D markers. I am hoping to achieve this by either the GPS coordinates of the buildings or maybe the distance in unity units or any other parameters. for now I can only find options such as a maximum number of buildings displayed on the map. Please enlighten me, thank you!

Re: Only display buildings that are near the 3D marker

Hello.

Use OnlineMapsBuildings.OnShowBuilding to control whether you want to show the building or not.
https://infinity-code.com/doxygen/onlin … 7f401c4e3e
You can check a building by id, center point coordinates, or boundary coordinates.
https://infinity-code.com/doxygen/onlin … gBase.html

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.