Open edutucci opened 5 years ago
hey,edutucci , i have the same error ,and just add ref can resolve this problem:
<l-map ref="map" ></l-map>
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
Example working:
l-map( style="height: 85vh; width: 100%;" ref="map" ) l-draw-toolbar(position="topleft") l-tile-layer(:url="url")Example not working:
q-page .row.shadow-2 col l-map( style="height: 85vh; width: 100%;" ref="map" ) l-draw-toolbar(position="topleft") l-tile-layer(:url="url")
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")