[mapguide-users] Tooltip on MapGuide Web API
Chris Claydon
chris.claydon at autodesk.com
Mon May 25 10:03:49 EDT 2009
I'm pretty sure that QUERYMAPFEATURES ends up calling the QueryFeatures method on the MgRenderingService. You'll need to create a geometry object that corresponds to the point you're clicking on. It is best to make it a small square rather than a single point, in order for the spatial filter to pick up the underlying feature. And it should use coordinates in the same coordinate system as the map (not image pixel cords).
Chris.
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Kenneth Skovhede, GEOGRAF A/S
Sent: Monday, May 25, 2009 7:35 AM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Tooltip on MapGuide Web API
The operation is called "QUERYMAPFEATURES", but I can't seem
to find it as a function from the Web API.
You can see it in use if you look in the file:
C:\program files\MapGuideOpenSource2.0\WebServerExtensions\www\viewerfiles\ajaxmappane.templ
line 2555.
You may also want to read this thread:
http://lists.osgeo.org/pipermail/mapguide-users/2007-January/004818.html
Regards, Kenneth Skovhede, GEOGRAF A/S
gatopardo skrev:
Nobody can help me?
gatopardo wrote:
How could I get the Tooltip on a point using MapGuide Web API?
Example:
I have generated an image using MgRenderingService.RenderMap, and after
that I want to get the tooltip on a point of this image, using the
coordinates on image pixels or converting them to lat-lon.
But I haven't found any method that makes this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090525/b531cc86/attachment.html
More information about the mapguide-users
mailing list