Added editing shapes

This commit is contained in:
Zakary Timson 2019-08-25 11:09:31 -04:00
parent 5044531bd6
commit 3c0020450f
3 changed files with 1948 additions and 1 deletions

View File

@ -38,6 +38,7 @@
"./node_modules/leaflet-openweathermap/leaflet-openweathermap.js",
"./node_modules/leaflet-rotatedmarker/leaflet.rotatedMarker.js",
"./node_modules/esri-leaflet/dist/esri-leaflet.js",
"./src/assets/js/leaflet.Editable.js",
"./node_modules/jquery/dist/jquery.js"
]
},

View File

@ -36,7 +36,7 @@ export class MapService {
map;
constructor(private elementId: string) {
this.map = L.map(elementId, {attributionControl: false, tap: true, zoomControl: false, maxBoundsViscosity: 1, doubleClickZoom: false}).setView({lat: 0, lng: 0}, 10);
this.map = L.map(elementId, {attributionControl: false, editable: true, tap: true, zoomControl: false, maxBoundsViscosity: 1, doubleClickZoom: false}).setView({lat: 0, lng: 0}, 10);
this.map.on('click', (e) => this.click.next({event: e}));
this.setMapLayer();
}

File diff suppressed because it is too large Load Diff