Necessarily Precedes Mischief
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

ember-leaflet-tiles-cache

0.1.1 • Public • Published

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/.

Install

npm i ember-leaflet-tiles-cache

DownloadsWeekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • avatar