-
Notifications
You must be signed in to change notification settings - Fork 91
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
mapview() mixes non-spatial tables into a single layer #451
Comments
Hi, non-spatial objects are handled a bit differently and are not a high priority in general. You can set mapview(gbif1, xcol = "lon", ycol = "lat", col.regions = "blue", crs = "epsg:4326", layer.name = "gbif1") +
mapview(gbif2, xcol = "lon", ycol = "lat", col.regions = "red", crs = "epsg:4326", layer.name = "gbif2") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to plot two separate non-spatial tables, mapview() seems to combine them into a single layer, and the map doesn't allow telling them apart. Here's a reproducible example using two small GBIF datasets downloaded with the 'geodata' package:
The two layers are properly mapped separately if they're previously converted to spatial objects:
Cheers!
The text was updated successfully, but these errors were encountered: