antvis / antvis/LarkMap

🤔 [QUESTION] any code API to add context menu in the scene ?

Open
#235 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
87
Forks
34
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Question description [Please make everyone to understand it]

I want to add contextmenu to the scene, I only see the example from [https://github.com/antvis/LarkMap/blob/ac6b4de7dc72617f6e9bd0afc077c4bde7c5970a/src/components/ContextMenu/demos/default.tsx#L4](url) ,which is

```

{ handleMenu('zoomIn'); }}/>
handleMenu('zoomOut')} />
handleMenu('center')} />

```
however just wondering is there any code API to have the scene add the context menu ?

```
this.scene = new Scene({
id: 'map',
map: new GaodeMap(this.map)
});
```

best rgds

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/components/ContextMenu/demos/default.tsx and the Scene constructor shown in the issue, then inspect the documented scene and context-menu entry points. There is no test or implementation file named in the report; done means confirming whether a scene-level context-menu API exists and documenting the supported integration if it does not.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.