Skip to content

Commit

Permalink
fix pouchdb issues within leaflet.tilelayer.pouchdbcached
Browse files Browse the repository at this point in the history
use this PR as the new leaflet.tilelayer.pouchdbcached MazeMap/Leaflet.TileLayer.PouchDBCached#32
  • Loading branch information
schloerke committed Mar 19, 2018
1 parent 89a876a commit 6755ffc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions R/TileLayer.PouchDBCached.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ tileLayer.PouchDBCachedDependency <- function() {
# )
# )
list(
# // "pouchdb": "6.4.3",
html_dep_prod("pouchdb", "6.4.3"),
# // "leaflet.tilelayer.pouchdbcached": "0.3.0",
# // "pouchdb-browser": "6.4.3",
html_dep_prod("pouchdb-browser", "6.4.3"),
# // "leaflet.tilelayer.pouchdbcached": "nikolauskrismer/Leaflet.TileLayer.PouchDBCached#a92b176",
html_dep_prod("leaflet-tilelayer-pouchdbcached", "0.3.0")
)
}
Expand All @@ -24,7 +24,7 @@ tileLayer.PouchDBCachedDependency <- function() {
#' \dontrun{
#' leaflet() %>%
#' enableTileCaching() %>%
#' addTiles(options=tileOptions(useCache=TRUE,crossOrigin=TRUE))
#' addTiles(options = tileOptions(useCache = TRUE, crossOrigin = TRUE))
#' }
enableTileCaching <- function(map) {
map$dependencies <- c(map$dependencies, tileLayer.PouchDBCachedDependency())
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"leaflet-webgl-heatmap": "0.2.7",
"leaflet.gridlayer.googlemutant": "^0.6.4",
"leaflet.heat": "0.2.0",
"leaflet.tilelayer.pouchdbcached": "0.3.0",
"pouchdb": "6.4.3",
"leaflet.tilelayer.pouchdbcached": "nikolauskrismer/Leaflet.TileLayer.PouchDBCached#a92b176",
"pouchdb-browser": "6.4.3",
"togeojson": "0.16.0",
"topojson": "3.0.2"
},
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ const config = [
library_prod(lib_path + "heat/leaflet-heat.js", "leaflet-heat"),
// library_binding("leaflet-heat"),

// "pouchdb": "6.4.3",
// "leaflet.tilelayer.pouchdbcached": "0.3.0",
library_prod("pouchdb", "pouchdb", "PouchDB"),
// "pouchdb-browser": "6.4.3",
// "leaflet.tilelayer.pouchdbcached": "nikolauskrismer/Leaflet.TileLayer.PouchDBCached#a92b176",
library_prod("pouchdb-browser/lib/index.js", "pouchdb", "PouchDB"),
library_prod("leaflet.tilelayer.pouchdbcached", "leaflet-tilelayer-pouchdbcached"),

// napa tallsam/Leaflet.weather-markers#afda5b3:leaflet-weather-markers
Expand Down

0 comments on commit 6755ffc

Please sign in to comment.