grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026getTemplate (); JHtml::_ ( 'jquery.framework' ); $language = JFactory::getLanguage (); $mapApi = '//maps.google.com/maps/api/js?sensor=true&language=' . $language->getTag (); if ($params->get ( 'weather' )) { $mapApi .= '&libraries=weather'; } $document->addScript ( $mapApi ); $document->addStyleSheet ( JUri::root ( true ) . '/modules/mod_jb_googlemap/assets/css/custom-icons.css' ); $document->addStyleSheet ( JUri::root ( true ) . '/modules/mod_jb_googlemap/assets/css/styles.css' ); $document->addStyleSheet ( JUri::root ( true ) . '/modules/mod_jb_googlemap/assets/css/jbgooglemap.css' ); $document->addStyleSheet ( JUri::root ( true ) . '/modules/mod_jb_googlemap/assets/css/animsition.min.css' ); $document->addScriptVersion ( JUri::root ( true ) . '/modules/mod_jb_googlemap/assets/js/modernizr.min.js' ); $document->addScriptVersion ( JUri::root ( true ) . '/modules/mod_jb_googlemap/assets/js/jquery.easing.1.3.min.js' ); // $document->addScriptVersion ( JUri::root ( true ) . '/modules/mod_jb_googlemap/assets/js/scripts.js' ); $markerIcon = JUri::root () . $params->get ( 'map_marker', 'modules/mod_jb_googlemap/assets/images/default_marker.png' ); $latitude = $params->get ( 'latitude', 51.508742 ); $longitude = $params->get ( 'longitude', - 0.120850 ); $location_title = $params->get ( 'location_title', '' ); $location_address = $params->get ( 'location_address', '' ); $address = ""; if ($params->get ( 'show_address', 0 )) { $address .= $params->get ( 'address', '' ); $address = trim ( preg_replace ( '/\s\s+/', ' ', $address ) ); } // map settings $zoom = $params->get ( 'map_zoom', 9 ); $mapType = $params->get ( 'map_type', 'hybrid' ); $map_width = $params->get ( 'map_width', 200 ); $map_height = $params->get ( 'map_height', 300 ); $map_draggable = $params->get ( 'map_draggable','0'); $map_draggable = ($map_draggable) ? 'true' : 'false'; $cursorDraggable = $params->get ( 'map_marker_draggable','0'); $cursorDraggable = ($cursorDraggable) ? 'true' : 'false'; $scaleControl = ($params->get ( 'scale_control', '1' )) ? 'true' : 'false'; $panControl = ($params->get ( 'pan_control', '1' )) ? 'true' : 'false'; $map_bgcolor = $params->get ( "map_bgcolor", "#111518" ); $mapTypeControl = ($params->get ( 'maptype_control', '1' )) ? 'true' : 'false'; $scaleTypeControl = ($params->get ( 'scale_control', '1' )) ? 'true' : 'false'; $module_id = $module->id; $weather = ($params->get ( 'show_weather', 1 )) ? 'true' : 'false'; $doubleClickZoom = ($params->get ( 'map_doubleclickzoom', '0' )) ? 'true' : 'false'; $scrollwheel = ($params->get ( 'map_scrollwheel', '0' )) ? 'true' : 'false'; $zoomControl = ($params->get ( 'zoom_control','0' )) ? 'true' : 'false'; $rotateControl = ($params->get ( 'rotate_control', '0' )) ? 'true' : 'false'; $streetviewControl = ($params->get ( 'map_streetview', '0' )) ? 'true' : 'false'; $zoomControlPosition = $params->get ( 'zoom_control_poisition', 'LEFT_CENTER' ); $mapControlPosition = $params->get ( 'map_control_poisition', 'LEFT_CENTER' ); $map_control_style = $params->get ( 'map_control_style', 'HORIZONTAL_BAR' ); $map_control_style = strtoupper ( $map_control_style ); // $selectedMode = $params->get ( 'mode_of_travel' ); ?>