[mapguide-users] Fusion javascript (phpviewersample)
Mark Pendergraft
markp at Meadgilman.com
Wed Feb 11 12:33:51 EST 2009
Yes, I had this problem too. I take it you are using Internet Explorer? A comma following the last function in a list breaks in IE, but I believe it doesn't in FireFox.
http://n2.nabble.com/Fusion-and-Javascript-td1817344.html#a1817224
-Mark P.
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Franco Caloni
Sent: Wednesday, February 11, 2009 9:07 AM
To: 'MapGuide Users Mail List'
Subject: R: [mapguide-users] Fusion javascript (phpviewersample)
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
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list