The question concerns the Regions module ( https://tech.yandex.ru/maps/doc/jsapi/2.1/dg/concepts/regions-docpage/ ). It is indicated that the "hintContent" field contains the contents of a tooltip that will appear when you hover over a region. By default, its name is displayed.

Please suggest how to remove the display of pop-up hint'ov when you hover on the region.

Tried to make regionsState.properties.set ({'hintContent': ''}); (code below)

ymaps.borders.load('001', { lang: 'ru', quality: 2 }).then(function(geojson) { var regionsState = ymaps.geoQuery(geojson); }); regionsState.search('properties.iso3166 != "RU"').setOptions({ 'fillColor': 'rgba(153,153,153,0.5)', }); regionsState.search('properties.iso3166 = "RU"').setOptions({ 'fillOpacity': '0', }); regionsState.properties.set({'hintContent': ''}); regionsState.addToMap(map); }); 

However, as I understand it, an error occurs, because the tooltip does not disappear, and even the fill disappears.

    1 answer 1

    You use .setOptions () to add options, but to change the properties you are trying to use the properties field. This is illogical https://tech.yandex.ru/maps/doc/jsapi/2.1/ref/reference/GeoQueryResult-docpage/ =)

     regionsState.setProperties({'hintContent': ''}); 

    But if you just want to turn off hints, then it would be better to:

     regionsState.setOptions({hasHint: false});