mapbox / mapbox/mapbox-gl-js

Function for getting the _pos variable of marker

Open
#10,121 0 comments 0 reactions 0 assignees View on GitHub
api :memo: feature :green_apple:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Hi,

for selecting some features on a map, there is the need to get the _pos variable of the marker.

Do you think that it is possible to add such function like

getPos () {
return this.marker._pos
}

Thanks in advance for your feedback.

br

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the marker API and existing references to marker._pos. Confirm the expected behavior for a public position accessor, then add coverage showing that it returns the marker position and run the relevant marker tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.