From ea077c175fc6adf6e59c48c7eec359bf2a6f6268 Mon Sep 17 00:00:00 2001 From: Christian Mayer Date: Tue, 24 Apr 2018 15:47:09 +0200 Subject: [PATCH] Introduce 'Mapable' mixin This adds a mixin 'Mapable', which can be used to bind the OpenLayers map instance to any component. --- src/components/layerlist/LayerList.vue | 21 ++++++++------------- src/components/measuretool/MeasureWin.vue | 22 +++++++++------------- src/mixins/Mapable.js | 20 ++++++++++++++++++++ 3 files changed, 37 insertions(+), 26 deletions(-) create mode 100644 src/mixins/Mapable.js diff --git a/src/components/layerlist/LayerList.vue b/src/components/layerlist/LayerList.vue index 7906743f..7dd01b9c 100644 --- a/src/components/layerlist/LayerList.vue +++ b/src/components/layerlist/LayerList.vue @@ -24,14 +24,14 @@