vue2-leaflet-draw icon indicating copy to clipboard operation
vue2-leaflet-draw copied to clipboard

Is it possible add property map to get map in any tag?

Open edutucci opened this issue 5 years ago • 2 comments

I have this tags in template and I got error: _this.$parent.$parent.$refs.map is undefined q-page .row.shadow-2 .col div(style="width: 100%; min-height: 30px; background-color: none;") l-map( style="height: 85vh; width: 100%;" ) l-draw-toolbar(position="topleft")

to work toolbar I have insert tag map after template like this div(style="width: 100%; min-height: 30px; background-color: none;") l-map( style="height: 85vh; width: 100%;" ) l-draw-toolbar(position="topleft")

edutucci avatar Jul 12 '19 18:07 edutucci

hey,edutucci , i have the same error ,and just add ref can resolve this problem: <l-map ref="map" ></l-map>

uct8086 avatar Aug 06 '19 13:08 uct8086

hey,edutucci , i have the same error ,and just add ref can resolve this problem: <l-map ref="map" ></l-map>

Sorry uct8086, but this is not my problem. I just forgot add ref in my examples. The problem is that we need add after template in vuejs. But I would like add using tags row and col too.

Example working:

Example not working:

edutucci avatar Aug 06 '19 16:08 edutucci