Questions tagged [context-menu]

A context menu (also called contextual, shortcut, and popup or pop-up menu) is a menu in a graphical user interface (GUI) that appears upon user interaction.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

How to add a button to the Qdockwidget Layers in Qgis 3 with PyQgis

I want to add a plugin for styles to the layers panel. So I am trying to find a way to add a button to the toolbar of the layers-panel. Is this possible? If not is it possible to add a menu-item to ...
1
vote
0answers
224 views

QGIS 3 running slowly

I've been using QGIS 2.14 pretty successfully for about two years. I do also have Arc but tend to use Q more primarily because it did run considerably faster. I then installed QGIS 3 as I noticed it ...
0
votes
1answer
405 views

Using JavaScript created select options as Leaflet map setContent

Working on a creating a custom CRS Leaflet map. On map rightclick, show a popup with select boxes for users interaction. var submit_Loc_popup = L.popup(); map.on('contextmenu', onPopupBoxSubmit); ...
1
vote
1answer
1k views

openlayers interaction only on left mouse

Using openlayers (latest - 4), I have a drawing interaction that draws a circle - let drawCircle = new ol.interaction.Draw({source: source, type: "Circle"}); map.addInteraction(drawCircle); Both ...
2
votes
0answers
799 views

Mapbox GL checkbox menu

I am trying to toggle layers and legends using a checkbox menu. I'm able to toggle the bathroom and sq ft legends, but I'm not sure how to identify the layer layout in order to toggle it. Here is my ...
4
votes
1answer
1k views

Setting different context menu actions for each layer type with PyQGIS

I want to set different actions(context menu) for vectors,rasters,etc . class MyMenuProvider(QgsLayerTreeViewMenuProvider): def __init__(self, view): QgsLayerTreeViewMenuProvider.__init__(self) ...
2
votes
0answers
1k views

Leaflet.contextmenu plugin runs into Uncaught Type error under certain conditions

I'm working on a leaflet map application getting data from OpenStreetMap and use the Leaflet plugin Leaflet.contextmenu. I have defined a context menu on the map: var Map = L.map('Map', { ...
3
votes
1answer
1k views

Finding the children name of menubar in QGIS Python

I have try the code in Finding name of QGIS toolbar in Python? and Name of children of toolbar in QGIS python and how to disable? to show the children name of menuBar. But, get error. The children ...
0
votes
1answer
462 views

How to sequence overlapping GeoJSON using bringtoFront and/or zindex?

I currently have multiple GeoJSON polygons that overlap. I want to be able to layer them so I can click a GeoJSons a popup menu for that specific polygon to popup. Additionally, I want to have a side ...
4
votes
0answers
61 views

Is there a way to customize the Options dialog in QGIS 2.14.6?

I'm creating a deployment package to update QGIS from V2.8 (wien) to V2.14 (essen (LTR)). In QGIS 2.14 there is a new "Advanced" section under "Settings > Options", see screenshot: Can this menu ...
0
votes
1answer
411 views

right click sketch tool not working

When drawing a new Feature or editing an existing Feature it is possible to open the sketch tool by right-clicking onto the feature. This is not working anymore, the menu is not showing. The mouse ...
1
vote
1answer
94 views

Creating a menu interface to update an sde feature class in ArcMap using arcpy?

I work in electrical utilities and we have stacks of paper records that need to be updated into an existing SDE feature class attribute table. My problem is that someone in the city's GIS office would ...
3
votes
0answers
699 views

QGIS - Pop-up menu not displayed when right click on a layer in layer tree view

I'm developing a custom QGIS application using the QGIS API. I've been using the API provided with QGIS Brighton (Version 2.6.1) and have been developing the application in Python in a Windows 7 ...
1
vote
1answer
379 views

How to create custom items or commands for a context menu

I have read and searched the web for an answer, but nothing is working. so I need someone's help please. I have an extension that implements I command, I have the method OnContextMenu(x,y) which ...
2
votes
1answer
703 views

Why is context menu not showing?

I am trying to create and show a context menu for arcmap desktop 10.2. I have followed the steps in the link provided by esri, which explains that I must override OnContextMenu. I am not sure if I am ...
14
votes
1answer
3k views

Adding new menu item to QGIS Desktop app?

I need to add new menu item to the top level menu of QGIS Desktop (2.7.0); I.e. it shall be on same level as "Project", "Edit", "View", "Layer" etc. As far as I know there is pretty nice way how hide ...
2
votes
0answers
213 views

AxTOCControl - Using ArcMap context menu

Using Ax*Control's in a custom dialog that runs within ArcMap. When I right-click on a feature layer in the AxTOCControl, and go to display the context menu, is it possible to display and make usable:...
1
vote
1answer
411 views

vb.net arcobjects enable customized context menu item only if a feature is selected

The solution may be very simple, but I haven't made it work. I want to enable a data view context menu item only if a feature (in polyline layer) is selected, all other places the item should in grey....
2
votes
1answer
151 views

Is there a way to set the workspace on selected features

i´ve built in a tool for arccatalog which transfers GIS Files into shape Files. Everything is working so far, but i want it a bit more customer friendly. Atm it looks like this: You can right click ...
2
votes
0answers
184 views

Disable customized context menu for some cases using python

I create a python add-in tool to add new item to the context menu, but I want the new item enabled only when user right click on map when within a buffer of polyline feature. I haven't figure out how ...
5
votes
1answer
4k views

Customizing right click (context) menu of selected feature using ArcPy?

I want to confirm whether arcpy can customize the right click menu of the selected feature, which means I want to remove the default items and add in my own item. The following pictures show what I ...
1
vote
0answers
2k views

Right click context menu in OpenLayers 2

My code is this in Openlayers 2 I'm displaying two layers in a single map one with the world map and the other with my node information .. When I right click(on node layer only) I want to display ...