Index: trunk/extensions/Maps/OpenLayers/Maps_OpenLayers.php |
— | — | @@ -108,9 +108,9 @@ |
109 | 109 | * |
110 | 110 | */ |
111 | 111 | protected function setMapSettings() { |
112 | | - global $egMapsOpenLayersZoom; |
| 112 | + global $egMapsOpenLayersZoom, $egMapsOpenLayersPrefix; |
113 | 113 | |
114 | | - $this->elementNamePrefix = 'open_layer'; |
| 114 | + $this->elementNamePrefix = $egMapsOpenLayersPrefix; |
115 | 115 | $this->defaultZoom = $egMapsOpenLayersZoom; |
116 | 116 | } |
117 | 117 | |
Index: trunk/extensions/Maps/GoogleMaps/Maps_GoogleMaps.php |
— | — | @@ -96,9 +96,9 @@ |
97 | 97 | * |
98 | 98 | */ |
99 | 99 | protected function setMapSettings() { |
100 | | - global $egMapsGoogleMapsZoom; |
| 100 | + global $egMapsGoogleMapsZoom, $egMapsGoogleMapsPrefix; |
101 | 101 | |
102 | | - $this->elementNamePrefix = 'map_google'; |
| 102 | + $this->elementNamePrefix = $egMapsGoogleMapsPrefix; |
103 | 103 | $this->defaultZoom = $egMapsGoogleMapsZoom; |
104 | 104 | } |
105 | 105 | |
Index: trunk/extensions/Maps/YahooMaps/Maps_YahooMaps.php |
— | — | @@ -64,9 +64,9 @@ |
65 | 65 | * |
66 | 66 | */ |
67 | 67 | protected function setMapSettings() { |
68 | | - global $egMapsYahooMapsZoom; |
| 68 | + global $egMapsYahooMapsZoom, $egMapsYahooMapsPrefix; |
69 | 69 | |
70 | | - $this->elementNamePrefix = 'map_yahoo'; |
| 70 | + $this->elementNamePrefix = $egMapsYahooMapsPrefix; |
71 | 71 | $this->defaultZoom = $egMapsYahooMapsZoom; |
72 | 72 | } |
73 | 73 | |
Index: trunk/extensions/Maps/Maps_Settings.php |
— | — | @@ -97,4 +97,9 @@ |
98 | 98 | # Available values: google, bing, yahoo, openlayers, nasa |
99 | 99 | $egMapsOLLayers = array('openlayers'); |
100 | 100 | |
| 101 | +# String(s). The map name prefixes for each service. They can not be identical. |
| 102 | +$egMapsGoogleMapsPrefix = 'map_google'; |
| 103 | +$egMapsYahooMapsPrefix = 'map_yahoo'; |
| 104 | +$egMapsOpenLayersPrefix = 'open_layer'; |
101 | 105 | |
| 106 | + |