First of all I need to say that I'm developing Android AR aplication.
I have map which correspond to real world and which user can enable and disable in any time, just like hint. Together with that I have 2 types of markers, let's say task marker and reward marker which must be shown on player's map. They have different color and destination. Also I have other gameobjects on my scene that player can interact with and which correspond to my markers. (these gameobjects are AR objects, that's how player can interact with them).
For example on player's map displaying 1 task marker (this marker indicates on real world location).Than he went to this marker and see gameobject. After that he click on this gameobject (that correspond to task), and than I give him description of this task (for example: "go to Evergreen terrace street and find your reward). After that description player may go to this street and find his reward (which is another gamobject that correspond to reward). Player can find place where this reward object locate by his map, just like with task object.
So the algorithm of actions is as follows:
player see task marker on map where located task gameobject->player go to this marker in real world by map->player click on gameobject that correspond to task->player see description of task->task marker is gone and reward marker is shown->player go to reward marker where located reward gameobject->player takes his reward by clicking on reward gameobject on scene
So I need to change state of markers on my minimap (disable task markers, show reward markers and vice versa). This works fine when my map is always enabled, because markers objects instatiated in scene. But when my map is disabled these objects deleted by OnlineMapsMarker3DManager script and I can't manipulate them.
To understand this try to imagine situation when player click on task gameobject with disabled map. By alghorithm task marker on map should be disabled and reward marker should be displayed. But at this moment map disabled (and 3d markers absent on scene) so I have nothing to manage
Hope I make it clear now