-
-
Notifications
You must be signed in to change notification settings - Fork 717
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
Geojson Circle broken / even on example page #4062
Comments
I'm not sure I understand the issue. Please better explain what you think is not working as expected. |
Thank you for the feedback but on my main development system I can not do anything to get the circles to show right now I will investigate if I can find some more info I tested it in 5 different browsers on my "broken" system and the circles do not show anywhere. Maybe a webgl driver issue? |
No clue, sorry... |
Yes, now with the feedback I started testing on different systems. but the strange thing is that only type:circle is not working fill, line and symbol work as far as I can tell every example on the examples page works except for drawing a plain circle |
Hello, I stumbled on the same issue, it was hard to narrow down. I think the issue is with webgl. To make things weirder, if the circle rendering has dynamic properties, then it's displayed. Here is a way to test it : https://jsfiddle.net/nx9djmtu/1/
With hardware rendering: My setupI have AMD Ryzen 7 7840U w/ Radeon 780M Graphics, running on archlinux, wayland (sway) Here is the same code as a single html file <!doctype html>
<html lang="fr">
<head>
<meta charset=" utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Weird bug</title>
<style>
</style>
<script src='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js'></script>
<link href='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css' rel='stylesheet' />
</head>
<body>
<div id="map"></div>
<script>
const map = new maplibregl.Map({
container: 'map', // container id
style: 'https://demotiles.maplibre.org/style.json', // style URL
center: [0, 0], // starting position [lng, lat]
zoom: 1 // starting zoom,
});
const geojson = {
type: "Feature",
properties: { foo: 'red' },
geometry: {
"coordinates": [0, 0],
type: "Point",
}
}
const geojson2 = {
type: "Feature",
properties: { foo: 'red' },
geometry: {
type: "Point",
"coordinates": [10, 10],
}
}
map.on('load', () =>
map.addLayer({
id: 'points',
type: 'circle',
source: {
type: 'geojson',
data: geojson,
}
}).addLayer({
id: 'points-conditionnal',
type: 'circle',
source: {
type: 'geojson',
data: geojson2,
},
paint: {
'circle-color': ['get', 'foo'],
}
})
)
</script>
</body>
</html> |
Could be a driver issue. In that case, you need to report this upstream. Maybe try running https://registry.khronos.org/webgl/sdk/tests/webgl-conformance-tests.html |
I narrowed down the error to mesa. On archlinux, 24.0.8-1 is ok, while 24.1.0-1 is buggy. @derEremit what is your GPU and what is the installed version of mesa on your system? If you are in a similar situation to mine, I suppose this ticket could be closed Update: using mesa from git the problem disapears :) |
Thank you @derEremit and @Tristramg for reporting this, I have the same issue on Fedora. Got it temporary working by downgrading the mesa driver to version 24.0.5
|
I experienced the same issue on Fedora 40. I have an AMD Ryzen 7 PRO 4750U CPU with an integrated AMD Radeon RX Vega 7 GPU. Thanks for tracking this down! Downgrading |
Anybody understand why this fixes this issue? |
Fixes: maplibre#4062 See discussion here: maplibre#4402 (reply in thread)
Fixes: maplibre#4062 See discussion here: maplibre#4402 (reply in thread)
Fixes: maplibre#4062 See discussion here: maplibre#4402 (reply in thread)
Is this reported upstream? I am having this happen on the jsfiddle example with |
@elevenchars No. While it eats at my engineering soul, I wasn't willing to put the time/effort into developing an easily reproducible test case for a bug report. I have a plausible theory, but it remains untested. If you are interested, I'd be happy to discuss my findings and offer some direction if you want to get to the bottom of this mystery. I'd love that... but it's not going to be easy. |
I tested today after I updated and it's fixed for me on |
I think the geojson circle layer is broken.
I was just starting out with maplibre and after breaking my head for a few days I realized:
it is also broken on this example page:
https://maplibre.org/maplibre-gl-js/docs/examples/multiple-geometries/
the polygon / fill is shown, the point / circle is not
if I change the type to symbol
like in the "point" example
https://maplibre.org/maplibre-gl-js/docs/examples/geojson-markers/
the point geometries are shown as icons
The text was updated successfully, but these errors were encountered: