[mapguide-users] Selecting and Zooming to Features - AJAX Viewer

Dave Wilson dave.wilson at autodesk.com
Tue Jul 7 11:29:16 EDT 2009


A scale range change may cause things to slow down as other layers may need to be enabled/disabled. Fusion is not likely to be any faster as it will have to process the same scale change requests.

This is of course only speculation as to the cause.

Dave

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Ivan Milicevic
Sent: Tuesday, July 07, 2009 1:38 AM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Selecting and Zooming to Features - AJAX Viewer

I thik that you can't speed up your selection. The delay depends on many things but the main reason is feature source (joins with database).

Are you using the tiled base layers?

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Praveen Rajendra Babu
Sent: Tuesday, July 07, 2009 2:23 AM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Selecting and Zooming to Features - AJAX Viewer

Hi,
Trying to figure out the best way to zoom and select features. This is w.r.to AJAX Viewer.
What I do right now in sequence is:

*         Get the selection XML using MapGuide Web API

*         Call the function mapFrame.SetSelectionXML(...) with the selection XML

*         Call the function mapFrame.ExecuteMapAction(10)

When doing this, there is a delay between the selection/highlighting of features on the map and then zooming to the features.
Sometimes the delay between highlighting and zooming is minor and many times it is easily noticeable and this seems to be a bit "not-nice",
in a very polite sense!
   Wondering, am I doing things the right way? Is there any better way to highlight and zoom features?
Does Fusion come better in this basic set of activities?

Thanks for your time.

-Praveen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090707/890da8c5/attachment.html


More information about the mapguide-users mailing list