Topic: IgnoreGPS marker from location service raycast

Hello,

I am currently looking for a way to ignore the marker from the OnlineMapsLocationService. It is getting drawn on top of other markers and as such it is preventing them from being clicked. Is there a way to ignore the gps marker when clicking - tapping so the other markers can be clicked 100% of the times?

Thank you very much

Re: IgnoreGPS marker from location service raycast

Hello.

You can do it this way:
- Create your own Marker Drawer, which will inherit OnlineMapsMarkerBufferDrawer if you use 2D Control, or OnlineMapsMarkerFlatDrawer if you use Tileset.
- Override GetMarkerFromScreen method, and add check that it is not location marker (OnlineMapsLocationServiceBase.marker).
- In Start of your script, set your drawer to OnlineMapsControlBase.markerDrawer.

Example how to use custom marker drawers:
https://infinity-code.com/atlas/online- … rawer.html

Kind Regards,
Infinity Code Team.

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