[mapguide-users] Autodesk Help - OnSelectionChanged

Kori Maleski km at pat.ca
Thu May 11 13:12:36 EDT 2006


Juan,
 
I am in the un-documented realm I think.
 
I am actually making additions to the mapviewer code.  Here:
 
C:\Program Files\MapGuideOpenSource\WebServerExtensions\www\mapviewernet
C:\Program Files\MapGuideOpenSource\WebServerExtensions\www\viewerfiles
 
Some of it is documented in the Web API as functions you can call from your application.
Others are internal functions.
 
Cheers,
 
 
 
 
 
Kori Maleski  BSc. 
Senior Technical Consultant
 
Pacific Alliance Technologies
Suite 400 - 534 17 Ave. SW Calgary, AB CANADA T2S 0B1
TEL 403.770.1917 FAX 877.691.9149 TOL 877.691.9171 www.pat.ca <http://www.pat.ca/> 

________________________________

From: Butler, Juan P [mailto:jpbutler at co.pinellas.fl.us]
Sent: Thu 11/05/2006 6:59 AM
To: users at mapguide.osgeo.org
Subject: [BULK] RE: [mapguide-users] Autodesk Help - OnSelectionChanged



Hey Kori:

 

Where did you see the documentation for the "OnSelectionChanged" event?   I'm looking for the event handlers in MGOS that are similar to the ones I used with MG 6.x.   Thanks.

 

- Juan

 

________________________________

From: Kori Maleski [mailto:km at pat.ca] 
Sent: Wednesday, May 10, 2006 6:00 PM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] Autodesk Help - OnSelectionChanged
Importance: High

 

Hi All,

 

Outstanding issue with some changes:

 

I need to call a function from the OnSelectionChanged event in the mainframe.templ of the mapviewer/mapagent.

I have a javascript function in the mainframe.templ file itself.

 

In MGO RC 1:

 

I called my function from the OnSelectionChanged event - and it worked smooth.

 

In MGO 1.0:

 

The code changed for both the AJAX and DWF viewer.

i.e. ajaxmappane.templ and dwfmappane.templ respectively.

 

The function call from the OnSelectionChanged no longer worked.

 

I have been fiddling trying to get it working again and have had success with the AJAX viewer but not the DWF Viewer.

 

 

For the AJAX viewer:

 

In the ajaxmappane.templ file;

In the ProcessFeatureInfo() function - I call my function.

 

Works like a charm.  Everytime I select, the function is executed.

 

For the DWF Viewer:

 

It now has that emaprelayer.html with an OnSelectionChanged event.

 

I try calling my function there:

      parent.parent.myfunction();

- doesn't work.

 

I try calling it from the OnSelectionChanged event in mainframe.templ.

       myfunction();

- doesn't work.

 

Doesn't work means stopping IIS, MapGuide Server - editing and saving - then restarting.

 

Can someone from Autodesk point me in the right direction?  

 

This is critical to mirroring 6.5 functionality in our clients applications.

 

Cheers,

 

 

 

 

 

 

Kori Maleski  BSc. 
Senior Technical Consultant

 

Pacific Alliance Technologies
Suite 400 - 534 17 Ave. SW Calgary, AB CANADA T2S 0B1
TEL 403.770.1917 FAX 877.691.9149 TOL 877.691.9171 www.pat.ca <http://www.pat.ca/> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 14404 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060511/3feea363/attachment.bin


More information about the Mapguide-users mailing list