{
                    geoMap.closePopup();
                }
                addSelection(e.target, e.layer);
                fireSelectionChanged();
            });

            geoMap.on('click', function (e) {
                if (e.originalEvent.ctrlKey !== true) {
                    clearSelection();
                    fireSelectionChanged();
                }
            });

            geoMap.on('keydown', function (e) {
                if (e.originalEvent.keyCode === 27) {
                    clea