Skip to content

Add a "square" or "rectangle" layer type #13456

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

Open
BSoD38 opened this issue Apr 17, 2025 · 1 comment
Open

Add a "square" or "rectangle" layer type #13456

BSoD38 opened this issue Apr 17, 2025 · 1 comment

Comments

@BSoD38
Copy link

BSoD38 commented Apr 17, 2025

Motivation

We are using mapbox GL JS to display a rather large dataset of about 100,000 GeoJSON points. It is very performant when displayed with a circle layer. For design and UX reasons, we wanted to switch to a symbol layer using sprites for square icons, but it struggles heavily when displaying such a large dataset. We switched back to the circle layer for now.

My team was wondering if it would be possible to have something like a square or rectangle layer, so that each point is displayed as a square with about the same level of customizability and rendering performance as the circle layer.

Design

The design and usage would be relatively similar as the circle layer, but it would display each point of the dataset as squares instead. The advantages and drawbacks would be more or less the same as the circle layer, but would allow for more versatile maps with more varied ways to display dense data.

It could include extra paint properties specific to squares/rectangles such as border radius or rotation angle.

@underoot
Copy link
Member

Hey, @BSoD38. It's quite an uncommon scenario, I guess: render such a large dataset without any clustering. I searched that the almost similar that was requested several years ago #10931

So, I'm interested to hear a bit more about your use case. How do you represent a large number of items on low zoom level and what is the specific reason do not using clustering, i.e.?

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

No branches or pull requests

3 participants