[fusion-users] How to upgrade Jx version in Fusion
Paul Spencer
pspencer at dmsolutions.ca
Wed Dec 10 09:12:51 EST 2008
You can't update Jx independently for an existing version of Fusion
for this release ... the Jx API has changed and the development (soon
to be 2.0) version of Fusion has been altered to accommodate the
changes. Existing Fusion versions will not work with the new Jx.
We are getting very close to finishing up the major changes we needed
to make for version 2.0 and will be releasing a beta version "real
soon now".
If you are brave, you can follow the instructions in the wiki for
getting the SVN version of Fusion from trunk and get the new MapGuide
templates from the MapGuide SVN. If not, then please wait a week or
two and we will ship a beta for MapGuide that includes everything you
need.
Cheers
Paul
On 10-Dec-08, at 7:24 AM, kde wrote:
>
> Hi all,
>
> I followed the http://trac.osgeo.org/fusion/ticket/115 ticket about
> the
> "Update to new Js" but I have the error Jx.aPixel is undefined.
>
> After having downloaded the Here what I did:
> 1 - renamed "jx" folder to "old_jx"
> 2 - copied all .JS files and the a_pixel.png file into /fusion/lib
> 3 - copied the a_pixel.png file into /fusion/lib
> 4 - copied the "themes" folder into /fusion/templates
> 5 - modified the fusion.jx file (*) like this :
>
> -----------------------------------------------------------------------------------------
> ...
> //at line 42:
> if (Fusion.useCompressed) {
> Fusion.coreScripts = ['lib/OpenLayers/OpenLayersCompressed.js',
> 'lib/jxlib.js', // <== MODIFIED
> 'lib/fusion-compressed.js',
> 'lib/excanvas/excanvas-compressed.js'];
> } else {
> Fusion.coreScripts = ['lib/OpenLayers/OpenLayers.js',
> 'lib/jxlib.uncompressed.js', // <== MODIFIED
> 'lib/excanvas/excanvas-compressed.js',
> 'lib/utils.js',
> 'lib/Error.js',
> 'lib/ApplicationDefinition.js',
> 'lib/MGBroker.js',
> 'lib/Widget.js',
> 'lib/ButtonBase.js',
> 'lib/MenuBase.js',
> 'lib/ButtonTool.js',
> 'lib/CanvasTool.js',
> 'lib/ClickTool.js',
> 'lib/RectTool.js',
> 'lib/Map.js',
> 'lib/Search.js',
> 'text/en/strings.json'];
> }
> ...
>
> //at line 93:
> Jx.baseURL = gszFusionURL + 'lib/'; // <== 'jx/' changed to 'lib/'
> ...
>
>
> -----------------------------------------------------------------------------------------
>
> I tried to :
> - copy the "themes" content into /fusion/templates (instead of 4)
> - copy the a_pixel.png into every "images" directories I found
> (instead of
> 3)
>
> Somebody has an idea of what I did wrong?
>
> Thanks in advance for your help.
>
> PS: My OSMG version is 2.0.2.3011.
> (*) Version of my fusion.js file: $Id: fusion.js 1396 2008-05-08
> 15:34:30Z
> madair $
>
> --
> View this message in context: http://n2.nabble.com/How-to-upgrade-Jx-version-in-Fusion-tp1638540p1638540.html
> Sent from the Fusion Users mailing list archive at Nabble.com.
>
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users
__________________________________________
Paul Spencer
Chief Technology Officer
DM Solutions Group Inc
http://research.dmsolutions.ca/
More information about the fusion-users
mailing list