mapbox / mapbox/mapbox-gl-js

glitchy map rendering with all lines turning dotted after adding a Marker when using Vue

Open
#9,874 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

mapbox-gl-js version: 1.11.0

browser: latest Chrome

Steps to Trigger Behavior

import MapBox from 'mapbox-gl'

  1. add a marker on map using MapBox.Marker().setLnglat(lngLat).addTo(map)
    2.then use mouse to zoom in or zoom out
    3.the whole map changed
Screen Shot 2020-07-14 at 7 12 52 PM Screen Shot 2020-07-14 at 7 12 56 PM
Link to Demonstration

Hard to paste code to jsbin, very sorry about that.
Could you please give some potential reason to cause this problem?
https://jsbin.com/

Expected Behavior
Actual Behavior

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the issue through the MapBox.Marker().setLngLat(...).addTo(map) entry point, then zoom the map and compare rendering before and after adding the marker; done means the map remains correctly rendered during zoom.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
computer-graphics, frontend, web-dev
Issue type
Bug
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.