Small map with CGGoogleMaps

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
sudestmanceau
Forum Members
Forum Members
Posts: 21
Joined: Tue Apr 14, 2009 3:02 pm

Small map with CGGoogleMaps

Post 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
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Small map with CGGoogleMaps

Post 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
Last edited by tyman00 on Tue Apr 14, 2009 3:14 pm, edited 1 time in total.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
sudestmanceau
Forum Members
Forum Members
Posts: 21
Joined: Tue Apr 14, 2009 3:02 pm

Re: Small map with CGGoogleMaps

Post 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
Attachments
map.jpg
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Small map with CGGoogleMaps

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
sudestmanceau
Forum Members
Forum Members
Posts: 21
Joined: Tue Apr 14, 2009 3:02 pm

Re: Small map with CGGoogleMaps

Post 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
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Small map with CGGoogleMaps

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
sudestmanceau
Forum Members
Forum Members
Posts: 21
Joined: Tue Apr 14, 2009 3:02 pm

Re: Small map with CGGoogleMaps

Post 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
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Small map with CGGoogleMaps

Post by tyman00 »

You will likely need to do some research on the google api itself on google. It may be customizable with CSS.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
sudestmanceau
Forum Members
Forum Members
Posts: 21
Joined: Tue Apr 14, 2009 3:02 pm

Re: Small map with CGGoogleMaps

Post 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
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Small map with CGGoogleMaps

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
sudestmanceau
Forum Members
Forum Members
Posts: 21
Joined: Tue Apr 14, 2009 3:02 pm

Re: Small map with CGGoogleMaps

Post by sudestmanceau »

My API is too long to be post here ! (exceeds 20000 characters). And it is for a french site.

JC
Jean le Chauve

Re: Small map with CGGoogleMaps

Post 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";
        }
sudestmanceau
Forum Members
Forum Members
Posts: 21
Joined: Tue Apr 14, 2009 3:02 pm

Re: Small map with CGGoogleMaps

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

Return to “Modules/Add-Ons”