Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DoubleClick in Map (Mapguide2011)

1 REPLY 1
Reply
Message 1 of 2
lrodriguez84
876 Views, 1 Reply

DoubleClick in Map (Mapguide2011)

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.

1 REPLY 1
Message 2 of 2
gluckett
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

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report