Page 1 of 1

Simple google maps

Posted: Fri Feb 01, 2008 6:14 pm
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

Re: Simple google maps

Posted: Sat Feb 02, 2008 12:02 am
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?

Re: Simple google maps

Posted: Sat Feb 02, 2008 12:45 am
by calguy1000
The SimpleGoogleMap module doesn't support coordinates, but the CGGoogleMaps module does.

Re: Simple google maps

Posted: Sat Feb 02, 2008 1:26 pm
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

Re: Simple google maps

Posted: Tue Feb 05, 2008 2:57 pm
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