Around line 532 of lib/ApplicationDefinition.js there is an over-ride of
the mapid by a query param. You should be able to do something similar
there, or else just above that in the
Fusion.Lib.ApplicationDefinition.Map where it extracts the resourceId
from the MapGroup.
Patches like this would be welcome. Just create a ticket first and
attach the patch to it.
Mike
Andy Morsell wrote:
Thanks for the MapMenu widget possibility. That may work out okay pointing
to a library folder, and I'll have to figure out how to hide the widget
itself from the end-user.
Yes, having a URL parameter that points to a mapResource would be perfect.
I will look at modifying Fusion. Any quick clues as to which Fusion files I
should start looking at?
Thanks again.
Andy
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Adair
Sent: Tuesday, May 13, 2008 11:56 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Fusion - one AppDef many maps best approach?
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
_______________________________________________
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