Closed jalazawa closed 6 years ago
I tried also addMinicharts and this function works with leaflet 2.0.0 (the new one)
library(leaflet)
library(magrittr)
library(leaflet.minicharts)
mymap <- leaflet() %>% addTiles() %>% addMinicharts(0, 0, chartdata = 1:3, layerId = "c1")
mymap
mymap %>% updateMinicharts("c1", maxValues = 6)
mymap %>% updateMinicharts("c1", type="pie")
C'est ok, et a priori pour les deux versions du package leaflet
.
Modification apportée dans ici https://github.com/rte-antares-rpackage/leaflet.flow/tree/leaflet_1.3.1
Et package R recompilé ici https://github.com/rte-antares-rpackage/leaflet.minicharts/tree/leaflet_2.0.0
Dans l'idéal, il faudra pousser leaflet.flow
avec npm
(cf mail françois)
OK
I received this mail
When I test plotMap with the previous version --> OK
result
Now with the new version
result (no addin in the map)
But, the problem is not in antaresViz, I think it's related with leaflet.minichart.
I tried examples of
addFlows
with the previous version, it's ok with the new one it's KOAnd maybe, the problem is in the lib js leaflet.minichart
https://github.com/rte-antares-rpackage/leaflet.minichart