Hello,
I have a map with a MapGuide Map as base layer. This is working well.
However, I want to load a different Mapguide map to use as an overview map.
The problem is that the requests (base layer and ov layer) sent to the
server are the same, except for the SETVIEWSCALE, SETDISPLAYHEIGHT, and
SETDISPLAYWIDTH which are different. So, the overview map layer is the same
as the baselayer, even though I'm calling another one.
I don't think there is a problem with using multiple Mapguide layers
simultaneously, so I'm really stuck on this one. Here is how I call my
baselayer and ovmap layer:
var options = {
isBaseLayer: true,
buffer: 1,
useOverlay: false,
useAsyncOverlay: true,
singleTile: true
};
var params = {
mapname: 'St-Hyacinthe',
session: '76740460-dc89-11df-8000-0013720e5248_en_7F0000010AFC0AFB0AFA'
};
var layer = new OpenLayers.Layer.MapGuide( "MapGuide OS untiled baselayer",
url, params, options );
var optionsOV = {
isBaseLayer: false,
buffer: 1,
useOverlay: false,
useAsyncOverlay: true,
singleTile: true
};
var paramsOV = {
mapname: 'St-Hyacinthe_mini',
session: '76740460-dc89-11df-8000-0013720e5248_en_7F0000010AFC0AFB0AFA'
};
var layerOV = new OpenLayers.Layer.MapGuide( "OV", url, paramsOV, optionsOV
);
map.addControl(new
OpenLayers.Control.OverviewMap({layers:layerOV,'div':OpenLayers.Util.getElement('ovmapsth')}));
Both mapName and the session are acquired through a PHP script.
I have also tried calling the overview map with groupName and mapDefinition,
without results. I also know for a fact that both Mapguide maps are OK.
Is there something wrong?
Thank you,
Maxime
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/MapGuide-Layer-as-overview-map-tp5656550p5656550.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users