I have 2 points on the map

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); }); 

How can I hide the icon from the map?

    1 answer 1

    Add:

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

    Geoobject