diff --git a/js/leaflet.drupal.js b/js/leaflet.drupal.js index a7191210d1b3e438d700aa626620fe54690847d1..ca215e6990fc18da7bdc353dc69ee866cf41dbb3 100644 --- a/js/leaflet.drupal.js +++ b/js/leaflet.drupal.js @@ -247,10 +247,8 @@ this.lMap.fitWorld(); } - // Set the position of the Zoom Control, if enabled. - if (this.lMap.zoomControl) { - this.lMap.zoomControl.setPosition(this.map_settings.zoomControlPosition); - } + // Set the position of the Zoom Control. + this.lMap.zoomControl.setPosition(this.map_settings.zoomControlPosition); // Set to refresh when first in viewport to avoid missing visibility. new IntersectionObserver((entries, observer) => {