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

Request: additional tiles #19

Open
baslat opened this issue Aug 17, 2022 · 0 comments
Open

Request: additional tiles #19

baslat opened this issue Aug 17, 2022 · 0 comments

Comments

@baslat
Copy link

baslat commented Aug 17, 2022

Hello, thanks for making this package. I primarly use it via {ggspatial} for base layers. I would find it useful if there were a couple of additional tile styles available, namely no-label and only-label tiles for carto light. I think adding the following code to tileurl.R should do the trick; would you please consider adding it or accepting a PR for it? Thanks!

cartolight_nolabels = source_from_url_format(
	url_format = "http://a.basemaps.cartocdn.com/light_nolabels/${z}/${x}/${y}.png",
	attribution = "Map tiles by Carto, under CC BY 3.0. Data by OpenStreetMap, under ODbL."
  ),
cartolight_onlylabels = source_from_url_format(
	url_format = "http://a.basemaps.cartocdn.com/light_only_labels/${z}/${x}/${y}.png",
	attribution = "Map tiles by Carto, under CC BY 3.0. Data by OpenStreetMap, under ODbL."
)
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