This list of limitations may look bothersome, but it's more informational than anything likely to cause you a problem. Maybe we should have called the list "Things to keep in mind" rather than limitations!
Note: It looks like we fixed the onMapLoaded limitation. We need to test it again to know for sure. The change history on 03/08/2005 which says:
"Move <script> tags for scriptpath, jspath, and vbspath parameters used by the map from generated
section closer to the top of the code with other JavaScript definitions and references. Since it's no longer in the header and is defined with other functions, document.write is no longer needed. This placement ensures the functions are defined and available before the map loads, resolving the intermittent problem with detecting and processing the onMapLoaded event with the MapGuide API."Coding around this restriction is easy, consisting of explicitly waiting for the map to load before proceeding. See sample code files mgmapinitAPI-SOURCE.js and others for code that waits for map-not-busy prior to invoking further application API code that would have been invoked after the onMapLoaded event. Waiting for map-not-busy is also a more platform-independent approach and is simpler in a way because it does not require an event observer.
As delivered with the Wrapper, the map frame is loaded by the frameset definition mgmap.cfm that is the usual link point for the Wrapper. If the supplied mgmap.cfm frameset layout ("title" frame on top) doesn't suit you, you can easily copy and modify it as needed. The real "meat" of the Wrapper is in the mgmapframe.cfm map frame definition which we strongly recommend using without changes. In other words, you are strongly encouraged to use mgmapframe.cfm as-is, but you may want to make one or more versions of mgmap.cfm. We have only one version of mgmap.cfm and suggest you try to do the same.
If you have existing MapGuide API applications that have API code in the map object page or frame, you can use Wrapper URL parameters to embed your API code in the Wrapper's map frame at run time. See Wrapper mgmap.cfm URL Parameters documentation for the SCRIPTPATH, JSPATH and VBSPATH parameters.
As the Java Viewer works (or mostly works) on some platforms (browsers) that aren't officially supported by Autodesk, we've added code to our local site MapGuide API code to warn the user if they aren't using a supported configuration. We didn't put that check in the Wrapper as the supported configurations vary with each release of the MapGuide Viewer and we didn't want to put logic for all MapGuide Versions in the Wrapper. Since our site requires MapGuide 6.5, we put the checks for platforms supported by version 6.5 in our local API code. Contact us if you want this code fragment. See Support.
Pima County MapGuide MWF Wrapper Main Page