[fusion-users] RE: fusion-users Digest, Vol 16, Issue 1

Ari Þórðarson ari at snertill.is
Tue Jun 2 12:29:31 EDT 2009


Hello everybody

One tip I would like to add for those who are using prototype.  An older version
of prototype is somehow included in the OpenLayers library so it is possible to use
prototype components by adding "OpenLayers." at the begginning of their name.
For example "Event.observe" should be replaced with OpenLayers.Event.observe and
"Ajax.Request" should be replaced with "OpenLayers.Ajax.Request"

Greetings from Ari at Snertill in Iceland.

-----Original Message-----
From: fusion-users-bounces at lists.osgeo.org [mailto:fusion-users-bounces at lists.osgeo.org] On Behalf Of fusion-users-request at lists.osgeo.org
Sent: 2. júní 2009 16:01
To: fusion-users at lists.osgeo.org
Subject: fusion-users Digest, Vol 16, Issue 1

Send fusion-users mailing list submissions to
	fusion-users at lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.osgeo.org/mailman/listinfo/fusion-users
or, via email, send a message with subject or body 'help' to
	fusion-users-request at lists.osgeo.org

You can reach the person managing the list at
	fusion-users-owner at lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of fusion-users digest..."


Today's Topics:

   1. Fusion Conversion: 1.x -> 2.x (Nolte, Tim)
   2. RE: Fusion Conversion: 1.x -> 2.x (T?mas Gu?mundsson)
   3. Re: Fusion Conversion: 1.x -> 2.x (Paul Spencer)


----------------------------------------------------------------------

Message: 1
Date: Tue, 2 Jun 2009 08:40:34 -0400
From: "Nolte, Tim" <Tim.Nolte at ipcswirelessinc.com>
Subject: [fusion-users] Fusion Conversion: 1.x -> 2.x
To: <fusion-users at lists.osgeo.org>
Message-ID: <E534BE8FE04ADF4FA3C837466F4F35404291A5 at KTWMAIL.ilpcs.com>
Content-Type: text/plain;	charset="us-ascii"

Does anyone have any tips on make a conversion from Fusion 1.x to 2.x? I
had a really nice custom layout created under Fusion 1.x that I tried to
move to 2.x and it's been a real mess. I can see that some of the big
things are the changes to the JX libraries. Also I have a couple of
widgets that I developed in 1.x that don't work at all in 2.x now
either. All of the documentation online seems to be all 1.x driven and
doesn't work under 2.x.

The reason I am even taking the effort to move to 2.x is because of all
of the additional exposed OpenLayers layers that are available. Does
anyone know if TileCache specifically is working now with Fusion 2.x?
Thanks.

- Tim

----
Timothy J Nolte - tnolte at ilpcs.com
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com


------------------------------

Message: 2
Date: Tue, 2 Jun 2009 13:58:23 -0000
From: T?mas Gu?mundsson <tomas at snertill.is>
Subject: RE: [fusion-users] Fusion Conversion: 1.x -> 2.x
To: "Nolte, Tim" <Tim.Nolte at ipcswirelessinc.com>,
	<fusion-users at lists.osgeo.org>
Message-ID:
	<FD1AEAFE8595974CADD8952EB37BF884447C58 at askja.snertill.local>
Content-Type: text/plain;	charset="iso-8859-1"

Hi Tim,

Tómas here working for Snertill in Iceland. We are upgrading from MapGuide Enterprise 2009 to 2010 as well as Fusion 1.1 to 2.0. I am not currently working on it but my colleague is. His tips were that the simple copy and paste of code absolutely does not work. What he has been doing (brace yourself) for the last 10 work days, is that he has gone from the default Slate layout, and in small steps adding our own custom code (custom widgets and changes) to the default layout. He specifically said "baby steps". He is about to finish with final CSS touches.

Unfortunately we have no conversion steps or guides for you to take on how to upgrade other than the down and dirty in the code way. Hope you pull through.

Tómas Guðmundsson 
Programmer,
Snertill


-----Original Message-----
From: fusion-users-bounces at lists.osgeo.org [mailto:fusion-users-bounces at lists.osgeo.org] On Behalf Of Nolte, Tim
Sent: 2. júní 2009 12:41
To: fusion-users at lists.osgeo.org
Subject: [fusion-users] Fusion Conversion: 1.x -> 2.x

Does anyone have any tips on make a conversion from Fusion 1.x to 2.x? I
had a really nice custom layout created under Fusion 1.x that I tried to
move to 2.x and it's been a real mess. I can see that some of the big
things are the changes to the JX libraries. Also I have a couple of
widgets that I developed in 1.x that don't work at all in 2.x now
either. All of the documentation online seems to be all 1.x driven and
doesn't work under 2.x.

The reason I am even taking the effort to move to 2.x is because of all
of the additional exposed OpenLayers layers that are available. Does
anyone know if TileCache specifically is working now with Fusion 2.x?
Thanks.

- Tim

----
Timothy J Nolte - tnolte at ilpcs.com
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com
_______________________________________________
fusion-users mailing list
fusion-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-users


------------------------------

Message: 3
Date: Tue, 2 Jun 2009 10:19:36 -0400
From: Paul Spencer <pspencer at dmsolutions.ca>
Subject: Re: [fusion-users] Fusion Conversion: 1.x -> 2.x
To: "Nolte, Tim" <Tim.Nolte at ipcswirelessinc.com>
Cc: fusion-users at lists.osgeo.org
Message-ID: <3752AF05-6581-4600-9BB3-B92B504DE2A1 at dmsolutions.ca>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Hi Tim,

unfortunately the change from 1.x to 2.0 is disruptive due to an API  
change in JxLib and in Fusion itself (for widgets).  I thought I had  
posted something on this before but apparently I didn't.

For widgets, the big changes are:

1. change the initialize method to initializeWidget
2. remove call to Fusion.Widget.prototype.initialize.apply
3. remove calls to Fusion.Tool.xxxxx
4. add new attribute uiClass: Jx.Button for widgets that are  
represented as (this replaces calling  
Fusion.Tool.ButtonBase.prototype.initialize.apply)
5. if the widget is modal on the map, add new attribute isExclusive:  
true
6. remove activateTool if used

A good example of a button-based widget is Zoom.js.  If your widgets  
are not buttons then you can leave uiClass out or choose a different  
uiClass (like Jx.Menu for instance).

For JxLib, the changes were fairly widespread and it is hard to  
summarize them without looking at your template to see what parts you  
used.

One big change would be if you are using any prototype or  
scriptaculous stuff, you'll need to find the mootools equivalent

Another change is from Jx.Action with buttons to event listeners so  
where you would have created a button and an action before, now you  
just create the button and attach an event listener using  
button.addEvent('click', function() {});

If you want to send me your widgets or template code directly, I can  
provide you with more specific advice.

I haven't tried TileCache specifically but it supposed to work -  
actually, WMS layers work and TileCache usually uses a WMS layer so  
yes I think it does work.  If you want to use the TileCache layer to  
access a pre-built cache you will need to update OpenLayers.js to use  
a full build of the library or at least one that includes  
Layer.TileCache.

Cheers

Paul

On 2-Jun-09, at 8:40 AM, Nolte, Tim wrote:

> Does anyone have any tips on make a conversion from Fusion 1.x to  
> 2.x? I
> had a really nice custom layout created under Fusion 1.x that I  
> tried to
> move to 2.x and it's been a real mess. I can see that some of the big
> things are the changes to the JX libraries. Also I have a couple of
> widgets that I developed in 1.x that don't work at all in 2.x now
> either. All of the documentation online seems to be all 1.x driven and
> doesn't work under 2.x.
>
> The reason I am even taking the effort to move to 2.x is because of  
> all
> of the additional exposed OpenLayers layers that are available. Does
> anyone know if TileCache specifically is working now with Fusion 2.x?
> Thanks.
>
> - Tim
>
> ----
> Timothy J Nolte - tnolte at ilpcs.com
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.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/



------------------------------

_______________________________________________
fusion-users mailing list
fusion-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-users


End of fusion-users Digest, Vol 16, Issue 1
*******************************************


More information about the fusion-users mailing list