K
K
khodos_dmitry2017-11-17 11:14:35
JavaScript
khodos_dmitry, 2017-11-17 11:14:35

Why can't I install Yandex.map with my own tags?

https://credits-pl.ru/test/
I do everything according to the instructions https://tech.yandex.ru/maps/jsbox/2.1/icon_customImage, but nothing comes out. A simple map, without its labels is installed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-11-17
@Austin_Powers

You have an error in the console there.
Here is this piece of code:

'<p>
<div style="color: #FFFFFF; font-weight: bold;">$[properties.iconContent]</div>
</p>'

or write in one line:
Or combine with +:
'<p>' + 
'<div style="color: #FFFFFF; font-weight: bold;">' + properties.iconContent + '</div> + 
'</p>'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question