Topic: OnlineMapsLocationService can't create marker 2d

Hello.
I can't create marker 2d in OnlineMapsLocationService (it does not show anything on map).
It works without problem with 3d marker.
Could you tell me how to solve it?
Thank you.

Re: OnlineMapsLocationService can't create marker 2d

Hello.

I just checked the creation of 2d marker using Location Service. It works well.
Maybe you have any messages in the console (Window / Console) ?!
If the problem persists, please send your scene (as a package) to support (support@infinity-code.com). I will check it and tell you exactly what is wrong.

Kind Regards,
Infinity Code Team.

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

Re: OnlineMapsLocationService can't create marker 2d

I understood the problem.
When i use OnlineMaps.RemoveAllMarkers () method, it also remove the marker at user location.
Is there anyway to work around?

Re: OnlineMapsLocationService can't create marker 2d

There are several ways, for example:
1. Remove all markers, except the player:

foreach (OnlineMapsMarker marker in OnlineMaps.instance.markers)
{
    if (marker != OnlineMapsLocationService.marker) marker.Dispose();
}
OnlineMaps.instance.markers = new[] {OnlineMapsLocationService.marker as OnlineMapsMarker};

2. Remove all markers, and create a player marker again:

2.OnlineMaps.instance.RemoveAllMarkers();
OnlineMapsLocationService.marker = OnlineMaps.instance.AddMarker(OnlineMapsLocationService.instance.position);
Kind Regards,
Infinity Code Team.

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

Re: OnlineMapsLocationService can't create marker 2d

Thank you for your help.