1

у меня на карте 2 точки

ymaps.route([
         'Королев',
         { type: 'viaPoint', point: 'Мытищи' },
         'Химки',
         { type: 'wayPoint', point: [55.811511, 37.312518] }
     ], {
         mapStateAutoApply: true
     }).then(function (route) {
         route.getPaths().options.set({
             // в балуне выводим только информацию о времени движения с учетом пробок
             balloonContenBodyLayout: ymaps.templateLayoutFactory.createClass('$[properties.humanJamsTime]'),
             // можно выставить настройки графики маршруту
             strokeColor: '0000ffff',
             opacity: 0.9
         });
         //
        var points = route.getWayPoints();  
         //меняю текст точки 1
         points.get(0).properties.set("iconContent", "Я"); 
          //как можно скрыть точку?

         // добавляем маршрут на карту
         map.geoObjects.add(route);
     });

как можно скрыть значок с карты?

1 ответ 1

4

Добавьте:

points.get(0).options.set('visible', false);

GeoObject

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.