Skip to content

Commit

Permalink
Fixed error: clicking features in the map no longer append to the cur…
Browse files Browse the repository at this point in the history
…rent popup.
  • Loading branch information
inghamn committed Jun 22, 2015
1 parent 7e87869 commit 291d52d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions public/js/mapDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ var MAPDISPLAY = {
handleClick: function (e) {
var feature = MAPDISPLAY.map.forEachFeatureAtPixel(e.pixel, function (feature, layer) { return feature; });

MAPDISPLAY.closePopup();
if (feature && feature.event_id) {
MAPDISPLAY.displayPopup(feature.event_id, feature);
}
else {
MAPDISPLAY.closePopup();
}
},
findFeature: function (event_id) {
var features = MAPDISPLAY.featureOverlay.getFeatures().getArray(),
Expand Down

0 comments on commit 291d52d

Please sign in to comment.