Closed (fixed)
Project:
Leaflet Google Maps
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
23 Jan 2013 at 08:36 UTC
Updated:
22 Feb 2013 at 15:30 UTC
leaflet_googlemaps.js is loaded before drupal_leaflet.js so Drupal.leaflet is undefided causing an error. The solution is altering the rendering order of the js library script tag. In leaflet_googlemaps.module change line 96 to this one:
drupal_add_js(drupal_get_path('module', 'leaflet_googlemaps') . '/leaflet_googlemaps.js', array('weight' => 10));
Comments
Comment #1
jherencia commentedComment #2
jherencia commentedI haven't reproduced the problem, but in any case increasing the weight of these libraries does not break anything.
Thank you!
http://drupalcode.org/project/leaflet_googlemaps.git/commit/b27d843545b2...