Topic: Can't create markers
I'm trying to create marker and can't get it to work. They don't even get added to the ONLINE MAPS MARKER MANAGER components when I attempt to create a marker. Here are the different ways I have tried:
public OnlineMapsMarkerManager markerManager;
public OnlineMapsMarker markerHotspot;
void Start()
{
//1ST ATTEMPT
markerManager.Create(new Vector2(newLongitude, newLatitude), textureHotspot, "hotspot!");
//2ND ATTEMPT
markerHotspot = OnlineMapsMarkerManager.CreateItem(new Vector2(newLatitude, newLongitude), "hotspot");
//3RD ATTEMPT
markerHotspot = OnlineMaps.instance.AddMarker(new Vector2(newLatitude, newLongitude), "hotspot");
}
None of these attempts work. What am I missing?
Thanks