Giter VIP home page Giter VIP logo

Comments (6)

bungalow-bill avatar bungalow-bill commented on June 19, 2024

Looking at the Stamen reference, it looks pretty straightforward. Try this:

leaflet() %>% addTiles('http://{s}.tile.stamen.com/toner/{z}/{x}/{y}.png',
                       attribution = paste(
                         'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, ',
                         'under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. ',
                         'Data by <a href="http://openstreetmap.org/">OpenStreetMap</a>, ',
                         'under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.'
                       )
)

from leaflet.

pssguy avatar pssguy commented on June 19, 2024

@bungalow-bill Thanks for this

Is there also a way to use googleMaps
I imagine often the raw lat/lons will have been obtained via the google API using ggmap or RgoogleMaps and then, I believe, you are legally supposed to use their map as the tiles

from leaflet.

bungalow-bill avatar bungalow-bill commented on June 19, 2024

@pssguy, there is a way to use googleMaps, but it requires a plugin - something I don't know how to use with htmlwidgets yet

If you just want satellite imagery or other tile sources, you should look at the examples here. Using the example I gave above, it is fairly straightforward to see how these other services can be used.

from leaflet.

hadley avatar hadley commented on June 19, 2024

@sebastianbarfort another option is to use a different geolocation service, e.g. https://github.com/trestletech/rydn

from leaflet.

sebastianbarfort avatar sebastianbarfort commented on June 19, 2024

thanks @hadley, I'll look into it.
@bungalow-bill your solution worked fine for what I wanted to do. Thanks for providing this.

from leaflet.

efh0888 avatar efh0888 commented on June 19, 2024

Did the plugin for Google Maps get incorporated?

from leaflet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.