There is such a situation: a map with many objects (maximum 160 thousand). In order to draw them, I decided to use a picture layer. The benefit of the objects are inactive, and therefore will not need to bother with the active areas and data source. But the mechanism for creating these picture layers remained incomprehensible to me.
What we have:
1) 160 thousand tags
2) Each tag has coordinates
3) The size of the icon tags - 10x10 (may vary)
What needs to be achieved: The final tile must be a transparent image with labels arranged in accordance with their coordinates relative to this tile.
While the image preparation algorithm, I imagine something like this:
1) for each label get the tile number
2) get the coordinates of the tile, starting from its number
3) proportionally calculate the position of the label relative to the tile (in pixels)
4) group the tags inside the tile and generate a picture
There are a couple of questions:
1) How correct is this solution? maybe there are more correct and optimal options?
2) how to correctly perform calculations on the backend (coordinates of tiles, their numbers relative to global pixel coordinates). There is no access to api yandex maps on php, as I understand it, what to do? write them yourself, use other libraries?
Thank!