Posted by Evan Wise on August 14, 2008 at 6:31pm
Hello all,
I am having an issue right now (Drupal 5.9, CCK 5.x-1.7, cck_map 5.x-3.3, views 5.x-1.6) where I have a view that returns full nodes that contain a Google Map. This works fine and great.
However, the issue is that only the Google Map in the first displayed node is rendered properly, the others do not render and I have an error in my FF3 logs:
Error: a is null Source File: http://maps.google.com/intl/en_ALL/mapfiles/122b/maps2.api/main.js Line: 312
Has anyone else ever seen this issue and if so how did you work around it?
Cheers,
E/.

Comments
Multiple instances of js object?
Hey Evan, I've not used this module before but maybe it's because you have multiple instances of a map object on your page. The javascript may not be able to handle that.
Full node views might not have been in the test case scenarios for testing this module, only node pages!
This doesn't solve the issue, bit it may help to fix it!
Cheers.
Col.
hi, have you searched
hi, have you searched similar issues at the home page of cck_map (http://drupal.org/project/cck_map), at least you may get some ideas from others issues for debugging.
good luck!
steve
A Drupal Developer
phantom issues??
So I fixed it by doing a quick rebuild of the view & cck content object. In comparing the two sites it appears that the buggy one had more JS map objects than there should have been and these caused JS errors as the DOM node that the map JS tried to replace did not exist on the page.
On the buggy site: there was 4 gmapClientController but only 2 map ID's. Only the first one displays.
On the working site: there are 2 gmapClientController and 2 map ID's to replace. Works fine.
Strange...
E/.
Evan Wise
http://justwerks.com
Skype: evan_wise
--
Evan Wise
http://justwerks.com
Skype: evan_wise