The code creating the actual marker dict out of the entity and the result of the filter function was almost the same for every set of entities. Thus it is now a function.
The code creating the actual marker dict out of the entity and the result of the filter function was almost the same for every set of entities. Thus it is now a function.