? .DS_Store
Index: includes/layer_types/cloudmade.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/layer_types/Attic/cloudmade.inc,v
retrieving revision 1.1.2.14
diff -u -p -r1.1.2.14 cloudmade.inc
--- includes/layer_types/cloudmade.inc 9 May 2010 11:50:46 -0000 1.1.2.14
+++ includes/layer_types/cloudmade.inc 25 May 2010 21:00:51 -0000
@@ -87,13 +87,18 @@ class openlayers_layer_type_cloudmade ex
* Render.
*/
function render(&$map) {
- drupal_add_js(drupal_get_path('module', 'openlayers') .'/includes/layer_types/cloudmade.js');
- $path = variable_get('openlayers_layers_cloudmade_js', '');
- if (valid_url($path, TRUE)) {
- drupal_set_html_head('');
- }
- else {
- drupal_add_js($path);
+ static $cloudmade_maps_included;
+
+ if (!isset($cloudmade_maps_included)) {
+ drupal_add_js(drupal_get_path('module', 'openlayers') .'/includes/layer_types/cloudmade.js');
+ $path = variable_get('openlayers_layers_cloudmade_js', '');
+ if (valid_url($path, TRUE)) {
+ drupal_set_html_head('');
+ }
+ else {
+ drupal_add_js($path);
+ }
+ $cloudmade_maps_included = true;
}
return $this->options;
}
Index: includes/layer_types/google.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/layer_types/Attic/google.inc,v
retrieving revision 1.1.2.11
diff -u -p -r1.1.2.11 google.inc
--- includes/layer_types/google.inc 22 Mar 2010 23:55:10 -0000 1.1.2.11
+++ includes/layer_types/google.inc 25 May 2010 21:00:51 -0000
@@ -82,8 +82,13 @@ class openlayers_layer_type_google exten
* Render.
*/
function render(&$map) {
- drupal_add_js(drupal_get_path('module', 'openlayers') .'/includes/layer_types/google.js');
- drupal_set_html_head('');
+ static $google_maps_included;
+
+ if (!isset($google_maps_included)) {
+ drupal_add_js(drupal_get_path('module', 'openlayers') .'/includes/layer_types/google.js');
+ drupal_set_html_head('');
+ $google_maps_included = true;
+ }
return $this->options;
}
}
Index: includes/layer_types/virtualearth.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/layer_types/Attic/virtualearth.inc,v
retrieving revision 1.1.2.9
diff -u -p -r1.1.2.9 virtualearth.inc
--- includes/layer_types/virtualearth.inc 12 Mar 2010 15:59:18 -0000 1.1.2.9
+++ includes/layer_types/virtualearth.inc 25 May 2010 21:00:51 -0000
@@ -62,8 +62,13 @@ class openlayers_layer_type_virtualearth
* Render.
*/
function render(&$map) {
- drupal_add_js(drupal_get_path('module', 'openlayers') .'/includes/layer_types/virtualearth.js');
- drupal_set_html_head('');
+ static $virtualearth_maps_included;
+
+ if (!isset($virtualearth_maps_included)) {
+ drupal_add_js(drupal_get_path('module', 'openlayers') .'/includes/layer_types/virtualearth.js');
+ drupal_set_html_head('');
+ $virtualearth_maps_included = true;
+ }
return $this->options;
}
}
Index: includes/layer_types/yahoo.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/includes/layer_types/Attic/yahoo.inc,v
retrieving revision 1.1.2.10
diff -u -p -r1.1.2.10 yahoo.inc
--- includes/layer_types/yahoo.inc 22 Mar 2010 23:55:10 -0000 1.1.2.10
+++ includes/layer_types/yahoo.inc 25 May 2010 21:00:51 -0000
@@ -77,8 +77,13 @@ class openlayers_layer_type_yahoo extend
* Render.
*/
function render(&$map) {
- drupal_add_js(drupal_get_path('module', 'openlayers') .'/includes/layer_types/yahoo.js');
- drupal_set_html_head('');
+ static $yahoo_maps_included;
+
+ if (!isset($yahoo_maps_included)) {
+ drupal_add_js(drupal_get_path('module', 'openlayers') .'/includes/layer_types/yahoo.js');
+ drupal_set_html_head('');
+ $yahoo_maps_included = true;
+ }
return $this->options;
}
}