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

Problem when measuring distances in square kilometers #882

Open
Bryan1qr opened this issue Sep 14, 2023 · 0 comments
Open

Problem when measuring distances in square kilometers #882

Bryan1qr opened this issue Sep 14, 2023 · 0 comments

Comments

@Bryan1qr
Copy link

Bryan1qr commented Sep 14, 2023

Hello, I used the following code to be able to draw areas in km2:

library(leaflet)
library(tidyr)
library(leaflet.extras)

leaflet() %>% 
  addTiles() %>%
  addProviderTiles(
    providers$OpenStreetMap) %>% 
  addCircleMarkers(
    lng = -71.41, lat = -15.86) %>% 
  addMeasurePathToolbar(
    options = measurePathOptions(
      imperial = FALSE,
      showDistances = TRUE)) %>% 
  addDrawToolbar(
    targetGroup = "draws",
    editOptions = editToolbarOptions(
                   selectedPathOptions = selectedPathOptions()))

However, I see that when calculating areas in this unit of measurement it gives me a value 10 times larger than it should be. I think it's a package error.

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

1 participant