How to use the ember-leaflet/components/tile-layer.extend function in ember-leaflet

To help you get started, we’ve selected a few ember-leaflet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github miguelcobain / ember-leaflet / addon / components / wms-tile-layer.js View on Github external
import TileLayer from 'ember-leaflet/components/tile-layer';

export default TileLayer.extend({

  leafletOptions: Object.freeze([
    'layers', 'styles', 'format', 'transparent', 'version', 'crs'
  ]),

  createLayer() {
    return this.L.tileLayer.wms(...this.get('requiredOptions'), this.get('options'));
  }

});