Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import EmberObject, { get, set } from '@ember/object';
import LeafletMap from 'ember-leaflet/components/leaflet-map';
//import uuidV4 from 'uuid/v4';
/* global L */
export default LeafletMap.extend({
L,
leafletOptions: ['drawControl'],
leafletEvents: [
'draw:editstart',
'draw:editstop',
'draw:deletestart',
'draw:deletestop',
'draw:deleted',
'draw:editmove'
],
//drawControl:false,
maxZoom: 18,
minZoom: 1,
maxBounds: L.latLngBounds(L.latLng(-90, -360), L.latLng(90, 360)),
maxBoundsViscosity: 0.2,
worldCopyJump: true,