Answer the question
In order to leave comments, you need to log in
How to hide a label in Yandex Maps?
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question