Merge branch 'master' into leaflet-upgrade

This commit is contained in:
Dave Conway-Jones 2019-04-21 18:42:11 +01:00
commit 1bce76b1c2
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4

View File

@ -841,7 +841,7 @@ map.on('draw:created', function (e) {
var layer = e.layer;
//console.log(type, layer._latlngs);
//console.log(JSON.stringify(layer.toGeoJSON()));
ws.send(JSON.stringify({action:"draw" type:type, points:layer._latlngs}));
ws.send(JSON.stringify({action:"draw", type:type, points:layer._latlngs}));
layers["_drawing"].addLayer(layer);
});