SHARE
TWEET

Untitled

a guest Jul 19th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var highlightMouseOnHover = function() {
  2.     selected_feature = new ol.interaction.Select({
  3.       condition: ol.events.condition.pointerMove
  4.     });
  5.     map.addInteraction(selected_feature);
  6.     selected_feature.on('select', function(e) {
  7.       style: new ol.style.Style({
  8.               stroke: new ol.style.Stroke({
  9.                   color: 'rgba(121,121,125,1.0)',
  10.                   lineDash: null,
  11.                   lineCap: 'butt',
  12.                   lineJoin: 'miter',
  13.                   width: 0,
  14.               }),
  15.               fill: new ol.style.Fill({
  16.                 color: '#0d0887',
  17.               }),
  18.           });
  19.     });
  20. };
  21.  
  22. highlightMouseOnHover();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top