Git Product home page Git Product logo

Comments (4)

tim-salabim avatar tim-salabim commented on June 1, 2024 1

Here's a simple reprex:

library(leafem)
#> Warning: replacing previous import 'vctrs::data_frame' by 'tibble::data_frame'
#> when loading 'dplyr'
library(leaflet)
## default position is topleft next to zoom control
img <- "https://cdn.pixabay.com/photo/2013/07/12/17/54/arrow-152596_960_720.png"

leaflet() %>% 
  addTiles() %>% 
  addLogo(img)

Created on 2020-11-13 by the reprex package (v0.3.0)

from leaflet.extras2.

MaelTheuliere avatar MaelTheuliere commented on June 1, 2024 1

Thanks @trafficonese and @tim-salabim. I think leafem :: addLogo will do the job ! If I find some time to make a PR with L.Control.Rose, I will let you know.

from leaflet.extras2.

tim-salabim avatar tim-salabim commented on June 1, 2024

@MaelTheuliere you could try to use leafem::addLogo for this porpose (sorry that I didn't mention it in the other issue) if you can find a suitable north_arrow.png

from leaflet.extras2.

trafficonese avatar trafficonese commented on June 1, 2024

Hey @MaelTheuliere I think that leafem :: addLogo works well for this task and also allows you to define your custom image while the plugin only offers ~7 different .svg files.

On the other hand, this plugin should be pretty easy to implement. If you want to try it out, I would of course be happy about a PR.

from leaflet.extras2.

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.