@@ -129,19 +129,19 @@ Symfony UX Map allows you to extend its default behavior using a custom Stimulus
129
129
connect () {
130
130
this .element .addEventListener (' ux:map:pre-connect' , this ._onPreConnect );
131
131
this .element .addEventListener (' ux:map:connect' , this ._onConnect );
132
- this .element .addEventListener (' ux:map:marker:before-create' , this ._onMarkerBeforeConnect );
132
+ this .element .addEventListener (' ux:map:marker:before-create' , this ._onMarkerBeforeCreate );
133
133
this .element .addEventListener (' ux:map:marker:after-create' , this ._onMarkerAfterCreate );
134
- this .element .addEventListener (' ux:map:info-window:before-create' , this ._onInfoWindowBeforeConnect );
134
+ this .element .addEventListener (' ux:map:info-window:before-create' , this ._onInfoWindowBeforeCreate );
135
135
this .element .addEventListener (' ux:map:info-window:after-create' , this ._onInfoWindowAfterCreate );
136
136
}
137
137
138
138
disconnect () {
139
139
// You should always remove listeners when the controller is disconnected to avoid side effects
140
140
this .element .removeEventListener (' ux:map:pre-connect' , this ._onPreConnect );
141
141
this .element .removeEventListener (' ux:map:connect' , this ._onConnect );
142
- this .element .removeEventListener (' ux:map:marker:before-create' , this ._onMarkerBeforeConnect );
142
+ this .element .removeEventListener (' ux:map:marker:before-create' , this ._onMarkerBeforeCreate );
143
143
this .element .removeEventListener (' ux:map:marker:after-create' , this ._onMarkerAfterCreate );
144
- this .element .removeEventListener (' ux:map:info-window:before-create' , this ._onInfoWindowBeforeConnect );
144
+ this .element .removeEventListener (' ux:map:info-window:before-create' , this ._onInfoWindowBeforeCreate );
145
145
this .element .removeEventListener (' ux:map:info-window:after-create' , this ._onInfoWindowAfterCreate );
146
146
}
147
147
@@ -159,7 +159,7 @@ Symfony UX Map allows you to extend its default behavior using a custom Stimulus
159
159
console .log (event .detail .infoWindows );
160
160
}
161
161
162
- _onMarkerBeforeConnect (event ) {
162
+ _onMarkerBeforeCreate (event ) {
163
163
// The marker is not created yet
164
164
// You can use this event to configure the marker before it is created
165
165
console .log (event .detail .definition );
@@ -171,7 +171,7 @@ Symfony UX Map allows you to extend its default behavior using a custom Stimulus
171
171
console .log (event .detail .marker );
172
172
}
173
173
174
- _onInfoWindowBeforeConnect (event ) {
174
+ _onInfoWindowBeforeCreate (event ) {
175
175
// The infoWindow is not created yet
176
176
// You can use this event to configure the infoWindow before it is created
177
177
console .log (event .detail .definition );
0 commit comments