[mapguide-users] Viewer API Selection Timing Issues

Buscher, Shane Shane.Buscher at nngco.com
Thu Mar 15 18:09:09 EDT 2007


Bruce, 

 

Thanks for responding.  I did test the Ajax Viewer and it did work.  I
do need to use the DWF viewer though.  At least I've confirmed the fix
though for Ajax!

 

Regards,

 

Shane

 

________________________________

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Bruce
Dechant
Sent: Thursday, March 15, 2007 5:07 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Viewer API Selection Timing Issues

 

RFC 15 has already been approved and the code changes have already been
submitted.

Please see: http://trac.osgeo.org/mapguide/wiki/MapGuideRfc15

 

If you build from the source now you will be able to use the new
functionality provided by RFC 15.

 

Thanks,

Bruce

	-----Original Message----- 
	From: mapguide-users-bounces at lists.osgeo.org on behalf of Scott
Hameister 
	Sent: Thu 3/15/2007 3:32 PM 
	To: 'MapGuide Users Mail List' 
	Cc: 
	Subject: RE: [mapguide-users] Viewer API Selection Timing Issues

	RFC 15 should solve this problem in the AJAX viewer when/if it
makes it through

	 

	
________________________________


	From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Buscher,
Shane
	Sent: Thursday, March 15, 2007 10:02 AM
	To: Mapguide_users at lists.osgeo.org
	Subject: [mapguide-users] Viewer API Selection Timing Issues

	 

	I may be going about this the wrong way, but here's my problem.
I want to  select a feature based on an attribute query in the task
pane, automatically zoom to it, and highlight it.  I have found
highlighting the feature to be the most problematic because the feature
has to exist within the map frame extent before it can be selected with
the SetSelectionXML() Viewer api function. As far as I know, this is the
only function call you can make in MapGuide to highlight features.  

	Knowing that SetSelectionXML() will only highlight features in
the current map extent, I preceded to zoom to the feature (ZoomToView)
before calling SetSelectionXML().  The problem is that the map can't
zoom quick enough, and so no features are highlighted:

	ZoomToView(x, y, scale);   

	SetSelectionXML(xmlSet);  //no features exist yet because of
delay in ZoomToView 

	I don't have any problems when the feature already exists in my
map extent.  Does anyone have a workaround or better method to
accomplish this?  The only hack can think of is to pause the execution
of SetSelectionXML() until ZoomoView is complete, but I'm not sure the
best way to code this.  

	Regards,

	Shane

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


More information about the mapguide-users mailing list