Skip to content

dhdemerson/ember-leaflet-iiif-tile-layer

Repository files navigation

ember-leaflet-iiif-tile-layer

This is a wrapper library for Leaflet-iiif for use with ember-leaflet.

Installation

ember install ember-leaflet

ember install ember-leaflet-iiif-tile-layer

Usage

Template

{{#leaflet-map lat=0 lng=0 zoom=0 crs=crs}}
    {{iiif-tile-layer url="https://example.com/image/info.json"}}
{{/leaflet-map}}

Controller

export default Ember.Controller.extend({
    crs: L.CRS.Simple
});

If the map CRS is not set to L.CRS.Simple you will have a bad time and wonder why nothing works.

Options

See Leaflet-iiif

Example

{{iiif-tile-layer url="https://example.com/image/info.json" fitBounds=false}}

Running

Running Tests

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

Building

  • ember build

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

About

Wrapper library of leaflet-iiif for use with ember-leaflet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published