[mapguide-users] ID in SelectionXml (was: No header)

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Tue Nov 4 07:15:48 EST 2008


Please see this post:
http://www.mail-archive.com/mapguide-users@lists.osgeo.org/msg03848.html

And the post mentioned there:
http://www.mail-archive.com/mapguide-users@lists.osgeo.org/msg03308.html

Regards, Kenneth Skovhede, GEOGRAF A/S



Love, Bev (Capita Symonds) skrev:
>
> Morning all,
>
>  
>
> I'm struggling with, what I imagine is, a simple problem, and would 
> appreciate any help or points in the right direction.
>
>  
>
> I've been developing a search facility which works within the task 
> frame. This has been written within JavaScript, and uses Ajax to query 
> the database to get the search results. The idea is that once the 
> search results are displayed, the user can then click on a result and 
> the map will zoom to that item (again using JavaScript). The problem 
> is, is that not all the items that are returned have an easting and 
> northing co-ordinate. Some of the items are contained within shape files.
>
>  
>
> I figured the easiest way to zoom to an item, was to select it on the 
> map, and then zoom into that selection. This is where I hit the 
> problem. I'm guessing SetSelectionXML() will be used to add the 
> selection to the map, however I'm not too sure on what format the XML 
> should take.
>
>  
>
> I've used GetSelectionXML to get the XML for a similar item that I 
> select, but it contains id's for the layer and the item. However these 
> do not match the id's that exist in the shape file. Basically what I 
> want to know is how do I generate the correct id's for the layer and 
> the items (which I wish to select)??
>
>  
>
> Thanks,
>
>  
>
> Bev
>
>
> This email and any attachment are intended solely for the addressee, 
> are strictly confidential and may be legally privileged. If you are 
> not the intended recipient any reading, dissemination, copying or any 
> other use or reliance is prohibited. If you have received this email 
> in error please notify the sender immediately by email and then 
> permanently delete the email. Copyright reserved.
>
> All communications, incoming and outgoing, may be recorded and are 
> monitored for legitimate business purposes.
>
> The security and reliability of email transmission cannot be 
> guaranteed. It is the recipient's responsibility to scan this e-mail 
> and any attachment for the presence of viruses.
>
> The Capita Group plc and its subsidiaries ("Capita") exclude all 
> liability for any loss or damage whatsoever arising or resulting from 
> the receipt, use or transmission of this email.
>
> Any views or opinions expressed in this email are those of the author 
> only.
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20081104/ccd18bff/attachment.html


More information about the mapguide-users mailing list