Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  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();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement