Open G1msky opened 4 months ago
@G1msky Hey mate. It works. put your images in /public. And heere is a small example how i use it.
<YandexMap
v-if="points"
:coordinates="[centralPoints.latitude, centralPoints.longitude]"
map-type="map"
:controls="controls"
@created="onInit"
>
<YandexMarker
v-for="point in points"
:key="point.guid"
:coordinates="[point.geoposition.latitude, point.geoposition.longitude]"
:marker-id="point.id"
:events="['click', 'optionschange']"
:options="{
iconLayout: 'default#image',
iconImageHref: '/svgs/point_styler.svg',
iconImageSize: [64, 64],
}"
@click="onClick"
/>
</YandexMap>
When the
icon
attribute is set, the standard blue marker is still visible.Remarks
How I can set my custom image to marker?