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.
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → 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.
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.
I understood the problem.
When i use OnlineMaps.RemoveAllMarkers () method, it also remove the marker at user location.
Is there anyway to work around?
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);Thank you for your help.
Infinity Code Forum → Online Maps Help → OnlineMapsLocationService can't create marker 2d
Powered by PunBB, supported by Informer Technologies, Inc.