how to use maplibre for cartesian coordinates and "flat planes" #6081
Unanswered
dberardo-com
asked this question in
Q&A
Replies: 1 comment
-
I would advise to use an |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
inspired by #1228
in my use case i am trying to use maplibre (in react) to create a white board for the users. users can drag and drop items on the board and those will be saved on some x,y coordinates. users can zoom in/out on the board and and filter layers, group items together, etc.
the problem i am currently facing is that items' distance is not maintained during zoom.
I am placing HTML/png items on a symbol layer like it follows and i am also experimenting with markers, but without success:
as you can see above, in order to preserve items' distance during zooming i had to use offsets, but this is really cumbersome to work with. i have tried the 2 built-in projections as well but no success.
markers also behave badly, so i might have to use another symbol layer instead, with the same offset logic.
i would like to know if i am on the right path or if there is a smarter way to deal with this issue.
Beta Was this translation helpful? Give feedback.
All reactions