We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d0cc89 commit 2069ff1Copy full SHA for 2069ff1
1 file changed
src/map/map.ts
@@ -33,16 +33,12 @@ export const initMap = (params: MapParameters) => {
33
const { config } = params;
34
const { poiTracker, locationController } = params.providers;
35
36
- const map = L.map("map", config.mapOptions).setView(
37
- config.initialLocation,
38
- config.initialZoom,
39
- );
40
-
41
- // this conflicts with bounds overlays. TODO
42
- //.on("click", () => {
43
- // // deselect the active POI when the user clicks outside on the map
44
- // //poiTracker.deselectActive();
45
- //});
+ const map = L.map("map", config.mapOptions)
+ .setView(config.initialLocation, config.initialZoom)
+ .on("click", () => {
+ // deselect the active POI when the user clicks outside on the map
+ poiTracker.deselectActive();
+ });
46
47
config.defaultLayer.addTo(map);
48
0 commit comments