Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #215 from QwantResearch/fix-osm-popup-ux
Browse files Browse the repository at this point in the history
FIX - OSM POI popup handling & improving UX behavior
  • Loading branch information
amatissart authored May 20, 2019
2 parents 278ed57 + afdb895 commit abebe6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adapters/poi_popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const poiSubClass = require('../mapbox/poi_subclass')
let popupTemplate = require('../views/popup.dot')
const poiConfigs = require('../../config/constants.yml').pois

const WAIT_BEFORE_DISPLAY = 800
const WAIT_BEFORE_DISPLAY = 350

function PoiPopup() {}

Expand All @@ -35,6 +35,7 @@ PoiPopup.prototype.addListener = function(layer) {
})

this.map.on('mouseleave', layer, async () => {
this.popupHandle.remove()
clearTimeout(this.timeOutHandler)
})
}
Expand Down

0 comments on commit abebe6f

Please sign in to comment.