@@ -95,14 +95,14 @@ export default {
95
95
propsBinder (this , null , this .$options .props );
96
96
97
97
this .observer = new MutationObserver (() => {
98
- this .createIcon ();
98
+ this .createIcon (' html slot ' );
99
99
});
100
100
this .observer .observe (
101
101
this .$el ,
102
102
{ attributes: true , childList: true , characterData: true , subtree: true }
103
103
);
104
104
105
- this .createIcon ();
105
+ this .createIcon (' initial ' );
106
106
},
107
107
108
108
beforeDestroy () {
@@ -114,8 +114,8 @@ export default {
114
114
},
115
115
116
116
methods: {
117
- createIcon () {
118
- console .log (Date .now () + ' - recreate ' + this .tempName );
117
+ createIcon (reason ) {
118
+ console .log (Date .now () + ' - recreate ' + this .tempName + ' ( ' + reason + ' ) ' );
119
119
120
120
if (this .iconObject ) {
121
121
L .DomEvent .off (this .iconObject , this .$listeners );
@@ -149,40 +149,40 @@ export default {
149
149
this .parentContainer .mapObject .setIcon (this .iconObject );
150
150
},
151
151
setIconUrl () {
152
- this .createIcon ();
152
+ this .createIcon (' iconUrl ' );
153
153
},
154
154
setIconRetinaUrl () {
155
- this .createIcon ();
155
+ this .createIcon (' iconRetinaUrl ' );
156
156
},
157
157
setIconSize () {
158
- this .createIcon ();
158
+ this .createIcon (' iconSize ' );
159
159
},
160
160
setIconAnchor () {
161
- this .createIcon ();
161
+ this .createIcon (' iconAnchor ' );
162
162
},
163
163
setPopupAnchor () {
164
- this .createIcon ();
164
+ this .createIcon (' popupAnchor ' );
165
165
},
166
166
setTooltipAnchor () {
167
- this .createIcon ();
167
+ this .createIcon (' tooltipAnchor ' );
168
168
},
169
169
setShadowUrl () {
170
- this .createIcon ();
170
+ this .createIcon (' shadowUrl ' );
171
171
},
172
172
setShadowRetinaUrl () {
173
- this .createIcon ();
173
+ this .createIcon (' shadowRetinaUrl ' );
174
174
},
175
175
setShadowAnchor () {
176
- this .createIcon ();
176
+ this .createIcon (' shadowAnchor ' );
177
177
},
178
178
setBgPos () {
179
- this .createIcon ();
179
+ this .createIcon (' bgPos ' );
180
180
},
181
181
setClassName () {
182
- this .createIcon ();
182
+ this .createIcon (' className ' );
183
183
},
184
184
setHtml () {
185
- this .createIcon ();
185
+ this .createIcon (' html ' );
186
186
}
187
187
},
188
188
0 commit comments