-
Notifications
You must be signed in to change notification settings - Fork 32
Allow hexadecimal colors (with opacities) and contextmenu #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…ivity, hoverWait, etc), expose mouseover to Shiny, dont reassign ...
…d "clearGlGroup", set active = TRUE/FALSE when hiding/showing, refactor docs
…sts for popup = FALSE
Merge branch 'fixlabels' of https://github.com/trafficonese/leafgl into fixlabels # Conflicts: # DESCRIPTION
…), use Leaflet.glify 3.3.1
… respected until now.. fix color tests, since hexcolors are not encoded to a color-matrix anymore
The additional arguments to But in general, I am not sure about the *Src functions. @tim-salabim Do you have any benchmarks where they are much faster? |
This PR is based on #95 and also uses the latest Leaflet.Glify version 3.3.1.
It is now possible to use hex-colors. The hex-colors can also have different opacities (depending on a variable) so it addresses #2.
The different opacities only work for Polygons and Points. Lines do still have some bug..
The new version also allows for the creation of a contextmenu / right-clicks. addresses #79
Unfortunately it is not compatible with leaflet.extras2::contextmenu.
But with some JS knowldge one can create his own menues. I included an example with hex-colors, opacities and different contextmenues for shapes/lines and points in
/inst/examples/contextmenu.R