File tree Expand file tree Collapse file tree 6 files changed +24
-0
lines changed Expand file tree Collapse file tree 6 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 3
3
## 2.30
4
4
5
5
- Ensure compatibility with PHP 8.5
6
+ - Display a warning when trying to define ` bridgeOptions.content ` for a ` Marker ` that already has an ` Icon `
6
7
7
8
## 2.29.0
8
9
Original file line number Diff line number Diff line change @@ -248,6 +248,11 @@ var map_controller_default = class extends abstract_map_controller_default {
248
248
this . createInfoWindow ( { definition : infoWindow , element : marker } ) ;
249
249
}
250
250
if ( icon ) {
251
+ if ( Object . prototype . hasOwnProperty . call ( bridgeOptions , "content" ) ) {
252
+ console . warn ( '[Symfony UX Map] Defining "bridgeOptions.content" for a marker with a custom icon is not supported and will be ignored.' ) ;
253
+ } else if ( Object . prototype . hasOwnProperty . call ( rawOptions , "content" ) ) {
254
+ console . warn ( '[Symfony UX Map] Defining "rawOptions.content" for a marker with a custom icon is not supported and will be ignored.' ) ;
255
+ }
251
256
this . doCreateIcon ( { definition : icon , element : marker } ) ;
252
257
}
253
258
return marker ;
Original file line number Diff line number Diff line change @@ -188,6 +188,12 @@ export default class extends AbstractMapController<
188
188
}
189
189
190
190
if ( icon ) {
191
+ if ( Object . prototype . hasOwnProperty . call ( bridgeOptions , 'content' ) ) {
192
+ console . warn ( '[Symfony UX Map] Defining "bridgeOptions.content" for a marker with a custom icon is not supported and will be ignored.' ) ;
193
+ } else if ( Object . prototype . hasOwnProperty . call ( rawOptions , 'content' ) ) {
194
+ console . warn ( '[Symfony UX Map] Defining "rawOptions.content" for a marker with a custom icon is not supported and will be ignored.' ) ;
195
+ }
196
+
191
197
this . doCreateIcon ( { definition : icon , element : marker } ) ;
192
198
}
193
199
Original file line number Diff line number Diff line change 3
3
## 2.30
4
4
5
5
- Ensure compatibility with PHP 8.5
6
+ - Display a warning when trying to define ` bridgeOptions.icon ` for a ` Marker ` that already has an ` Icon `
6
7
7
8
## 2.29.0
8
9
Original file line number Diff line number Diff line change @@ -228,6 +228,11 @@ var map_controller_default = class extends abstract_map_controller_default {
228
228
this . createInfoWindow ( { definition : infoWindow , element : marker2 } ) ;
229
229
}
230
230
if ( icon2 ) {
231
+ if ( Object . prototype . hasOwnProperty . call ( bridgeOptions , "icon" ) ) {
232
+ console . warn ( '[Symfony UX Map] Defining "bridgeOptions.icon" for a marker with a custom icon is not supported and will be ignored.' ) ;
233
+ } else if ( Object . prototype . hasOwnProperty . call ( rawOptions , "icon" ) ) {
234
+ console . warn ( '[Symfony UX Map] Defining "rawOptions.icon" for a marker with a custom icon is not supported and will be ignored.' ) ;
235
+ }
231
236
this . doCreateIcon ( { definition : icon2 , element : marker2 } ) ;
232
237
}
233
238
return marker2 ;
Original file line number Diff line number Diff line change @@ -154,6 +154,12 @@ export default class extends AbstractMapController<
154
154
}
155
155
156
156
if ( icon ) {
157
+ if ( Object . prototype . hasOwnProperty . call ( bridgeOptions , 'icon' ) ) {
158
+ console . warn ( '[Symfony UX Map] Defining "bridgeOptions.icon" for a marker with a custom icon is not supported and will be ignored.' ) ;
159
+ } else if ( Object . prototype . hasOwnProperty . call ( rawOptions , 'icon' ) ) {
160
+ console . warn ( '[Symfony UX Map] Defining "rawOptions.icon" for a marker with a custom icon is not supported and will be ignored.' ) ;
161
+ }
162
+
157
163
this . doCreateIcon ( { definition : icon , element : marker } ) ;
158
164
}
159
165
You can’t perform that action at this time.
0 commit comments