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: [email protected] [mailto:[email protected]] 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 _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
