The default click handler only handle the, not the rest of the
entry, so retore the handler but add an e.preventDefault() call
to stop the second handler running.
})
.on("mouseout", "[data-changeset]", function () {
unHighlightChangeset($(this).data("changeset").id);
})
.on("mouseout", "[data-changeset]", function () {
unHighlightChangeset($(this).data("changeset").id);
+ })
+ .on("click", "[data-changeset]", function (e) {
+ e.preventDefault();
+ clickChangeset($(this).data("changeset").id);
});
var group = L.featureGroup()
});
var group = L.featureGroup()