File tree 3 files changed +17
-13
lines changed
3 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 217
217
} ) ;
218
218
} ,
219
219
220
- refreshMappedResource : function ( $el ) {
220
+ refreshMappedResource : function ( $el , settings ) {
221
221
const data = $el . data ( this . marker . mappedResourceData . settings ) ;
222
222
223
223
// mapId was no string and empty
224
224
if ( ! $ . isPlainObject ( data ) || typeof data . mapId !== 'string' || data . mapId === '' ) {
225
225
return ;
226
226
}
227
227
228
- const source = this . _createSource ( data . mapId ) ;
228
+ const source = this . _createSource ( data . mapId , settings ) ;
229
229
$el . removeAttr ( 'src' ) ;
230
230
$el . attr ( 'src' , source ) ;
231
+
232
+ data . source = source ;
231
233
} ,
232
234
233
235
_renderMappedResource : function ( $el ) {
303
305
}
304
306
} ,
305
307
306
- _createSource : function ( mapId ) {
308
+ _createSource : function ( mapId , settings ) {
307
309
308
310
// add the date instance (format yyyyMMdd HHmmss)
309
311
const curDate = new Date ( ) ;
331
333
browserId : browserId
332
334
}
333
335
}
334
- } , user ) ;
336
+ } , user , $ . isPlainObject ( settings ) ? settings : { } ) ;
335
337
336
338
// encode the data instance
337
339
let suffix = '/J/' ;
737
739
}
738
740
} ,
739
741
740
- refreshMapResource : function ( $el ) {
741
- _private . refreshMappedResource ( $el ) ;
742
+ refreshMapResource : function ( $el , settings ) {
743
+ _private . refreshMappedResource ( $el , settings ) ;
742
744
} ,
743
745
744
746
areDataTagsEnabled : function ( ) {
You can’t perform that action at this time.
0 commit comments