[mapguide-users] (no subject)
Love, Bev (Capita Symonds)
Bev.Love at capita.co.uk
Tue Nov 4 06:35:33 EST 2008
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 recipients 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20081104/e172249b/attachment.html
More information about the mapguide-users
mailing list