Page 1 of 1
Google Maps (3 modules)
Posted: Wed Jan 16, 2008 3:31 pm
by cb2004
There are 3 modules for this so I am a bit confused. Calguy seems to be involved with all of them so if you could shed some light that would be great.
I currently have CGGoogleMaps installed which works fine but I just want to know which one is concentrated on more. I could also do with a couple more zoom levels so it is zoomed right in. Great mod!
Re: Google Maps (3 modules)
Posted: Wed Jan 16, 2008 3:34 pm
by calguy1000
CGGoogleMaps is a rewrite of tsw's GoogleMaps module. it's a bit better organized and supports storing addresses, as well as lattitude and longitude... So if you need multiple points in your maps, and they rarely change use CGGoogleMaps.
The SimpleGoogleMap module is designed to take one address on the tag, like {SimpleGoogleMap map='mymapdefinition' addr='123 Anywhere St, Somewhere CA'} and have it generate a map around that address... I have used SimpleGoogleMap in conjunction with the company directory module to display a map of the companies address for example.
Re: Google Maps (3 modules)
Posted: Wed Jan 16, 2008 3:38 pm
by cb2004
How do you find the latitude and longitude? In the UK we find everything with Post Codes. Also is it possible to have the map zoomed right in? I think there are 16 zoom levels on the actual map?
Re: Google Maps (3 modules)
Posted: Wed Jan 16, 2008 3:40 pm
by calguy1000
Well, you don't need to worry about the latitude and longitude if you don't have them.... the CGGoogleMaps module will take any string that you can type into maps.google.com. And you can set the initial zoom level in the map definition.
Re: Google Maps (3 modules)
Posted: Wed Jan 16, 2008 3:45 pm
by cb2004
Well your mod seems a bit more polished.
How would I put a postcode into the mod? Also I can only get zoom level 14 in the settings.
Re: Google Maps (3 modules)
Posted: Wed Jan 16, 2008 3:50 pm
by calguy1000
Adding two more zoom levels is no big deal (it'd be somewhere in the admin php files, but easy enough to find). What string would you type into maps.google.com to get the map you wanted?
Re: Google Maps (3 modules)
Posted: Wed Jan 16, 2008 3:52 pm
by cb2004
Permission to PM you about this with my location?
Re: Google Maps (3 modules)
Posted: Wed Jan 16, 2008 3:56 pm
by calguy1000
sure
Re: Google Maps (3 modules)
Posted: Sat Apr 05, 2008 2:25 pm
by relic
Calguy,
I have a question, how do you get Google Maps to work in conjunction with the company directory module??
Thanks

Re: Google Maps (3 modules)
Posted: Sat Apr 05, 2008 8:55 pm
by blast2007
cb2004 wrote:
Also is it possible to have the map zoomed right in? I think there are 16 zoom levels on the actual map?
With
thisinstruction you can add zoom wheel functions to your mouse.
Just insert line
Code: Select all
$_output .= 'map.enableScrollWheelZoom();' . "\n";
under line 949 of file /modules/CGGoogleMaps/lib/GoogleMapAPI-2.4/GoogleMapAPI.class.php
Regards
blast
Re: Google Maps (3 modules)
Posted: Sun Oct 12, 2008 3:43 pm
by AshleyM
Hello
A question about the CGGoogleMaps module:
I might be being a bit dim, but I can't work out how to add an address to the map. I know there's an option to do this dynamically within a page by using smarty tags, but I'm assuming there should also be a simple way to do it that is 'static', just using the back-end.
For example if I wanted to enter the postcode "SW1A 0AA" onto the map, how can I do this? I can create a new map, give it dimensions and a zoom level, but I don't see where to add points I can only see boxes where I can type in Latitude and Longitude.
Thanks
Re: Google Maps (3 modules)
Posted: Mon Oct 13, 2008 8:53 pm
by jmcgin51
it took me a long time to find this too
After you create the map, you'll have an "i" icon in the admin, to the right of the map name (to the left of the Default checkmark and the Edit Map icon). For the longest time, I thought this was just a Help icon, and since I'd already read the module Help, I ignored it. Then by some stroke of luck I clicked on it, and voila!!