A
A
Arthur2017-01-31 17:01:43
PHP
Arthur, 2017-01-31 17:01:43

Yandexmap | How to reduce the size of json data for labels on the map?

Hello.
There is a Yandex map with a bunch of marks on it.
The number of labels is about 9000 and the amount of JSON data is about 6 mb.
What are some ways to reduce the file size to display labels faster?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Bay, 2017-01-31
@kawabanga

when loading a map and on a zoom event, load only those labels that will fit on the map.
+ make a limit on the number of points on the screen.

P
Peter, 2017-01-31
@petermzg

So you already have a solution, only you don't use it.
Depending on the scale, you return groups and single labels.
The scale has changed, you are loading new groups and single marks for the map fragment.
Now "Yandex map" does the grouping for you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question