Google Maps (3 modules)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Google Maps (3 modules)

Post 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!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Google Maps (3 modules)

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: Google Maps (3 modules)

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Google Maps (3 modules)

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: Google Maps (3 modules)

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Google Maps (3 modules)

Post 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?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: Google Maps (3 modules)

Post by cb2004 »

Permission to PM you about this with my location?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Google Maps (3 modules)

Post by calguy1000 »

sure
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
relic
Forum Members
Forum Members
Posts: 34
Joined: Fri Dec 08, 2006 9:59 am
Location: New Zealand

Re: Google Maps (3 modules)

Post by relic »

Calguy,

I have a question, how do you get Google Maps to work in conjunction with the company directory module??

Thanks  ;)
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: Google Maps (3 modules)

Post 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
AshleyM

Re: Google Maps (3 modules)

Post 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
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Google Maps (3 modules)

Post 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!!
Post Reply

Return to “Modules/Add-Ons”