Added confirm

This commit is contained in:
vjrj 2017-12-20 12:59:25 +01:00
parent 9e5fc1baba
commit 7a672bca87
7 changed files with 159 additions and 26 deletions

View file

@ -38,7 +38,7 @@ const subsUnion = (union, options) => {
const fillColor = options.fillColor || 'green';
const opacity = options.options || 0.1;
if (options.subs.length > 0) {
if (options.subs) {
const lmap = options.map.leafletElement;
// http://leafletjs.com/reference-1.2.0.html#layergroup
// FeatureGroup has getBounds
@ -49,7 +49,7 @@ const subsUnion = (union, options) => {
}
union = null;
if (options.show) {
if (options.subs.length > 0 && options.show) {
// http://leafletjs.com/reference-1.2.0.html#path
const copts = {
parts: 144