[Google Map Module] What's the ideal solution to mod

yeahy

Joined: 2008-11-07
Posts: 29
Posted: Thu, 2008-11-20 07:33

I have a simple working Google demo with these:
1. Function initialize() modified:
* GEvent.addListener(map, "maptypechanged", function() {blablabla});
* map.addControl(new SpecialZoomControl());
2. Several functions added such as showAddress(address)

If I'd like to implement these to the Google map module, What should I modify? MapHeader.tpl? GoogleMap.js? I can't find the initialize() in the files. :(

Thanks in adv.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 12487
Posted: Sat, 2008-11-22 05:36

for listeners I would use MapHeader.tpl there are existing listeners there.
there is no 'ideal' solution, what works, works.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 472
Posted: Sun, 2008-11-23 18:38

Without looking at the code, I think the initialize() function is called ShowMeTheMap() or something like that. It's most likely in MapHeader.tpl, as Dave said.

Login or register to post comments