Hey there,

First off loving the module and all bar this one issue ive been able to get working.

Im opening a node add form in the colorbox ("colorbox-load" class) the form has a location picker using the gmap and location modules, as soon as the colorbox overlay has loaded, the screen just goes white and is trying to load the static map but never completes. Ive read about "lazy loading" in regards to googlemaps API stuff but cant seem to find a way to fix this for my example.

Dont know if this helps but if i put:

global $language;
  $query = array(
    'file' => 'api',
    'v' => variable_get('gmap_api_version', GMAP_API_VERSION),
    'key' => $key,
    'hl' => $language->language,
  );
  drupal_set_html_head('<script src="'. check_url(url('http://maps.google.com/maps', array('query' => $query))) .'" type="text/javascript"></script>');

on any other forms that dont even have googlemaps on them the same thing happens so im guessing it s a JS conflict or as i stated above some kind of load ordering problem, any help would be majorly appreciated.

regards,

Mike

Comments

Anonymous’s picture

Hello Mike,
Have you found a solution ?
I'm not able to load the node/add form in colorbox. I don't know if it's a gmap problem or a wrong path...

Could you post the code you use to open add forms in colorbox please ?

Thank you ;)

frjo’s picture

Have you tried to use iframe from the Colorbox?

wavesailor’s picture

Is there an example on how to display a Google map iframe using the Colorbox module?

frjo’s picture

Status: Active » Closed (works as designed)