[mapguide-users] mapAgentURL is not defined in FUSION mapguide

Liglio liglio at pobox.com
Tue Jul 23 15:14:01 PDT 2019


Hi,

I got the same error. I changed the file FusionSF.js at line 1710 the
original was:

var fetchAppDef = function appDefUrl, sessionId, onAppDefFetched) {
        var xhr = getXmlHttpRequest();
        xhr.open("GET", mapAgentUrl +
"?OPERATION=GETRESOURCECONTENT&VERSION=1.0.0&LOCALE=en&CLIENTAGENT=MapGuide+Developer&RESOURCEID="
+ appDefUrl + "&FORMAT=text%2Fxml&SESSION="+ sessionId, true); 

I changed to:

var fetchAppDef = function(mapAgentUrl, appDefUrl, sessionId,
onAppDefFetched) {
        var xhr = getXmlHttpRequest();
        xhr.open("GET", mapAgentUrl +
"?OPERATION=GETRESOURCECONTENT&VERSION=1.0.0&LOCALE=en&CLIENTAGENT=MapGuide+Developer&RESOURCEID="
+ appDefUrl + "&FORMAT=text%2Fxml&SESSION="+ sessionId, true); 

and passed the mapAgentUrl as argument at line 447

fetchAppDef(mapAgentUrl, appDefUrl, Fusion.sessionId, onAppDefFetched);

and I am using the FusionSF.js insted Fusion-compressed.js




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html


More information about the mapguide-users mailing list