Active
Project:
Google Maps Tools
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2011 at 21:34 UTC
Updated:
8 Jul 2011 at 21:34 UTC
Hi,
i am trying to load the map to the page throw AJAX. I am using Ctools module for AJAX callbacks.
So i have something like this in my ctools function callback:
ctools_include('ajax');
ctools_add_js('ajax-responder');
$node = node_build_content($node, FALSE, TRUE); // maybe you can help also how i can render only map? not building all content
$cck_field_data = $node->content['field_object_point'];
$html = drupal_render($cck_field_data);
$commands = array();
$commands[] = ctools_ajax_command_after("#node-$node->nid", $html);
ctools_ajax_render($commands);
So in result i had a lot of JS errors, but when i enabled Autoload API for this page they disappeared. But the map is not rendered yet, just displayed "Loading" message.
Any ideas how to fix that?
thanks.