[mapguide-users] OnSelectionChanged in AJAX viewer?

Ivan Milicevic Ivan.Milicevic at supranet.hr
Fri Apr 25 08:37:01 EDT 2008


Hello,

 

In viewerfiles directory there is mainframe.templ file. Somewhere around
line 540 there is function called OnSelectionChanged

 

function OnSelectionChanged()

{

var selCount = mapFrame.GetSelectedCount();

                if(selCount > 0)

{

Alert('Kaka is best player around');

}

..........

{

 

Put something instead alert J

 

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Tanja
Suikkanen
Sent: Friday, April 25, 2008 1:25 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] OnSelectionChanged in AJAX viewer?

 

Hello all readers!

 

On my map I have markup features on markup layers. When I select a
feature on the map and press a button (self made), I can see properties
of that feature in taskPaneFrame.

The problem is that I want properties to show automatically without a
button_click. 

I've read that only DWF-viewer supports "onSelectionChanged" function so
how can I manage this in my app?

So I use AJAX-viewer and my dev-language is C# on ASP.NET.

 

Any help would be great, 

 

Tanja

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080425/3c954ba1/attachment.html


More information about the mapguide-users mailing list