1 (edited by wifidlab 2016-10-10 10:49:11)

Topic: [SOLVED] - How to hide grouped markers?

Hello,
to cleanup the visualization, we would like to hide markers already counted by the group icon, and show them back once zoomed enough.

We already tried with Marker.Enabled=false inside sample script but it seems to ignore it.

Is there any best practice or some direction you can point us to acomplish this?

Thanks a lot, as usual, for your great support

Re: [SOLVED] - How to hide grouped markers?

Hello

Markers are automatically hidden / shown using OnlineMapsMarkerBase.range.
You specify the zoom range, where the marker should be displayed and all.

Kind Regards,
Infinity Code Team.

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

Re: [SOLVED] - How to hide grouped markers?

Indeed, but it was not enough since our minimum range was set to 1 and so there where still zoom levels where both groups and individual markers where visible, creating a bit of a "visual mass", unpleasant in crowded areas.

We solved passing the marker.range.min and marker2.range.min a sort of "dinamic range", like that:


if (marker.range.min < zoom )  marker.range.min = zoom + 1;


The result is that we see only groups and individual items if not parts of a group, and when the user zoom to approach the group showing the "leaked elements" outside smile

Thanks as usual for your kind support.