recommend->getSearchResultCoordinates()) :?> jsTranslations()->addStrings([ 'rectangle_center_message' => 'rectangle_center_message', ]); $this->headScript()->appendFile('vendor/leaflet/leaflet.js'); $this->headScript()->appendFile('vendor/leaflet/leaflet.draw.js'); $this->headScript()->appendFile('vendor/leaflet/leaflet.markercluster.js'); $this->headScript()->appendFile('map_selection_leaflet.js'); $this->headLink()->appendStylesheet('vendor/leaflet/leaflet.css'); $this->headLink()->appendStylesheet('vendor/leaflet/leaflet.draw.css'); $this->headLink()->appendStylesheet('vendor/leaflet/MarkerCluster.css'); $this->headLink()->appendStylesheet('vendor/leaflet/MarkerCluster.Default.css'); $this->headLink()->appendStylesheet('geofeatures.css'); $basemap = $this->recommend->getBasemap(); $geoField = $this->recommend->getGeoField(); $height = $this->recommend->getHeight(); $baseUrl = $this->url('home'); $urlpath = $this->url('search-results'); $searchParams = $this->recommend->getSearchParams(); $coordinates = $this->recommend->getSelectedCoordinates() ?? $this->recommend->getDefaultCoordinates(); $resultsCoords = $this->recommend->getMapResultCoordinates(); $params = [ json_encode($geoField), json_encode($coordinates), json_encode($urlpath), json_encode($baseUrl), json_encode($searchParams), json_encode($resultsCoords), json_encode($basemap), ]; $jsParams = implode(', ', $params); $jsLoad = 'loadMapSelection(' . $jsParams . ');'; ?>
inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $jsLoad, 'SET')?>
transEsc('draw_searchbox_start') . '";' . 'L.drawLocal.draw.handlers.simpleshape.tooltip.end = "' . $this->transEsc('draw_searchbox_end') . '";' ?> inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $loadTranslations, 'SET')?>