Z
Z
z_u_q2019-05-26 21:21:44
JavaScript
z_u_q, 2019-05-26 21:21:44

How to implement the ability to transfer multiple icons to the map?

Hello. There is a map. In data-images - the label icon is passed. The question is how to make it possible to transfer not one icon to data-images, but several, respectively, so that one icon has one label image, and the other has another?
Link to example

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
i1yas, 2019-05-26
@i1yas

The most banal solution:
in data-images you write links separated by commas
In the script, you separate these links using split, you get an array of links
example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question