Select to view content in your preferred language

API 2.0 - Cursor issue with map context menu

1471
12
06-29-2010 10:57 AM
TonyCollins
Regular Contributor
Hi there,

Using API 2.0, the standard context menu (on right click) has no mouse pointer when in pan mode (NavigationTool.PAN).

Is this something I am doing/can be fixed?

Thanks
Tony
Tags (2)
0 Kudos
12 Replies
TonyCollins
Regular Contributor
Thanks Dasa,

Hope Adobe come up with something for that.

On a side note, is there a way to stop your API using the cutom cursor when in pan mode?

Thanks

This seems to be a new Flash Player 10.1 bug that only happens in IE. If a custom cursor is being shown, and you right click, then the system cursor is supposed to be shown, but in FP 10.1 it isn't, so you're left with no cursors. This is happening for 1.x apps too.

I've submitted this bug to Adobe at https://bugs.adobe.com/jira/browse/SDK-26818

A workaround is to set the wmode to opaque, but only for IE since Chrome will show both cursors otherwise.

e.g. In the html template add this after params.allowfullscreen = "true";

if (swfobject.ua.ie && swfobject.ua.win) // http://code.google.com/p/swfobject/wiki/api
{
    params.wmode = "opaque"; // workaround for cursor issue - https://bugs.adobe.com/jira/browse/SDK-26818
}
0 Kudos
DasaPaddock
Esri Regular Contributor
Are you looking for this, or do you mean the hand that's shown while you're panning?
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html#openHandCursorVisible
0 Kudos
TonyCollins
Regular Contributor
Ahh, that's great...

I'm going to stick with this until the fix for the right-click is resolved as we need to use a cuctom context menu.

Thanks Dasa!

Are you looking for this, or do you mean the hand that's shown while you're panning?
http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html#openHandCursorVisible
0 Kudos