Comments (5)
r-spatial/mapview#349 also contains a link to an issue opened with the markdown people...
from leaflet.extras2.
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.
Great, thank you @tim-salabim , I knew that issue came up already somewhere, but didnt remember where.
from leaflet.extras2.
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! :)
See this reproducible example:
Install rmarkdown
remotes::install_github("csaybar/rmarkdown")
** Run the demo **
sidebar.Rmd.zip
Any idea how to finally solve this bug 🐛?
from leaflet.extras2.
This should work now with the current dev version of leaflet, thanks to this PR rstudio/leaflet#770
from leaflet.extras2.
Related Issues (20)
- awesomeIcons in addMovingMarker for direction HOT 7
- New Feature Request : Leaflet Pattern HOT 1
- Sidebar v2 working with crosstalk HOT 4
- Using CQL or OGC filters on addWMS() HOT 2
- addArrowhead function not rendering HOT 4
- addEasyprint does only export the top part of a map for "Current Size" HOT 3
- Overlaying sidebar using shinydashboard and addSidebar HOT 13
- Spinner does not appear in Shiny application HOT 6
- "addHexbin" in leaflet.extras2 doesn't allow for mean/sum HOT 2
- addVelocity not work HOT 1
- addWMS with interactive options HOT 1
- Changing the moveable marker icons and colours in addPlayback() HOT 6
- addWMS - authentication for title layer HOT 2
- addWMS() does not hide the attribution when corresponding group is hidden HOT 2
- Release leaflet.extras2 1.2.1
- addSidebar causing issues if multiple leaflet maps are in one R shiny app HOT 6
- Feature Request: Function to Recolor Polygons in Shiny without Redrawing them HOT 2
- airDatePickerInput (ShinyWidgets) not rendering properly in leaflet sidebar menu HOT 1
- Release leaflet.extras2 1.2.2
- Integrating GetLegendGraphic from Geoserver WMS Layers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaflet.extras2.