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

Text overlaps on some phone models #3964

Open
longhaiyan-lhy opened this issue Apr 10, 2024 · 1 comment
Open

Text overlaps on some phone models #3964

longhaiyan-lhy opened this issue Apr 10, 2024 · 1 comment
Labels
bug Something isn't working need more info Further information is requested PR is more than welcomed Extra attention is needed

Comments

@longhaiyan-lhy
Copy link

longhaiyan-lhy commented Apr 10, 2024

maplibre-gl-js version: 1.14.0 and latest version

browser: Huawei Mate 60 Pro system browser

Steps to Trigger Behavior

  1. The code of my demo:
    Include the JavaScript and CSS files in the of HTML file.
<link href="https://unpkg.com/maplibre-gl/dist/maplibre-gl.css">
<script src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>

Include the following code in the

var map = new maplibregl.Map({
    container: 'map',
    style: 'https://api.maptiler.com/maps/streets-v2/style.json?key=',
    center: [108.83597143103021, 34.19110581391911],
    zoom: 14
});
  1. Use the built-in browser of the Huawei Mate 60 Pro to open the HTML file.

Link to Demonstration

Expected Behavior

All text on the map is displayed properly.

Actual Behavior

Texts on the map are overlapped on new models such as Huawei Mate 60 Pro.
重叠

Using mapbox-gl-js version 1.13.2 also has the problem of overlapping text, but the latest version of mapbox-gl-js does not have this problem.

@HarelM
Copy link
Member

HarelM commented Apr 10, 2024

Since we don't have the relevant hardware and you say that this can't be reproduced on a regular mobile device, I guess you'll need to dig into the code and understand what can cause this... sorry...

@HarelM HarelM added bug Something isn't working PR is more than welcomed Extra attention is needed need more info Further information is requested labels Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need more info Further information is requested PR is more than welcomed Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants