Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map do not show the markers from the tutorial #13308

Open
Epameinondas-Theodoropoulos opened this issue Oct 24, 2024 · 2 comments
Open

Map do not show the markers from the tutorial #13308

Epameinondas-Theodoropoulos opened this issue Oct 24, 2024 · 2 comments

Comments

@Epameinondas-Theodoropoulos

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

image

https://jsbin.com/

Expected Behavior

To show the marker as the tutorial show

Actual Behavior

@huruvim
Copy link

huruvim commented Oct 25, 2024

did you add styles to your app?

@Epameinondas-Theodoropoulos
Copy link
Author

did you add styles to your app?

@huruvim nothing. This is just the app.component.ts and app.component.html with nothing. Just as angular created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants