Loading js/geofield_map_widget.js +12 −3 Original line number Diff line number Diff line Loading @@ -23,11 +23,20 @@ // Set the map_data[mapid] settings. Drupal.geoFieldMap.map_data[mapid] = options; // Google maps library shouldn't be requested if the following // conditions apply: // - leaflet js is the chosen map library; // - geocoder integration is enabled; if (options.map_library === 'leaflet' && options.gmap_geocoder) { Drupal.geoFieldMap.map_initialize(options); } else { // Load before the Gmap Library, if needed, then initialize the Map. Drupal.geoFieldMap.loadGoogle(mapid, options.gmap_api_key, function () { Drupal.geoFieldMap.map_initialize(options); }); } } }); } Loading Loading
js/geofield_map_widget.js +12 −3 Original line number Diff line number Diff line Loading @@ -23,11 +23,20 @@ // Set the map_data[mapid] settings. Drupal.geoFieldMap.map_data[mapid] = options; // Google maps library shouldn't be requested if the following // conditions apply: // - leaflet js is the chosen map library; // - geocoder integration is enabled; if (options.map_library === 'leaflet' && options.gmap_geocoder) { Drupal.geoFieldMap.map_initialize(options); } else { // Load before the Gmap Library, if needed, then initialize the Map. Drupal.geoFieldMap.loadGoogle(mapid, options.gmap_api_key, function () { Drupal.geoFieldMap.map_initialize(options); }); } } }); } Loading