Index: trunk/extensions/SemanticMaps/YahooMaps/SM_YahooMaps.php |
— | — | @@ -68,9 +68,11 @@ |
69 | 69 | foreach ($this->m_locations as $location) { |
70 | 70 | // Create a string containing the marker JS |
71 | 71 | list($lat, $lon, $title, $label, $icon) = $location; |
| 72 | + |
72 | 73 | $title = str_replace("'", "\'", $title); |
73 | 74 | $label = str_replace("'", "\'", $label); |
74 | | - $markerItems[] = "getYMarkerData($lat, $lon, '$title', '$label', '')"; |
| 75 | + |
| 76 | + $markerItems[] = "getYMarkerData($lat, $lon, '$title', '$label', '$icon')"; |
75 | 77 | } |
76 | 78 | |
77 | 79 | $markersString = implode(',', $markerItems); |
Index: trunk/extensions/SemanticMaps/OpenLayers/SM_OpenLayers.php |
— | — | @@ -68,9 +68,11 @@ |
69 | 69 | foreach ($this->m_locations as $location) { |
70 | 70 | // Create a string containing the marker JS |
71 | 71 | list($lat, $lon, $title, $label, $icon) = $location; |
| 72 | + |
72 | 73 | $title = str_replace("'", "\'", $title); |
73 | 74 | $label = str_replace("'", "\'", $label); |
74 | | - $markerItems[] = "getOLMarkerData($lon, $lat, '$title', '$label')"; |
| 75 | + |
| 76 | + $markerItems[] = "getOLMarkerData($lon, $lat, '$title', '$label', '$icon')"; |
75 | 77 | } |
76 | 78 | |
77 | 79 | $markersString = implode(',', $markerItems); |
Index: trunk/extensions/SemanticMaps/GoogleMaps/SM_GoogleMaps.php |
— | — | @@ -75,8 +75,10 @@ |
76 | 76 | foreach ($this->m_locations as $location) { |
77 | 77 | // Create a string containing the marker JS |
78 | 78 | list($lat, $lon, $title, $label, $icon) = $location; |
| 79 | + |
79 | 80 | $title = str_replace("'", "\'", $title); |
80 | 81 | $label = str_replace("'", "\'", $label); |
| 82 | + |
81 | 83 | $markerItems[] = "getGMarkerData($lat, $lon, '$title', '$label', '$icon')"; |
82 | 84 | } |
83 | 85 | |