GoogleMaps - Insert a marker and the Theme of the page is ignored

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Gbuss
New Member
New Member
Posts: 5
Joined: Tue Jan 12, 2010 10:26 am

GoogleMaps - Insert a marker and the Theme of the page is ignored

Post by Gbuss »

Hi, I have searche everywhere for a solution on this.

I have GoogleMaps installed and working, but as soon as I add a marker the page looses its look and doen not assocaite to any of the themes installed just plain HTML with no CSS.

I have tried to assing a theme directly to the page and no luck. as soon as I delete the Marker the page is back to normal with the correct theme.

Please help. I have the latest GoogleMaps (Downloaded it today - 14 Jan 2010)

Thanks
G
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: GoogleMaps - Insert a marker and the Theme of the page is ignored

Post by tsw »

Anything in error logs?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: GoogleMaps - Insert a marker and the Theme of the page is ignored

Post by tsw »

on some hosts it seems that getimagesize does not allow absolute urls. To change the module to use relative url modify file action.default.php

and add the red are (line numbers 174 - 176)

    168         // Add the correct icon
    169         $config = $gCms->GetConfig();
    170         $markerdir = $this->config['root_url'].DIRECTORY_SEPARATOR.'modules'.
    171                 DIRECTORY_SEPARATOR.$this->getName().
    172                 DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR;
    173
    174          // use relative path
    175          $markerdir = DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR.$this->getName().DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR;
    176

    177         if ( $map_marker['icon'] != '') {


hope this helps.
Gbuss
New Member
New Member
Posts: 5
Joined: Tue Jan 12, 2010 10:26 am

Re: GoogleMaps - Insert a marker and the Theme of the page is ignored

Post by Gbuss »

Hi,

Thanks, this did help keeping the theme and did not through any errors. now the icon does not show though. even though in fact it is there. (I can select the space where the marker should be)

just the Icon does not display

Thanks
G ???
Post Reply

Return to “Modules/Add-Ons”