Tmap: Clearly specify which version of leafletjs is being used (Upgrade plans from v0.7.7?)

Created on 7 Feb 2018  路  2Comments  路  Source: mtennekes/tmap

The "interactive map" version of tmap uses an older version of the Leaflet Javascript Library.
When I execute this javascript command in the Chrome developer tools, I get

// today is: 2018-02-06
L.version
"0.7.7"

Current version is Leaflet 1.3.1 (Changelog) -
Leaflet version 0.7.7 is from 2015. It is still a reference version. So I can live with the older version.

Are there any plans to ship the upcoming tmap 2.0 release with a newer Leaflet release?

The tmap documentation also does not specify which leaflet version the save_tmap() functions puts into the standalone file it exports. The documentation here on Github should be improved in this respect. One or two sentences would suffice.

At this time, I am using

 tmap         * 1.11       2017-11-24 CRAN (R 3.4.3)                    
 tmaptools      1.2-2      2017-11-24 CRAN (R 3.4.3) 

Most helpful comment

AFAIK tmap uses library(leaflet) for interactive maps. Hence, the update needs to be made in the leaflet package, which already has a 1.x branch on github. At the time of this writing there are no clear indications as to when an update of the leafletjs base from 0.7.7 to 1.x will be made, but I have heard rumors that RStudio is going to contract someone soon for it.

Hope that clarifies a bit.

All 2 comments

AFAIK tmap uses library(leaflet) for interactive maps. Hence, the update needs to be made in the leaflet package, which already has a 1.x branch on github. At the time of this writing there are no clear indications as to when an update of the leafletjs base from 0.7.7 to 1.x will be made, but I have heard rumors that RStudio is going to contract someone soon for it.

Hope that clarifies a bit.

The leaflet package is now using the latest leaflet.js v1.3.1 - https://github.com/rstudio/leaflet/blob/master/NEWS.
Close?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marionowak picture marionowak  路  9Comments

robsalasco picture robsalasco  路  4Comments

jannes-m picture jannes-m  路  5Comments

PauGallesClara picture PauGallesClara  路  8Comments

jarsc568 picture jarsc568  路  8Comments