R: [mapguide-users] Fusion javascript (phpviewersample)
Franco Caloni
francomailing at nitris.it
Wed Feb 11 12:06:41 EST 2009
I'm looking at MapGuideViewerApi.js for use it's Digitize... functions and
just discovered that there are errors in that file.
These 2 errors make MapGuideViewerApi.js not usable (at least for me).
If you have Visual Studio, open MapGuideViewerApi.js with it and see.
The 2 errors are at line 252 and 320.
Remove the "," char at the end of line, then .js works fine.
HTH
Franco
________________________________
Da: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] Per conto di Arnaud De Groof
Inviato: mercoledì 11 febbraio 2009 14.34
A: MapGuide Users Mail List
Oggetto: [mapguide-users] Fusion javascript (phpviewersample)
Hi,
I have migrated different applications (theme layer and query) onto
fusion. The following lines of the javascript code encounter errors:
* parent.parent.Refresh();
* parent.parent.mapFrame.ZoomToView(feature.centerX, feature.centerY,
scale, true);
* parent.parent.mapFrame.SetSelectionXML(TrimString(selectionXml));
For the theme layer application, I have referenced the
MapGuideViewerApi.js in the script and I have changed the
parent.parent.Refresh(); by Refresh() without success.
Errors referenced in firebug:
* Fusion is not defined
MapGuideViewerApi.js() MapGuideViewerApi.js (line172)
Fusion.Tool.Canvas.prototype.getMap = function()
* Fusion is undefined
Refresh() MapGuideViewerApi.js (line 33)
OnApplyThemeReadyStateChange()
For the query application, I have no solution.
Could you help me to resolve these problems?
Thanks,
Arnaud De Groof
More information about the mapguide-users
mailing list