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: 

Is it possible to make a click event to fire the Maptip than a mouseover

3 REPLIES 3
Reply
Message 1 of 4
Bruce.Harris
499 Views, 3 Replies

Is it possible to make a click event to fire the Maptip than a mouseover

I have an iframe in a Maptip which works fine in the Desktop platforms in all browsers. When I tried opening it in the Mobile devices like iPad or any other android tablets, the Maptip seems to be not working. I think the reason for this is there is no mouseover option in the Tablets or iPad. I believe that if a click event is fired rather than a mouseover event, it should work just fine. 

 

Any thoughts will be helpful and much appreciated.

 

Cheers

Dom

3 REPLIES 3
Message 2 of 4
jackie.ng
in reply to: Bruce.Harris

You are correct that there is no mouseover event for tablets because tablets have no mice, so such an event could never be raised.

 

Instead of mousemove, perhaps you could try triggering the map tip from the MAP_SELECTION_ON event raised by the map widget.

 

- Jackie

Message 3 of 4
Bruce.Harris
in reply to: jackie.ng

Thanks  Jackie. I am not really sure about to make a call to trigger map tip from the MAP_SELECTION_ON event. I went through the JS files. But as I am not an expert with this, I could not really understand the code. Could you please explain it a bit more. 

 

Many Thanks

Dom

Message 4 of 4
gluckett
in reply to: Bruce.Harris

Check out: http://trac.osgeo.org/fusion/wiki/MapGuideTutorial

Put the code in the INDEX.HTML of the Fusion template (such as: C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension 2015\www\fusion\templates\mapguide\aqua\index.html)

For example: in the var fusionInitialized = function()
you can add:
var theMap = Fusion.getWidgetById('Map');
theMap.registerForEvent(Fusion.Event.MAP_SELECTION_ON, selectionOn);

this will call a function called "selectionOn"

then you can call:

function selectionOn() {
var theMap = Fusion.getWidgetById('Map');
theMap.getSelection(displaySelection);
}

And you can use the displaySelection from the demo on:
http://trac.osgeo.org/fusion/wiki/MapGuideTutorial





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

Post to forums  

Autodesk Design & Make Report