Infrastructure Map Server Developer

Reply
Active Member
lrodriguez84
Posts: 9
Registered: ‎09-06-2011
Message 1 of 2 (551 Views)

DoubleClick in Map (Mapguide2011)

551 Views, 1 Replies
02-27-2013 06:29 AM

Hi, I would like know if exist the dobuleClick event in mapguide enterprise 2011 and if I can create a popup to click different elements.

 

 

Thanks.

Valued Mentor
gluckett
Posts: 369
Registered: ‎10-10-2003
Message 2 of 2 (276 Views)

Re: DoubleClick in Map (Mapguide2011)

05-22-2013 06:40 AM in reply to: lrodriguez84

There are several ways to do this, all of them require a bit of code:

 

If you are using FUSION/Flexible web Layouts, look into getting the x and y of where you double clicked and then selecting an object at that location.  You can use openlayers to do the first part:

http://openlayers.org/dev/examples/click.html

http://openlayers.org/dev/examples/click-handler.html

 

If you are using AJAX/Basic Web Layouts, you can tie an event to the Map Frame and then use the ScreenToMapUnits in the Viewer Api (http://mapguide.osgeo.org/files/mapguide/docs/2.0/viewerapi.html)

 

In the end for both cases, you might want to use the MAPAGENT's QUERYMAPFEATURES to get the selected objects,

 

http://trac.osgeo.org/mapguide/wiki/HttpApi/RenderingService

 

regards

 

gordon

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community