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

Can't load polygon #31

Closed
1 task
robsalasco opened this issue Aug 16, 2018 · 4 comments
Closed
1 task

Can't load polygon #31

robsalasco opened this issue Aug 16, 2018 · 4 comments
Milestone

Comments

@robsalasco
Copy link

robsalasco commented Aug 16, 2018

Hi!

First, thank you for the package!! It's awesome!. I have problems with this shapefile
shape.zip I don't the reason why the polygon isn't loading. Can you help me?

test <- read_sf("test_shape.shp")
mapdeck(token = key, style = 'mapbox://styles/mapbox/dark-v9', pitch = 45 ) %>%
  add_polygon(data = test,
              layer = "test",
              fill_colour = "Bsc_PoP")

TODO

@robsalasco robsalasco changed the title Can't load map Can't load polygon Aug 16, 2018
@SymbolixAU
Copy link
Collaborator

Use sf::st_read() in stead of sf::read_sf()

@SymbolixAU
Copy link
Collaborator

I have an open issue about this in the googlePolylines package.

@robsalasco
Copy link
Author

Thank you @SymbolixAU !

@SymbolixAU
Copy link
Collaborator

From googlePolylines v0.6.2002 this now works

set_token("MAPBOX_TOKEN")
nc <- sf::read_sf(system.file("shape/nc.shp", package="sf"))

mapdeck() %>%
	add_polygon(
		data = nc
		, layer_id = "polys"
	)

@SymbolixAU SymbolixAU self-assigned this Aug 27, 2018
@SymbolixAU SymbolixAU added this to the v1.0 milestone Aug 27, 2018
@SymbolixAU SymbolixAU removed their assignment Jan 16, 2021
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