-
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
selectFeatures draws on world map even if crs = NA (for mode = "click" only) #110
Comments
@tim-salabim I think the only difference is in lines for |
I'll look into this soon. We simply need to adhere to the crs of the data, should be an easy fix |
OK, this is fixed and merged in master |
@tim-salabim thanks! do we also need the change here Line 107 in 8328411
|
@timelyportfolio no, the |
@tim-salabim after This was the only issue from Thanks! |
Turns out, we're handling this correctly, as we can only allow editing if projection is 4326 (longlat). So we reproject if data is in different projection or through a descriptive error if no projection information is present. I just tested on winbuilder (R-devel-ATC, normal R-devel wasn't accepting upload) and status is OK. See https://win-builder.r-project.org/B54RObZ26z92/ for details (only valid for about 72hrs). Likely not for the next CRAN release of mapedit but I will also investigate whether it makes sense to export |
When using
selectFeatures
with sf features with no crs (i.e. NA) onlymode = "draw"
renders the features correctly without a background map.mode = "click"
tries to plot things on a world map in web mercator. Should behave asmode = "draw"
The text was updated successfully, but these errors were encountered: