Hi,

I have a custom map with multiple overlays, which works just fine.
However, when I tried to add the overview map, it only shows a single
layer.
The code is like this:
--------------------------------------------------------------------
var tileLayers = [new GTilerLayer(...)];
tileLayers[0].getTileUrl = customGetTileUrl1;  // layer #1

var layer2 = new GTileLayer(...);
layer2.getTileUrl = customGetTileUrl2;
var overlay2 = new GTileLayerOverlay(layer2);  // layer #2

var layer3 = new GTileLayer(...);
layer3.getTileUrl = customGetTileUrl3;
var overlay3 = new GTileLayerOverlay(layer3);  // layer #3

var customMap = new GMapType(...);
var map = new GMap2(document.getElementById('mapDiv'), {mapTypes:
[customMap]});
map.addMapType(customMap);
map.setCenter(new GLatLng(0,0), maxZoom, customMap);

map.addOverlay(overlay2);
map.addOverlay(overlay3);

var ovControl = new GOverviewMapControl(new GSize(300,300));
ovControl.setMapType(customMap);
map.addControl(ovControl);
--------------------------------------------------------------------

Is there any way to make the overview map to show the exact same
overlays as in the main map?

Thank you in advance!!


J.R.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to