Page 1 of 1

Small map with CGGoogleMaps

Posted: Tue Apr 14, 2009 3:11 pm
by sudestmanceau
Hi,

I want to create a 400 pixels large map with CGGoogleMaps but the mentions and distances (feet + meters) are layered. Can i reduce the size of the texte or delete one of the distance (feet or meter) ?
THX

JC

Re: Small map with CGGoogleMaps

Posted: Tue Apr 14, 2009 3:12 pm
by tyman00
I am not sure I follow. I have a few CGGoogleMaps that are under 350x350 and I am not having any issues.

Can you maybe post a screenshot of your issue or provide a link?

Note: Please don't double post

Re: Small map with CGGoogleMaps

Posted: Tue Apr 14, 2009 3:18 pm
by sudestmanceau
Sorry for the double post. I made a mistake.
On the picture attached, i marked in red my problem : text over text. It is not very clean !

JC

Re: Small map with CGGoogleMaps

Posted: Tue Apr 14, 2009 3:40 pm
by tyman00
To the best of my knowledge this is not something you can control. This is information that is sent to your map from Google. The reason it is overlapping at the 400 width is because the words for the copyright information are longer in your language than they are in English. It looks just fine for me because the information is displayed in English. Your only solutions that I know of are to leave the map as is, or make it wider.

Re: Small map with CGGoogleMaps

Posted: Wed Apr 15, 2009 7:03 am
by sudestmanceau
Ok. THX.
I've got another problem with this module. The text and menus which are apprearing on mouseover are in english (not the copyright).

JC

Re: Small map with CGGoogleMaps

Posted: Wed Apr 15, 2009 2:31 pm
by tyman00
Did you include the lang parameter in your module call?

From the help:
(optional) lang="en_US" - Parameter is used to specify what language to use for display on the frontend. Not all modules support or need this.

Re: Small map with CGGoogleMaps

Posted: Wed Apr 15, 2009 2:47 pm
by sudestmanceau
I did.
Actually, i've edited the GoogleMapAPI.class.php file to translate the words. Now it's OK.
I'd like to write the distance in feet/km and the terms of use on two lines. Is it possible ?

JC

Re: Small map with CGGoogleMaps

Posted: Wed Apr 15, 2009 2:51 pm
by tyman00
You will likely need to do some research on the google api itself on google. It may be customizable with CSS.

Re: Small map with CGGoogleMaps

Posted: Thu Apr 16, 2009 2:01 pm
by sudestmanceau
THX i did it and it is ok for me.
Just one thing again : i'd like to remove the 'hybrid' button on the map and i did not fond the solution.
Can you hel me ?

JC

Re: Small map with CGGoogleMaps

Posted: Thu Apr 16, 2009 3:55 pm
by tyman00
Would you mind sharing what you did to make the change?

As far as hybrid... I am only aware of how to remove all three selections not one at a time. This will again be a API change.

Re: Small map with CGGoogleMaps

Posted: Fri Apr 17, 2009 7:30 am
by sudestmanceau
My API is too long to be post here ! (exceeds 20000 characters). And it is for a french site.

JC

Re: Small map with CGGoogleMaps

Posted: Fri Apr 17, 2009 12:02 pm
by Jean le Chauve
Find the line : if($this->type_controls) {
            $_output .= 'map.addControl(new GMapTypeControl());' . "\n";
        }
and remplace with : if($this->type_controls) {
            $_output .= 'map.addControl(new GMapTypeControl());map.removeMapType(G_HYBRID_MAP);' . "\n";
        }

Re: Small map with CGGoogleMaps

Posted: Wed Apr 22, 2009 7:36 am
by sudestmanceau
THX very much and excuse for the long time for my post !
New question : is it possible to add checkboxes or radio buttons to show and hide icons with CGGoogleMaps ?

JC