Map do not show the markers from the tutorial
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
**mapbox-gl-js version**: 3.7.0
**browser**: Chrome Version 130.0.6723.60 (Official Build) (64-bit)
**Angular version**:
"@angular/animations": "^18.2.0",
"@angular/cdk": "^18.2.6",
"@angular/common": "^18.2.0",
"@angular/compiler": "^18.2.0",
"@angular/core": "^18.2.0",
"@angular/fire": "^18.0.1",
"@angular/forms": "^18.2.0",
"@angular/platform-browser": "^18.2.0",
"@angular/platform-browser-dynamic": "^18.2.0",
### Steps to Trigger Behavior
I tried the tutorial that exist in this page (https://docs.mapbox.com/help/tutorials/custom-markers-gl-js/#step-2-initialize-your-map). In version ^2.13.0 this was ok. But in the newer update I can't see the markers. Is just the map without the markers.
I also tried the new method in map.
```
this.map._addMarker(
new mapboxgl.Marker().setLngLat({
lat: feature.geometry.coordinates[1],
lon: feature.geometry.coordinates[0],
})
);
this.map._forceMarkerAndPopupUpdate();
```
But nothing happened again.
### Link to Demonstration

https://jsbin.com/
### Expected Behavior
To show the marker as the tutorial show
### Actual Behavior
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked custom-markers tutorial at Step 2 and the provided Angular snippet, reproducing the issue with mapbox-gl-js 3.7.0 in Chrome. Compare the marker behavior with version 2.13.0 and confirm whether the marker remains absent; the report names no repository file or test, and the expected behavior is the marker appearing as shown in the tutorial.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100