Andy,

Fusion doesn't support that use-case right now although you might be able to look at the MapMenu widget to see if that might fit your needs, or you may be able to customize it to suit. The MapMenu supports loading a list of Map definitions from a MapGuide folder resource, i.e point it at a MapGuide Library://some/folder and it will enumerate all the MapDefinition items and list them in the menu.

The other approach would be to modify Fusion to accept a 'mapResource' URL parameter that would override the ResourceId pointer in a MapGroup, in this case the <MapGroup><Map> element in AppDef would represent a template.

Mike

Andy Morsell wrote:

Hi,
I'm trying to use Fusion on a new project and still wrapping my head around everything. I have a an application with potentially hundreds of map definitions in the MGOS repository. I would like ONE Fusion ApplicationDefinition for the entire application. From what I understand the map definition must be defined in the ApplicationDefinition.xml file in the MapSet tag, MapGroup container, Map tag. Further, the MapGroup ID is then referenced by the MapWidget.

To avoid having a huge and difficult to maintain ApplicationDefinition file with all of my maps, what would be the best approach for my needs? The map will be determined by the application at run-time after the user logs in, and I need to then load the Fusion layout with that map (a MGOS map resource). I see that the loadMap() method in the Fusion command API will do what I need, but the map definition must exist in the AppDef first.

Any suggestions are greatly appreciated.  Thank you.

Andy Morsell, P.E.
Spatial Integrators, Inc.
_http://www.SpatialGIS.com_

------------------------------------------------------------------------

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to