> I have a map with hundreds of markers and I want to show only a subset of
> them without having to loop through an array of markers to hide the ones I
> don't want to be seen.
I don't see a problem doing that on one map. In order to show a
subset somebody, somewhere will be iterating through the targets.
> Basically I want a main map with all markers and a temporary map that will
> be recreated over and over again to display different subsets of markers.
You can have as many maps as you like. You might hide and show them.
But to keep creating new maps is very inefficient, the overheads may
cause you to run out of resource.