Comments (1)
Just don't use addTiles()
or amap()
in leaflet
library(leaflet)
library(leafletCN)
dat = data.frame(regionNames("china"),
runif(34))
map = leafletGeo("china", dat)
pal <- colorNumeric(
palette = "Blues",
domain = map$value)
leaflet(map) %>%
# addTiles() %>%
addPolygons(stroke = TRUE,
smoothFactor = 1,
fillOpacity = 0.7,
weight = 1,
color = ~pal(value),
popup = ~htmltools::htmlEscape(popup)
) %>%
addLegend("bottomright", pal = pal, values = ~value,
title = "legendTitle",
labFormat = leaflet::labelFormat(prefix = ""),
opacity = 1)
from leafletcn.
Related Issues (15)
- 画**地图或者省份地图时,能不能只显示它自己不要多余部分? HOT 1
- regionNames("吉林“)always goes wrong HOT 4
- 更新leafletCN
- Title on two lines in addTitle()
- How to remove the legend when using geojsonMap?
- `rgeos` retiring in October 2023 HOT 3
- rgeo is too old too install
- Examples for 'leafletCN::geojsonMap' is wrong?
- require for example with mapview
- Raw Data Check
- 提示没有这个函数,(安装好了) HOT 3
- 加载leafletCN包后叠加高德地图时显示leaflet()函数不存在 HOT 2
- 能为demomap提供一个调opacity的参数吗
- ubuntu 安卓出错 /usr/bin/ld: cannot find -lgeos 不清楚怎么解决 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 leafletcn.