I write a vba-macro with a map display.
YMaps.jQuery(function () { var map = new YMaps.Map(YMaps.jQuery("#YMapsID")[0]); map.setCenter(new YMaps.GeoPoint(37.617671,55.752283), 6); YMaps.Regions.load("ru", function (state, response) { if (state == YMaps.State.SUCCESS) { var regionVba = response.filter(function (obj) { return obj.name == "Московская область"; })[0]; regionVba.setStyle({ polygonStyle : { fillColor : "b00c0c55", strokeColor : "b00c0c" }, hasHint : true }); map.addOverlay(regionVba); } else { alert("Error: " + response.error.message) } }); }) What needs to be changed in the code so that the area is always highlighted, and not just during hover?
Examples taken from here.