how to use maplibre for cartesian coordinates and "flat planes" #6081
Replies: 3 comments
-
|
I would advise to use an |
Beta Was this translation helpful? Give feedback.
-
|
Have you tried setting the 'flat' map option You said you "tried the 2 built-in projections", but I wonder if that was Your example sets |
Beta Was this translation helpful? Give feedback.
-
|
@dberardo-com might be relevant for you: |
Beta Was this translation helpful? Give feedback.
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