From 92327d5b6965cac4f152a6a88aebf0a9215e6ba5 Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Tue, 17 Sep 2024 19:25:09 +0200 Subject: [PATCH] center_me or goto imply with filter_visible --- croutonjs/meetingMap/js/gmapsDelegate.js | 1 - croutonjs/meetingMap/js/meeting_map.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/croutonjs/meetingMap/js/gmapsDelegate.js b/croutonjs/meetingMap/js/gmapsDelegate.js index 1b1be15..ab3d189 100644 --- a/croutonjs/meetingMap/js/gmapsDelegate.js +++ b/croutonjs/meetingMap/js/gmapsDelegate.js @@ -43,7 +43,6 @@ function MapDelegate(in_config) { 'draggableCursor': "pointer", 'scaleControl' : true, 'fullscreenControl': config.map_search ? true : false, - 'mapId': "DEMO_MAP_ID", }; if (inCenter) { myOptions = Object.assign(myOptions, { diff --git a/croutonjs/meetingMap/js/meeting_map.js b/croutonjs/meetingMap/js/meeting_map.js index e2f20a8..2dae002 100644 --- a/croutonjs/meetingMap/js/meeting_map.js +++ b/croutonjs/meetingMap/js/meeting_map.js @@ -206,6 +206,7 @@ function MeetingMap(inConfig) { let inDiv = document.getElementById(inDiv_id); loadMap(inDiv, menuContext, handlebarMapOptions,callback); loadAllMeetings(meetings_responseObject, fitBounds, true); + config.filter_visible = config.filter_visible || config.goto || config.centerMe; gDelegate.afterInit(()=>filterVisible(config.filter_visible)); }; function loadPopupMap(inDiv_id, meeting, handlebarMapOptions = null) {