Google Map Module - need second map.

Brandon Sussman

Joined: 2005-10-24
Posts: 82
Posted: Mon, 2009-03-23 01:15

I need to add a second map for a G2 client.

I recon I can either (1) change the code to manage two maps, or (2) Clone the module, change names and a bunch of other stuff to manage a second map and run both versions to have 2 maps.

I believe that (2) is a clever horrid lazy way to do this but it might be quicker and easier.

I am looking for advice.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Tue, 2009-03-24 19:57

What do you mean a "second map"? If you want two mini-maps, that's easy to do. If you want two different maps for the "Show Google Map" link, that's more difficult. If you can elaborate what you're trying to do, that would help.

 
Brandon Sussman

Joined: 2005-10-24
Posts: 82
Posted: Tue, 2009-04-07 10:41

(Sorry for the delay in getting back - life intruded)

Looking to provide a second map that will actually be bigger in format. The client wants to have two different, full featured maps, maybe at the same time.

This is why I had the idea that cloning and renaming the module might be an easy cheap way out.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Fri, 2009-04-10 05:22

Okay, whatever works for you. I still don't fully understand what they want--same markers on both? If so, you could just add another map div and add the markers to both map objects at the same time.

 
Brandon Sussman

Joined: 2005-10-24
Posts: 82
Posted: Fri, 2009-04-10 08:53
SiliconFiend wrote:
Okay, whatever works for you. I still don't fully understand what they want--same markers on both? If so, you could just add another map div and add the markers to both map objects at the same time.

No - what is wanted is independent maps - different markers, different map, separately controlled, separately displayed. The only common data would be the API key.