GoogleMaps Overview

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

GoogleMaps Overview

Post by Nullig »

For anyone interested in adding the small Overview map to the lower right-hand corner of the map, around line 880 of the GoogleMapAPI.class.php file you can add:

Code: Select all

$_output .= 'map.addControl(new GOverviewMapControl());' . "\n";
between

Code: Select all

if($this->type_controls) {
     $_output .= 'map.addControl(new GMapTypeControl());' . "\n";
}
and

Code: Select all

$_output .= $this->getAddMarkersJS();
Perhaps it could be an turned into an option.

Nullig
Hawaii

Re: GoogleMaps Overview

Post by Hawaii »

Thanks this useful tip.

Does anybody know how to add inner border to show the gap between the main and the overview map correctly?

Image
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: GoogleMaps Overview

Post by Nullig »

I'm not sure what you mean, as mine shows the gap by default.

Nullig
Hawaii

Re: GoogleMaps Overview

Post by Hawaii »

Indeed, it was a bit ambiguous. Sorry. So the point is that I'd like to show a border around the main map exactly the same way it is now on maps.google.com (and on my screenshot). Unfortunately it's 'naked' by default and if I put outer border around (for instance by CSS) it affects the hole object included those critical places circled by red. I think the solution is that the java object has to contain an inner border thus it could be hidden by the overview map's layer so the circled areas will maintain the gap between the independent borders. How can I do that?
Last edited by Hawaii on Wed Apr 11, 2007 9:13 pm, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”