Comments (7)
Uh - when there's time, why not... :-)
from leafletr.
That would be awesome! I tried to figure out how to incorporate the additional functionality within your brew files but soon realized that my lack of expertise in Javascript/HTML (Leaflet in particular) was going to present some pretty large hurdles. Thanks for bridging the gap for R programmers 👍
from leafletr.
By the way, what do you want to do exactly? As leafletR is for visualizing your (R-) data, what shall the labels show - properties of the data, like a mouseover-popup? Or do you want to add extra markers/shapes with labels?
from leafletr.
Primarily, the former; I'd love to be able to choose either a static label or mouseover-popup and add that to an existing layer.
from leafletr.
+1 for the ability to add extra markers/shapes with labels!
It would be useful for adding static identification information to maps when the mouse-over popup is already dedicated to revealing other information.
For example, I'm creating a map of census data which shows a choropleth at the tract level. I'm utilizing mouse-over popup to provide detailed information about each individual census tract. However, when the viewer is zoomed out it would be useful to clearly identify the different counties – that's where this static label feature would help me out.
Thanks for the great package!
from leafletr.
Hi @onehundredpercenttexan and @tiernanmartin,
I put some work into this and now you can use labels.
library(leafletR)
dat <- toGeoJSON(data=quakes[1:10,], dest=tempdir())
map <- leaflet(data=dat, dest=tempdir(), popup="stations", label="mag")
map
Unfortunately it does not work with lines and polygons. Seems to be a problem of the plugin. Mayby @jacobtoye can tell us, whether Leaflet.label works with GeoJSON-polygons loaded via query.
Christian
from leafletr.
I close this for now...
from leafletr.
Related Issues (20)
- feature using basemap list as 'background' map no longer working? HOT 2
- What is the difference to other leaflet-R packages? HOT 3
- Displaying leafletR generated map (html) in Shiny HOT 2
- Bug: leaflet() Zoom & center not working if parameter "data" is undefined HOT 2
- Customizing: multiple styles for one dataset HOT 1
- styleGrad with mutliple layers HOT 2
- toGeoJSON create a big size file, is it ok? HOT 1
- lexical error: invalid bytes in UTF8 string HOT 4
- deprecated use of install_github HOT 1
- Travis Builds HOT 3
- Error if 'title' contains certain non alphanumeric characters HOT 1
- Map Layer showing as grey HOT 2
- Adding Markers, Circles, etc. HOT 4
- Addin logos, watermarks or images to html maps HOT 1
- Empty map with styleSingle HOT 3
- How to set color and radius at the same time? HOT 1
- Failed to load resource: net::ERR_NAME_NOT_RESOLVED HOT 1
- Loading GeoJSON file(s) locally fails due to CORS error
- Base maps need an update
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 leafletr.