Topic: Changing marker texture on runtime
I want the new marker texture to show up instantly. This is not happening. It takes a lot of time before the new marker shows up on the map. Any help would be much appreciated. Thanks.
private void OnMarkerClick(OnlineMapsMarkerBase marker)
{
float distanceInMeters = OnlineMapsUtils.DistanceBetweenPoints(marker.position, playerLocation).magnitude*1000f;
if (distanceInMeters < 64f)
{
//change texture;
OnlineMapsMarker m = (OnlineMapsMarker)marker;
m.texture = markerTexureSolved;
m.Init();
map.Redraw();
}
}