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

Pixel Raw Projection #3890

Open
gunyakov opened this issue Mar 24, 2024 · 1 comment
Open

Pixel Raw Projection #3890

gunyakov opened this issue Mar 24, 2024 · 1 comment
Labels
enhancement New feature or request PR is more than welcomed Extra attention is needed

Comments

@gunyakov
Copy link

User Story

Maplibre work with pixels in the deep. All coordinates projected to pixels by projections. Map libre Become so powerfull, that Its possible to use as a game engine for map based games.
But problem, that its not possible to use RAW pixel projection system to put all models and interact with a map.
Leaflet have ability to use Pixel projection system, but maplibre cant do this out of the box.
It will be very good, if you will implement RAW pixel coord system like Leaflet has L.CRS.Simple :

A simple CRS that maps longitude and latitude into x and y directly. May be used for maps of flat surfaces (e.g. game maps). Note that the y axis should still be inverted (going from bottom to top). distance() returns simple euclidean distance.

Rationale

  • Ability to use maplibre as a map based web games will increase amount of users.
  • RAW pixel coord system isnt hard to implement, just need write projection module what will not make any projection in reality.
@HarelM
Copy link
Member

HarelM commented Mar 24, 2024

There is a globe branch with an initial projection implementation.
If you would like to consider implementing this it can be a great enhancement.

@HarelM HarelM added enhancement New feature or request PR is more than welcomed Extra attention is needed labels Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR is more than welcomed Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants