Fixed errors.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 20 Dec 2008 23:06:50 +0000 (23:06 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sat, 20 Dec 2008 23:06:50 +0000 (23:06 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrmap@354 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrmap.body.php

index 7b1f33c6ca2afd26ea5fc527dc0fa38a8c690a65..d6527a45dc291fe3574640769722f44361125fee 100644 (file)
@@ -103,7 +103,7 @@ class WrGoogleMaps {
                // Load Google Maps Script and define functions
                $output = '';
                if ($this->mapsCount == 1) {
-                       $output .= '<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=' . htmlspecialchars($this->apiKey) . '" type="text/javascript" />' . "\n";
+                       $output .= '<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=' . htmlspecialchars($this->apiKey) . '" type="text/javascript"></script>' . "\n";
                        $output .= WRGMAPJSFUNCTIONS;
                }
                        
@@ -128,7 +128,7 @@ class WrGoogleMaps {
        
        // returns a string that creates a map object called 'map'
        private function addMap($mapName) {
-               return "\tmap = new GMap2(document.getElementById($mapName));\n" .
+               return "\tmap = new GMap2(document.getElementById(\"$mapName\"));\n" .
                "\tmap.addControl(new GLargeMapControl());\n" .
                "\tmap.addControl(new GMapTypeControl());\n" .
                "\tmap.addControl(new GScaleControl());\n" .
@@ -139,7 +139,7 @@ class WrGoogleMaps {
 
        // returns a string with a add marker javascript call
        private function addJsMarker($latitude, $longitude, $pageTitle) {
-               return "\tmap.AddOverlay(wrCreateMarker($latitude, $longitude, \"" . htmlspecialchars(addslashes($pageTitle)) . "\", wrSleddingIcon));\n";
+               return "\tmap.addOverlay(wrCreateMarker($latitude, $longitude, \"" . htmlspecialchars(addslashes($pageTitle)) . "\", wrSleddingIcon));\n";
        }
        
 }