}
}
- function style_point_function_selected(feature, resolution) {
+ function style_point_function_highlight(feature, resolution) {
let style_array = style_point_function(feature, resolution);
style_array[0].setText(new ol.style.Text({
text: get_feature_title(feature),
return style_path_function(feature, resolution);
};
- function style_function_selected(feature, resolution) {
- if (feature.getGeometry() instanceof ol.geom.Point) return style_point_function_selected(feature, resolution);
+ function style_function_highlight(feature, resolution) {
+ if (feature.getGeometry() instanceof ol.geom.Point) return style_point_function_highlight(feature, resolution);
return style_path_function(feature, resolution);
};
let select_hover = new ol.interaction.Select({
condition: ol.events.condition.pointerMove,
- style: style_function_selected,
+ style: style_function_highlight,
});
map.addInteraction(select_hover);
let select_click = new ol.interaction.Select({
condition: ol.events.condition.click,
+ style: false,
});
map.addInteraction(select_click);
select_click.on('select', function(event) {