File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ class TileLayer(RasterLayer):
239239 attribution = Unicode ('Map data (c) <a href="https://openstreetmap.org">OpenStreetMap</a> contributors' ).tag (sync = True , o = True )
240240 detect_retina = Bool (False ).tag (sync = True , o = True )
241241 no_wrap = Bool (False ).tag (sync = True , o = True )
242+ tms = Bool (False ).tag (sync = True , o = True )
242243
243244 _load_callbacks = Instance (CallbackDispatcher , ())
244245
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ var LeafletLocalTileLayerModel = LeafletTileLayerModel.extend({
1616
1717var LeafletLocalTileLayerView = LeafletTileLayerView . extend ( {
1818 create_obj : function ( ) {
19- this . model . set ( 'url' , window . location . href . replace ( / [ ^ / ] * $ / , '' ) + this . model . get ( 'path' ) ) ;
19+ this . model . set ( 'url' , this . model . get ( 'path' ) ) ;
20+ this . model . save_changes ( ) ;
2021 LeafletLocalTileLayerView . __super__ . create_obj . apply ( this , arguments ) ;
2122 }
2223} ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ var LeafletTileLayerModel = LeafletRasterLayerModel.extend({
1616 max_zoom : 18 ,
1717 tile_size : 256 ,
1818 attribution : 'Map data (c) <a href="https://openstreetmap.org">OpenStreetMap</a> contributors' ,
19- detect_retina : false
19+ detect_retina : false ,
20+ tms : false ,
2021 } )
2122} ) ;
2223
You can’t perform that action at this time.
0 commit comments