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();

        }
    }

Re: Changing marker texture on runtime

Hello

Online Maps takes time to redraw the map with the new marker texture.

There is one way around this:
Online Maps / Troubleshooting / Render In Thread - OFF.
Replace «map.Redraw» to «map.RedrawImmediately».

Kind Regards,
Infinity Code Team.

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