Simple google maps

General project discussion. NOT for help questions.
Post Reply
evoke28
Forum Members
Forum Members
Posts: 28
Joined: Thu Oct 18, 2007 10:11 pm

Simple google maps

Post by evoke28 »

Does anyone know how to write stuff into popup window in simple google maps. i looked in another thread and he said you write ii in this bit of code.

if($this->sidebar) {       
            $_output .= 'function click_sidebar(idx) {' . "\n";
            $_output .= '  if(isArray(marker_html[idx])) { markers[idx].openInfoWindowTabsHtml(marker_html[idx]); }' . "\n";
            $_output .= '  else { markers[idx].openInfoWindowHtml(marker_html[idx]); }' . "\n";
            $_output .= '}' . "\n";
        }
        $_output .= 'function showInfoWindow(idx,html) {' . "\n";
        $_output .= 'map.centerAtLatLng(points[idx]);' . "\n";
        $_output .= 'markers[idx].openInfoWindowHtml(html);' . "\n";
        $_output .= '}' . "\n";

tried everywhere but no luck. Does any know how to??

Also does anyone know how to use simple google maps with coordinates instead of addressess. The addresses are right but is not accurate. It would be good to make tem accurate.

Any help would be appreciated
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: Simple google maps

Post by hexdj »

I think a couple of the GoogleMaps modules support coordinate, If I am not mistaken one of them is Calguy's Google Maps.

As for the code that you pasted, can you give the link to the original post where they told you this?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Simple google maps

Post by calguy1000 »

The SimpleGoogleMap module doesn't support coordinates, but the CGGoogleMaps module does.
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.
evoke28
Forum Members
Forum Members
Posts: 28
Joined: Thu Oct 18, 2007 10:11 pm

Re: Simple google maps

Post by evoke28 »

Thanks for the reply.
Here is the original post. He say it at the end.

http://forum.cmsmadesimple.org/index.ph ... l#msg85450

Tried to install the CGGoogle maps but you need to have a minimum of cmsmadesimple 1.2.

have to get the courage to upgrade. i would be afraid that some thing would go wrong and i would have to start agaiin.

thanks
faglork

Re: Simple google maps

Post by faglork »

Excuse me ...

what is the main difference between the "Google Maps" and "CGGoogle Maps" modules?
The project's page just says that it is written in "calguy style" ???

What do you mean with that?

I suggest to use a "slightly more informative" description. Would it be too much to just add a short list of the module's key features? And maybe the difference to the "Google Maps" module?
(The killer feature would be the possibility to add polylines...)

Cheers,
Alex
Post Reply

Return to “General Discussion”