Skip to content
Snippets Groups Projects
Commit 0f4929a9 authored by Brandon Bergren's avatar Brandon Bergren
Browse files

Reweight marker/shape loaders because they need to be included after the markermanager (if used).

parent 52794e96
No related branches found
No related tags found
No related merge requests found
...@@ -649,14 +649,14 @@ function _gmap_pre_render_map($element) { ...@@ -649,14 +649,14 @@ function _gmap_pre_render_map($element) {
} }
if (!empty($map['markers']) || !empty($map['lines'])) { if (!empty($map['markers']) || !empty($map['lines'])) {
$element['#attached']['js']["$path/markerloader_static.js"] = array('weight' => 2); $element['#attached']['js']["$path/markerloader_static.js"] = array('weight' => 5);
} }
if (!empty($map['shapes'])) { if (!empty($map['shapes'])) {
$element['#attached']['js']["$path/shapeloader_static.js"] = array('weight' => 2); $element['#attached']['js']["$path/shapeloader_static.js"] = array('weight' => 5);
$element['#attached']['js']["$path/gmap_shapes.js"] = array('weight' => 2); $element['#attached']['js']["$path/gmap_shapes.js"] = array('weight' => 5);
} }
if (isset($map['feed']) && is_array($map['feed'])) { if (isset($map['feed']) && is_array($map['feed'])) {
$element['#attached']['js']["$path/markerloader_georss.js"] = array('weight' => 2); $element['#attached']['js']["$path/markerloader_georss.js"] = array('weight' => 5);
} }
return $element; return $element;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment