Mercurial > gemma
diff client/src/components/map/Map.vue @ 3165:891705431545
client: map zoom controls: each map has it's own independent contrls now
Of course if maps are synced, zooming one still effects the other one.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 06 May 2019 14:27:54 +0200 |
parents | b6cc4838d2c0 |
children | 286c2e3cc105 |
line wrap: on
line diff
--- a/client/src/components/map/Map.vue Mon May 06 13:33:19 2019 +0200 +++ b/client/src/components/map/Map.vue Mon May 06 14:27:54 2019 +0200 @@ -2,7 +2,9 @@ <div :id="'map-' + paneId" :class="['map', { nocursor: this.hasActiveInteractions }]" - /> + > + <Zoom :map="map" /> + </div> </template> <style lang="sass" scoped> @@ -47,6 +49,9 @@ /* eslint-disable no-console */ export default { mixins: [pane], + components: { + Zoom: () => import("@/components/Zoom") + }, data() { return { map: null,