Index: trunk/extensions/Maps/Maps_Settings.php |
— | — | @@ -238,10 +238,6 @@ |
239 | 239 | # Google Geocoder services. |
240 | 240 | $egGoogleMapsKey = ''; # http://code.google.com/apis/maps/signup.html |
241 | 241 | |
242 | | - # String. The Google Maps map name prefix. It can not be identical to the one |
243 | | - # of another mapping service. |
244 | | - $egMapsGoogleMapsPrefix = 'map_google'; |
245 | | - |
246 | 242 | # Integer. The default zoom of a map. This value will only be used when the |
247 | 243 | # user does not provide one. |
248 | 244 | $egMapsGoogleMapsZoom = 14; |
— | — | @@ -289,10 +285,6 @@ |
290 | 286 | |
291 | 287 | # Google Maps v3 |
292 | 288 | |
293 | | - # String. The Google Maps v3 map name prefix. It can not be identical to the |
294 | | - # one of another mapping service. |
295 | | - $egMapsGMaps3Prefix = 'map_google3'; |
296 | | - |
297 | 289 | # Integer. The default zoom of a map. This value will only be used when the |
298 | 290 | # user does not provide one. |
299 | 291 | $egMapsGMaps3Zoom = 14; |
— | — | @@ -318,10 +310,6 @@ |
319 | 311 | # Haven't got an API key yet? Get it here: https://developer.yahoo.com/wsregapp/ |
320 | 312 | $egYahooMapsKey = ''; |
321 | 313 | |
322 | | - # String. The Yahoo! maps map name prefix. It can not be identical to the one |
323 | | - # of another mapping service. |
324 | | - $egMapsYahooMapsPrefix = 'map_yahoo'; |
325 | | - |
326 | 314 | # Array of String. The Google Maps default map types. This value will only be |
327 | 315 | # used when the user does not provide one. |
328 | 316 | $egMapsYahooMapsTypes = array( |
— | — | @@ -354,10 +342,6 @@ |
355 | 343 | |
356 | 344 | |
357 | 345 | # OpenLayers |
358 | | - |
359 | | - # String. The OpenLayers map name prefix. It can not be identical to the one of |
360 | | - # another mapping service. |
361 | | - $egMapsOpenLayersPrefix = 'open_layer'; |
362 | 346 | |
363 | 347 | # Integer. The default zoom of a map. This value will only be used when the |
364 | 348 | # user does not provide one. |
— | — | @@ -425,10 +409,6 @@ |
426 | 410 | # user does not provide one. |
427 | 411 | $egMapsOSMZoom = 13; |
428 | 412 | |
429 | | - # String. The OSM map name prefix. It can not be identical to the one of |
430 | | - # another mapping service. |
431 | | - $egMapsOSMPrefix = 'map_osm'; |
432 | | - |
433 | 413 | # Boolean. Thumbnail pictures on or off. |
434 | 414 | $egMapsOSMThumbs = false; |
435 | 415 | |
Index: trunk/extensions/Maps/includes/Maps_Layer.php |
— | — | @@ -9,6 +9,8 @@ |
10 | 10 | * @ingroup Maps |
11 | 11 | * |
12 | 12 | * @author Jeroen De Dauw |
| 13 | + * |
| 14 | + * TODO: this should be probebly integrated into the mapping service system. |
13 | 15 | */ |
14 | 16 | class MapsLayer { |
15 | 17 | |
— | — | @@ -183,8 +185,6 @@ |
184 | 186 | * Returns a string containing the JavaScript definition of this layer. |
185 | 187 | * Only call this function when you are sure the layer is valid! |
186 | 188 | * |
187 | | - * TODO: move this to the OpenLayers class |
188 | | - * |
189 | 189 | * @since 0.7.1 |
190 | 190 | * |
191 | 191 | * @return string |
Index: trunk/extensions/Maps/includes/services/GoogleMaps3/Maps_GoogleMaps3.php |
— | — | @@ -61,14 +61,13 @@ |
62 | 62 | * @since 0.6.5 |
63 | 63 | */ |
64 | 64 | public function getMapId( $increment = true ) { |
65 | | - global $egMapsGoogleMaps3Prefix; |
66 | 65 | static $mapsOnThisPage = 0; |
67 | 66 | |
68 | 67 | if ( $increment ) { |
69 | 68 | $mapsOnThisPage++; |
70 | 69 | } |
71 | 70 | |
72 | | - return $egMapsGoogleMaps3Prefix . '_' . $mapsOnThisPage; |
| 71 | + return 'map_google3_' . $mapsOnThisPage; |
73 | 72 | } |
74 | 73 | |
75 | 74 | /** |
Index: trunk/extensions/Maps/includes/services/YahooMaps/Maps_YahooMaps.php |
— | — | @@ -104,14 +104,13 @@ |
105 | 105 | * @since 0.6.5 |
106 | 106 | */ |
107 | 107 | public function getMapId( $increment = true ) { |
108 | | - global $egMapsYahooMapsPrefix; |
109 | 108 | static $mapsOnThisPage = 0; |
110 | 109 | |
111 | 110 | if ( $increment ) { |
112 | 111 | $mapsOnThisPage++; |
113 | 112 | } |
114 | 113 | |
115 | | - return $egMapsYahooMapsPrefix . '_' . $mapsOnThisPage; |
| 114 | + return 'map_yahoo_' . $mapsOnThisPage; |
116 | 115 | } |
117 | 116 | |
118 | 117 | /** |
Index: trunk/extensions/Maps/includes/services/OpenLayers/Maps_OpenLayers.php |
— | — | @@ -69,14 +69,13 @@ |
70 | 70 | * @since 0.6.5 |
71 | 71 | */ |
72 | 72 | public function getMapId( $increment = true ) { |
73 | | - global $egMapsOpenLayersPrefix; |
74 | 73 | static $mapsOnThisPage = 0; |
75 | 74 | |
76 | 75 | if ( $increment ) { |
77 | 76 | $mapsOnThisPage++; |
78 | 77 | } |
79 | 78 | |
80 | | - return $egMapsOpenLayersPrefix . '_' . $mapsOnThisPage; |
| 79 | + return 'open_layer_' . $mapsOnThisPage; |
81 | 80 | } |
82 | 81 | |
83 | 82 | /** |
Index: trunk/extensions/Maps/includes/services/GoogleMaps/Maps_GoogleMaps.php |
— | — | @@ -124,14 +124,13 @@ |
125 | 125 | * @since 0.6.5 |
126 | 126 | */ |
127 | 127 | public function getMapId( $increment = true ) { |
128 | | - global $egMapsGoogleMapsPrefix; |
129 | 128 | static $mapsOnThisPage = 0; |
130 | 129 | |
131 | 130 | if ( $increment ) { |
132 | 131 | $mapsOnThisPage++; |
133 | 132 | } |
134 | 133 | |
135 | | - return $egMapsGoogleMapsPrefix . '_' . $mapsOnThisPage; |
| 134 | + return 'map_google_' . $mapsOnThisPage; |
136 | 135 | } |
137 | 136 | |
138 | 137 | /** |
Index: trunk/extensions/Maps/includes/services/OSM/Maps_OSM.php |
— | — | @@ -41,14 +41,13 @@ |
42 | 42 | * @since 0.6.5 |
43 | 43 | */ |
44 | 44 | public function getMapId( $increment = true ) { |
45 | | - global $egMapsOSMPrefix; |
46 | 45 | static $mapsOnThisPage = 0; |
47 | 46 | |
48 | 47 | if ( $increment ) { |
49 | 48 | $mapsOnThisPage++; |
50 | 49 | } |
51 | 50 | |
52 | | - return $egMapsOSMPrefix . '_' . $mapsOnThisPage; |
| 51 | + return 'map_osm_' . $mapsOnThisPage; |
53 | 52 | } |
54 | 53 | |
55 | 54 | /** |