$map->setMapDraggable(true); $map->setDoubleclickZoom(false); $map->setScrollwheelZoom(true); $map->showDefaultUI(false); $map->showMapTypeControl(true, 'DROPDOWN_MENU'); $map->showNavigationControl(true, 'DEFAULT'); $map->showScaleControl(true); $map->showStreetViewControl(true); $map->setZoomLevel(14); // not really needed because showMap is called in this demo with auto zoom $map->setInfoWindowBehaviour('SINGLE_CLOSE_ON_MAPCLICK'); $map->setInfoWindowTrigger('CLICK'); $map->addMarkerByAddress("Ravensberger Park 1 , Bielefeld", "Ravensberger Spinnerei", "Ravensberger Spinnerei", "http://google-maps-icons.googlecode.com/files/museum-historical.png"); $map->addMarkerByAddress("Universitätsstraße 25, Bielefeld", "Universität Bielefeld", "<a href=\"http://www.uni-bielefeld.de\" target=\"_blank\">http://www.uni-bielefeld.de</a>", "http://google-maps-icons.googlecode.com/files/university.png"); $map->addMarker(52.0149436, 8.5275128, "Sparrenburg Bielefeld", "Sparrenburg, 33602 Bielefeld, Deutschland<br /><img src=\"http://www.bielefeld.de/ftp/bilder/sehenswuerdigkeiten/sehenswuerdigkeiten/sparrenburg-bielefeld-435.gif\"", "http://google-maps-icons.googlecode.com/files/museum-archeological.png"); $opts = array('fillColor' => '#0000dd', 'fillOpacity' => 0.2, 'strokeColor' => '#000000', 'strokeOpacity' => 1, 'strokeWeight' => 2, 'clickable' => true); $map->addCircle(52.0149436, 8.5275128, 1500, "1,5km Umgebung um die Sparrenburg", $opts); $opts = array('fillColor' => '#00dd00', 'fillOpacity' => 0.2, 'strokeColor' => '#003300', 'strokeOpacity' => 1, 'strokeWeight' => 2, 'clickable' => true); $map->addRectangle(52.0338, 8.487, 52.0414, 8.502000000000001, "Campus Universität Bielefeld", $opts); echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"; echo "<head>\n"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n"; echo "<title>simpleGMapAPI test</title>"; $map->printGMapsJS(); echo "</head>\n"; echo "\n\n<body>\n\n"; // showMap with auto zoom enabled $map->showMap(true); echo "</body>\n"; echo "</html>\n";
$map->showStreetViewControl(true); $map->setZoomLevel(10); // not really needed because showMap is called in this demo with auto zoom $map->setInfoWindowBehaviour('SINGLE_CLOSE_ON_MAPCLICK'); $map->setInfoWindowTrigger('CLICK'); //$map->addMarkerByAddress("Toronto, NY"); //$map->addMarkerByAddress("Bloomfield, NY"); //$map->addMarkerByAddress("Gramacy, NY"); //get geocode $geo_1 = $geo->getGeoCoords("Harrison, NY"); $geo_2 = $geo->getGeoCoords("Mamaroneck, NY"); //$map->addMarkerByAddress("Bronx, NewYork", "Universität Bielefeld", "<a href=\"http://www.uni-bielefeld.de\" target=\"_blank\">http://www.uni-bielefeld.de</a>", ""); //$map->addMarker(52.0149436, 8.5275128, "Sparrenburg Bielefeld", "Sparrenburg, 33602 Bielefeld, Deutschland<br /><img src=\"http://www.bielefeld.de/ftp/bilder/sehenswuerdigkeiten/sehenswuerdigkeiten/sparrenburg-bielefeld-435.gif\"", "http://google-maps-icons.googlecode.com/files/museum-archeological.png"); //$map->addMarker(52.0149436, 8.5275128, "Sparrenburg Bielefeld", "Sparrenburg, 33602 Bielefeld, Deutschland<br /><img src=\"http://www.bielefeld.de/ftp/bilder/sehenswuerdigkeiten/sehenswuerdigkeiten/sparrenburg-bielefeld-435.gif\"", "http://google-maps-icons.googlecode.com/files/museum-archeological.png"); $opts = array('fillColor' => '#0000dd', 'fillOpacity' => 0.2, 'strokeColor' => '#A6A1C4', 'strokeOpacity' => 1, 'strokeWeight' => 1, 'clickable' => true); $map->addCircle($geo_1['lat'], $geo_1['lng'], 2000, "Test 1", $opts); $map->addCircle($geo_2['lat'], $geo_2['lng'], 2000, "Test 2", $opts); // $moduleContents = ''; // $modules =& JModuleHelper::getModules('mod-rental-filter'); // foreach ($modules as $module) // { // $moduleContents .= JModuleHelper::renderModule($module); // } // echo $moduleContents; //<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> $sort = JRequest::getVar('sort', ''); $orderListingDate = JRequest::getVar('order', '') == 'desc' && $sort == 'listing_date' ? 'asc' : 'desc'; $orderQuality = JRequest::getVar('order', '') == 'desc' && $sort == 'quality' ? 'asc' : 'desc'; ?> <!-- BEGIN: filters -->
$map->setMapDraggable(true); $map->setDoubleclickZoom(false); $map->setScrollwheelZoom(true); $map->showDefaultUI(false); $map->showMapTypeControl(true, 'DROPDOWN_MENU'); $map->showNavigationControl(true, 'DEFAULT'); $map->showScaleControl(true); $map->showStreetViewControl(true); $map->setZoomLevel(14); // not really needed because showMap is called in this demo with auto zoom $map->setInfoWindowBehaviour('SINGLE_CLOSE_ON_MAPCLICK'); $map->setInfoWindowTrigger('CLICK'); $map->addMarkerByAddress("Ravensberger Park 1 , Bielefeld", "Ravensberger Spinnerei", "Ravensberger Spinnerei", "http://google-maps-icons.googlecode.com/files/museum-historical.png"); $map->addMarkerByAddress("Universitätsstraße 25, Bielefeld", "Universität Bielefeld", "<a href=\"http://www.uni-bielefeld.de\" target=\"_blank\">http://www.uni-bielefeld.de</a>", "http://google-maps-icons.googlecode.com/files/university.png"); $map->addMarker(52.0149436, 8.5275128, "Sparrenburg Bielefeld", "Sparrenburg, 33602 Bielefeld, Deutschland<br /><img src=\"http://www.bielefeld.de/ftp/bilder/sehenswuerdigkeiten/sehenswuerdigkeiten/sparrenburg-bielefeld-435.gif\"", "http://google-maps-icons.googlecode.com/files/museum-archeological.png"); $opts = array('fillColor' => '#0000dd', 'fillOpacity' => 0.2, 'strokeColor' => '#000000', 'strokeOpacity' => 1, 'strokeWeight' => 2, 'clickable' => true); $map->addCircle(22.0331, 88.0603, 100000, "Haldia, West Bengal<br />Total Page View : 15000", $opts); $opts = array('fillColor' => '#00dd00', 'fillOpacity' => 0.2, 'strokeColor' => '#003300', 'strokeOpacity' => 1, 'strokeWeight' => 2, 'clickable' => true); $map->addRectangle(52.0338, 8.487, 52.0414, 8.502000000000001, "Campus Universität Bielefeld", $opts); echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"; echo "<head>\n"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n"; echo "<title>simpleGMapAPI test</title>"; $map->printGMapsJS(); echo "</head>\n"; echo "\n\n<body>\n\n"; // showMap with auto zoom enabled $map->showMap(true); echo "</body>\n"; echo "</html>\n";