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

How easy would be to change the looking angle? #8

Open
stratosgear opened this issue May 2, 2019 · 2 comments
Open

How easy would be to change the looking angle? #8

stratosgear opened this issue May 2, 2019 · 2 comments

Comments

@stratosgear
Copy link

stratosgear commented May 2, 2019

Bear with me while I try to explain...

Some kind of angle where:

  • 0: The point of view would be at sea level
  • 45: Almost the point of view we have now
  • 90: Looking directly down on the map. That would be the least helpful of all values, as the lines would look almost parallel, with no elevation info.

But tweaking this param would allow you to better frame your points of interest.

@ColCarroll
Copy link
Owner

That's a good idea! I am a little nervous about tackling it myself, as I am afraid we'll accidentally build a 3d rendering engine, but probably something like https://en.wikipedia.org/wiki/Perspective_(graphical) would work. Right now, we use a grid and manually control the y offsets. If we did the math on how perspective works, we could change that as the y value gets closer to the top of the screen.

@anttimc
Copy link

anttimc commented Jun 19, 2021

Hi and thanks the authors for this cool package! I I played around with it a bit and happened to find this issue. By a simple linear scaling of x-values towards the top, I could add quite a satisfying illusion of perspective:

kuva

(the elevation data is from Finland, which is not included in the srtm data base apart from the very southern part, so I had to fetch it externally.)

I don't know about fixing the height to the perspective angle. It's conceptually different of what plot_map does currently, so maybe it should be a new function itself (+ some refactoring of the current code, so definitely it could be relatively big feature).

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

No branches or pull requests

3 participants