A
A
Arthur2015-08-10 09:41:57
API
Arthur, 2015-08-10 09:41:57

How to group the object manager and hide the group using the checkbox?

This is how I display the labels: https://tech.yandex.ru/maps/jsbox/2.1/object_manager/
What you need:
1) Combine the labels into groups (vegetables, fruits, etc.)
2) After displaying all the labels on the map, by clicking on the checkbox hide the "vegetables" group or any other group on the map.
It is desirable to answer with a living example.
PS 3) Can I somehow sort the list ( date on the left - screenshot.ru/73cb61fbd9b4f22c118d2de9260b8489 ) in the balloon?
The map draws them not in the order of id, but randomly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
forgotten, 2015-08-10
@warexs

1. Set the appropriate property in properties, for example, properties.group = 'vegetables' | 'fruit' | etc
2. Filter objects using the setFilter method
https://tech.yandex.ru/maps/doc/jsapi/2.1/ref/ref...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question