R
R
Roma2015-07-30 13:32:28
Yandex maps
Roma, 2015-07-30 13:32:28

How to hide a label in Yandex Maps?

7cf15786c4c5449995401657d39e2e8a.png
How to hide the blue label in the photo above?
Here is my code

<script type="text/javascript">
    YMaps.jQuery(function () {
        var map = new YMaps.Map(YMaps.jQuery("#YMapsID")[0]);
        map.setCenter(new YMaps.GeoPoint(37.573438, 55.688507), 15);
        
        var s = new YMaps.Style();
        s.iconStyle = new YMaps.IconStyle();
        s.iconStyle.shadow = new YMaps.IconShadowStyle();
        s.iconStyle.shadow.href = "img/yap.png";
        s.iconStyle.shadow.size = new YMaps.Point(150, 129);
        s.iconStyle.shadow.offset = new YMaps.Point(-150, -129);
        
        var placemark = new YMaps.Placemark(new YMaps.GeoPoint(37.573438, 55.688507), {style: s}, {hideIcon: false});
        placemark.setIconContent(null);
        map.addOverlay(placemark); 
        
    })
</script>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
forgotten, 2015-07-30
@Kavalski

Remove ".shadow"

A
Aleksandrov, 2017-06-16
@alexandr2006

And I didn't understand

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question