D
D
Dmitry Sergeev2015-02-08 07:30:35
Yandex maps
Dmitry Sergeev, 2015-02-08 07:30:35

Yandex. Maps, is it possible to remove the shadow from the label?

653a40a550d14d5ab83b2e3cff52b0d4.png
the map is rendered like this

// Дождёмся загрузки API и готовности DOM.
ymaps.ready(init);

function init () 
{
   var myMap = new ymaps.Map('map', {
        zoom: 6,
        controls: ['fullscreenControl', 'zoomControl']
    }, {
        maxZoom: 12,
        minZoom: 4,
    }),

    myGeoObjects = new ymaps.GeoObjectCollection({}, {
        //preset: "islands#redCircleIcon",
        //preset: 'islands#darkBlueIcon',
        preset: 'islands#redStretchyIcon',
        // geodesic: true
    });

    // Добавляем в коллекцию метки и линию.
    myGeoObjects.add(new ymaps.Placemark([55.751346,37.599743], {iconContent: 3, id: 1}));  // Москва 

    // Добавляем коллекцию на карту.
    myMap.geoObjects.add(myGeoObjects);
    // Устанавливаем карте центр и масштаб так, чтобы охватить коллекцию целиком.
    myMap.setBounds(myGeoObjects.getBounds());
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
forgotten, 2015-02-11
@JetMaster

For standard labels, the "shadow" is included in the icon itself, because the icon itself is small and transparent. So if you want a label without a shadow, you'll have to draw it yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question