Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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'));
}
});