Comments (5)
@marcusyoung, Regex considers "_" to be an alphanumeric character which is why it was not being cleansed for use with the javascript functionality.
from leaflegend.
When I first read this thread I thought that was the issue and changed the group name just to a string with no special characters or spaces. Unfortunately that did not fix the problem.
from leaflegend.
I can't reproduce that error. Changing underscore to "*" or removing all together both works for me.
from leaflegend.
from leaflegend.
When I first read this thread I thought that was the issue and changed the group name just to a string with no special characters or spaces. Unfortunately that did not fix the problem.
I isolated with this (on the "dev" branch now).
library(shiny)
library(leaflet)
library(leaflegend)
data(quakes)
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
checkboxInput('check', 'Show/Hide', value = TRUE)
),
mainPanel(
leaflet::leafletOutput('map')
)
)
)
server <- function(input, output) {
output$map <- leaflet::renderLeaflet({
binPal <- colorBin('Set1', quakes$mag)
leaflet() %>%
addTiles() %>%
addMarkers(data = quakes, group = 'mg_aadf_edges') %>%
addLegendBin(
pal = binPal,
values = quakes$mag,
position = 'bottomleft',
title = 'addLegendBin',
group = 'mg_aadf_edges'
) %>%
addLayersControl(overlayGroups = c('mg_aadf_edges'),
position = 'bottomright'
)
})
observe({
if (input$check) {
leafletProxy('map') |>
showGroup('mg_aadf_edges')
} else {
leafletProxy('map') |>
hideGroup('mg_aadf_edges')
}
})
}
shinyApp(ui = ui, server = server)
from leaflegend.
Related Issues (20)
- Add Symbols List to Readme
- group layer functionality for addLegendImage not working HOT 14
- Add Line Weight Size Legend HOT 5
- icons not rendering in addLegendAwesomeIcon() HOT 1
- Add "addSymbols" and "addSymbolsSize" HOT 1
- Add leaflet recipes sheet HOT 1
- Columns in Legend HOT 2
- adjust labels of addLegendSize HOT 9
- Add NA to addLegendNumeric and ability to override labels HOT 1
- labels for addLegendFactor throw error HOT 3
- Adding argument to change the 'between' in legends HOT 5
- support for dashed lines in leaflet legend HOT 3
- New feature to have Stacked or nested bubbles sizeson legend when plotting bubbles in tmap HOT 1
- Group names not unique over many maps - addLayersControl gets confused in Quarto HOT 2
- Horizontal addLegendNumeric Has Poor Alignment Between Gradient and Labels HOT 6
- Bins function does not work properly HOT 9
- Change label format of addLegendQuantile() ? HOT 2
- Unwanted extra icon in legend HOT 1
- Add control on min and max size of symbols HOT 2
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 leaflegend.