Page 1 of 1

GoogleMaps Overview

Posted: Fri Feb 23, 2007 10:15 pm
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

Re: GoogleMaps Overview

Posted: Wed Apr 11, 2007 5:15 pm
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

Re: GoogleMaps Overview

Posted: Wed Apr 11, 2007 5:59 pm
by Nullig
I'm not sure what you mean, as mine shows the gap by default.

Nullig

Re: GoogleMaps Overview

Posted: Wed Apr 11, 2007 9:02 pm
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?