Select to view content in your preferred language

remove items from map context menu

791
4
11-26-2010 05:43 AM
grahamcooke
Regular Contributor
Hi

Can someone please tell me if it is possible to remove the two "about arcs" items from context menu, when u right click the map?

I have tried mapmenu.hidebuiltinitems but this doesn't work.

Hope someone can help!

Thanks
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Graham,

    All you have to do is look in the MapManager.mxml and find this line and comment it out

setViewerVersion();
0 Kudos
grahamcooke
Regular Contributor
Robert,

Sorry for the belated reply. Thanks for this, it works....but only removes one of the options.

I two "about" options on right click: "about arcgis api for flex" and "about Arcgis viewr for flex". When I comment the line you suggested, it removes only the "about arcgis viewer for flex" option.

Hope you can help!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Graham,

   OK, i didn't notice that... Just do this then:
//setViewerVersion();
    map.contextMenu = null;
0 Kudos
parvazparvaz
Occasional Contributor
Hi, many thanks for your good solutions
I have a question:
How can I remove the "about arcs" items from "Overview" widget, when u right click it's map?
Regards
A.poker
0 Kudos