Git Product home page Git Product logo

Comments (5)

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

r-spatial/mapview#349 also contains a link to an issue opened with the markdown people...

from leaflet.extras2.

trafficonese avatar trafficonese commented on June 1, 2024 1

Hey, indeed thats very interesting, but I am not sure if that is really a leaflet.extras2 bug. It seems that Tiles on a certain pane dont work.
Removing all leaflet.extras2 code, the problem still appears.

---
title: "demo_01"
output: html_document
---

```{r}
library(sp)
library(leaflet)

leaflet(quakes) %>%
  addMapPane("right", zIndex = 0) %>%
  addTiles(group = "base", layerId = "baseid",
           options = pathOptions(pane = "right"))
```

from leaflet.extras2.

trafficonese avatar trafficonese commented on June 1, 2024

Great, thank you @tim-salabim , I knew that issue came up already somewhere, but didnt remember where.

from leaflet.extras2.

csaybar avatar csaybar commented on June 1, 2024

Thanks @trafficonese and @tim-salabim for your clues ✌️ ✌️. Finally I was able to solve the problem ... partially. Unfortunately, my knowledge in JS is limited to fully understand the problem, but it seems that there is a conflict between leaflet-side-by-side and this line of code in markdown.
https://github.com/rstudio/rmarkdown/blob/433e726ff5aee9cd14a285f756af814c44929c8d/inst/rmd/h/default.html#L212

If I remove it, leaflet.extra2 and mapview will work perfectly! :)

https://github.com/csaybar/rmarkdown/blob/193047afab503399f57c414bad30054c39e1ebcd/inst/rmd/h/default.html#L213

See this reproducible example:

Install rmarkdown

remotes::install_github("csaybar/rmarkdown")

** Run the demo **
sidebar.Rmd.zip

image

Any idea how to finally solve this bug 🐛?

from leaflet.extras2.

trafficonese avatar trafficonese commented on June 1, 2024

This should work now with the current dev version of leaflet, thanks to this PR rstudio/leaflet#770

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.