[fusion-users] Multiple Maps and OverviewMap.

Tómas Guðmundsson tomas at snertill.is
Fri May 16 08:04:21 EDT 2008


Hi all.

Happy Friday. Hope you have a wonderful weekend everyone. I have a couple questions for you all.

First of regarding the maps. I thought originally that it would be enough to add these two things to the ApplicationDefinition.xml and life would be beautiful but I guess I'm not that lucky.

1. 
<MapWidget xsi:type="WidgetType">
<Name>Map</Name>
<Type>Map</Type>
<StatusText>The map.</StatusText>
<MapId>sheboygan</MapId>
<Extension xsi:type="CustomContentType">
<MenuContainer>ContextMenu</MenuContainer>
</Extension>
</MapWidget>

2.
<MapGroup id="sheboygan" xsi:type="MapType">
<Map xsi:type="MapGuideLayerType">
<Type>MapGuide</Type>
<SingleTile>true</SingleTile>
<Extension>
<ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition</ResourceId>
</Extension>
</Map>
</MapGroup>

And with those two added to my AppDef I was hoping to have my main map and then the sample map as well so I could chose between in the <Widget>MapMenu</Widget> but nothing happens. I also get some errors that I think that are encountered with reading between the maps. Just to clear things, I added the MapGroup within the MapSet in the AppDef so I would have two MapGroups and two MapWidgets but I also tried to have two Maps within one MapGroup. Nothing worked. 

My second question is regarding the OverviewMap. I played a little with the OverviewMap.js and the OverviewMap.xml to see if it would make any changes and nothing happen. Essentially I tried to change some variables like the min and max ratio, oLayerOL.ratio and numZoomLevels but what I'm trying to change in my overviewmap is when you zoom in, in the big map that the overview map doesn't change as well. So after I zoom in 3 times, the overview map starts to zoom in as well and at that time the red binding box in the overview map is so big that it's not feasible to pan around in the overview map. So how can I change the overview map so it that the overview map would never, or after 10 times zoom in. Note: Changing these lines (the value assigned) did not help.

        if (this.mapObject.oLayerOL.singleTile) {
          this.oMapOptions.numZoomLevels = 3;  //TODO: make this configurable?
        }

Also everyone. Have a great weekend. You know it's going to be fun!

Regards,
Tómas.


More information about the fusion-users mailing list