-
Notifications
You must be signed in to change notification settings - Fork 33
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
Display non-geographical maps ala leafletjs #67
Comments
also asked the question in SO, there |
See also these two threads leaflet currently does not render raster images with arbitrary or no crs. In an early version of mapview we circumvented this with the approach you mention via scaling the coordinates to lie between 0 and 1. However, I agree that this is not a solution, especially for digitizing. mapview(r, native.crs = TRUE) |
Hi @tim-salabim and @timelyportfolio (me again!) With
|
This has been fixed recently, see r-spatial/mapview#111 devtools::install_github("r-spatial/mapview@develop") |
indeed! |
@timelyportfolio may I ping you to have your feeling about what @tim-salabim suggested? Cheers! |
Sure, feel free to ping me. Might be a little slower in responding over the holidays. Cheers! |
@timelyportfolio , that was a question, perhaps too politely asked ;-) |
Ok, I understand now. I very likely am headed down the wrong path, so feel free to set me straight.
Some code as a demonstration of the very little that I accomplished.
I know this isn't much, but maybe it will get us one step further towards something usable. |
Thanks a lot, that unlocks some key aspect of my problem ! I'll dig it further and let you know. |
Hi and thanks a lot for the awesome job here (and elsewhere).
I have no idea where to ask this question but I try here. Apologies if I should ask to
leaflet
for R or elsewhere.I have struggling hard and for long to develop a digitizing software for morphometrics. Long story short: it would be widely used and mapview/edit are more than starters.
One blocking aspect for this now is to properly display images using pixels coordinates. So far, I manage to display any image using
raster
withxmx
= 1 (and the ratio forymx
) but that's far from being clean (ie we need to retransform into pixels, scales are wrong, etc.).I would pretty much need what's described in the leafletjs doc for non-geographical maps. On the
leaflet()
side,L.CRS.Simple
seems to be the way to go, but, for such raster, we still need a projection. I have tried for a week and I nearly #made no progress. So, dear gurus, any idea how can we circumvent this problem and project an image (as a raster) in pixels coordinates and on a cartesian plan? A reproducible and minimal bit of code below if this may help.Thanks a lot for your time and skills
The text was updated successfully, but these errors were encountered: