[mapguide-users] insertion point
Knight, Gregory
Gregory.Knight.bra at cityofboston.gov
Wed Nov 8 09:16:44 EST 2006
To get feature properties from the active selection, you need to do a
few things.
First you need to retrieve the selection from the viewer. Depending on
the viewer you are using, this can be retrieved directly from the server
from your development environment or from the viewer via javascript.
Once you have the selection info, you will need to perform the basic MG
initialization, create resource and feature services, etc. The next
step is to connect to your map resource using the feature reader and
selection info to read the feature properties that you need. The X and
Y coordinates can be retrieved with GetCoordinate().GetX() and
GetCoordinate.GetY() respectively.
This is the basic idea anyways...
There are some good examples in the Dev Guide that illustrate this
process. Check out Ch 3 - Working With Feature Data.
Cheers,
Greg
________________________________
From: Willem Schwarte [mailto:willem at giskit.nl]
Sent: Wednesday, November 08, 2006 8:21 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] insertion point
Hi,
How can I get the X and Y values of the insertion point of an object
that is currently selected on the map. I can get the properties of the
object, but now I also need the insertion point x and y values.
thanks
-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally
privileged and/or exempt from disclosure pursuant to Massachusetts
law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and
delete the material from any computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20061108/dde05e11/attachment.html
More information about the Mapguide-users
mailing list