Ember wrapper of Leaflet.TileLayer.PouchDBCached
Switch branches/tags
Nothing to show
Clone or download
Latest commit 41115ff Jul 26, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
addon add blueprint to install Leaflet.TileLayer.PouchDBCached Jul 18, 2016
app add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
blueprints supress error 'command requires an entity name to be specified' Jul 20, 2016
config add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
tests use latest ember-leaflet Jul 26, 2016
vendor add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
.bowerrc add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
.editorconfig add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
.ember-cli add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
.gitignore add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
.jshintrc add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
.npmignore add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
.travis.yml update travis.yml Jul 20, 2016
.watchmanconfig add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
LICENSE.md add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016
README.md add badges to README Jul 20, 2016
bower.json acceptance tests Jul 20, 2016
ember-cli-build.js make basic test pass Jul 18, 2016
index.js make basic test pass Jul 18, 2016
package.json use latest ember-leaflet Jul 26, 2016
testem.js add events and options needed for Leaflet.TileLayer.PouchDBCached Jul 18, 2016

README.md

ember-leaflet-tiles-cache Build Status npm version

This addon extends ember-leaflet 2.0. It extends the {{tile-layer}} component to support tiles caching. It uses this leaflet extension to accomplish that.

Usage

tileOptions: {
  type: 'map',
  subdomains: '1234',
  ext: 'png',
  attribution: 'Map data © <a href="http://osm.org/copyright" target="_blank">OpenStreetMap</a> contributors',
  useCache: true // this enables tiles caching
}
{{#leaflet-map lat=51.512983 lng=-0.138289 zoom=12}}
  {{tile-layer url=tileUrl options=tileOptions}}
{{/leaflet-map}}

Installation

Run:

ember install ember-leaflet-tiles-cache

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.