Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var highlightMouseOnHover = function() {
- selected_feature = new ol.interaction.Select({
- condition: ol.events.condition.pointerMove
- });
- map.addInteraction(selected_feature);
- selected_feature.on('select', function(e) {
- style: new ol.style.Style({
- stroke: new ol.style.Stroke({
- color: 'rgba(121,121,125,1.0)',
- lineDash: null,
- lineCap: 'butt',
- lineJoin: 'miter',
- width: 0,
- }),
- fill: new ol.style.Fill({
- color: '#0d0887',
- }),
- });
- });
- };
- highlightMouseOnHover();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement