File tree 2 files changed +5
-3
lines changed 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ pageClass: example-page
8
8
<template >
9
9
10
10
<div style =" height : 500px ; width : 100% " >
11
- <div style="height: 200px overflow: auto;">
11
+ <div style="height: 200px; overflow: auto;">
12
12
<p>First marker is placed at {{ withPopup.lat }}, {{ withPopup.lng }}</p>
13
13
<p>Center is at {{ currentCenter }} and the zoom is: {{ currentZoom }}</p>
14
14
<button @click="showLongText">
Original file line number Diff line number Diff line change @@ -92,8 +92,10 @@ export default {
92
92
93
93
mounted () {
94
94
this .parentContainer = findRealParent (this .$parent );
95
-
96
- propsBinder (this , this .$parent .mapObject , this .$options .props );
95
+ if (! this .parentContainer ) {
96
+ throw new Error (' No parent container with mapObject found for LIcon' );
97
+ }
98
+ propsBinder (this , this .parentContainer .mapObject , this .$options .props );
97
99
98
100
this .observer = new MutationObserver (() => {
99
101
this .scheduleHtmlSwap ();
You can’t perform that action at this time.
0 commit comments