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

Commit

Permalink
Fix the OSM POI popup handling & improving UX
Browse files Browse the repository at this point in the history
  • Loading branch information
hexablob committed May 20, 2019
1 parent c03e9fc commit afdb895
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 afdb895

Please sign in to comment.