@@ -55,7 +55,12 @@ L.U.Share = L.Class.extend({
5555 ( ) => navigator . clipboard . writeText ( this . mapUrl . value ) ,
5656 this
5757 )
58- const mapUrlLabel = L . DomUtil . add ( 'label' , '' , this . container , L . _ ( 'Link to view the map' ) )
58+ const mapUrlLabel = L . DomUtil . add (
59+ 'label' ,
60+ '' ,
61+ this . container ,
62+ L . _ ( 'Link to view the map' )
63+ )
5964 this . mapUrl = L . DomUtil . create ( 'input' , 'umap-share-url' , mapUrlLabel )
6065 this . mapUrl . type = 'text'
6166 this . mapUrl . readOnly = true
@@ -80,27 +85,32 @@ L.U.Share = L.Class.extend({
8085 L . DomUtil . create ( 'hr' , '' , this . container )
8186
8287 L . DomUtil . add ( 'h4' , '' , this . container , L . _ ( 'Download' ) )
83- L . DomUtil . add ( 'small' , 'label' , this . container , L . _ ( ' Only visible layers') )
88+ L . DomUtil . add ( 'small' , 'label' , this . container , L . _ ( " Only visible layers' data" ) )
8489 for ( const key in this . EXPORT_TYPES ) {
8590 if ( this . EXPORT_TYPES . hasOwnProperty ( key ) ) {
8691 L . DomUtil . createButton (
8792 'download-file' ,
8893 this . container ,
89- this . EXPORT_TYPES [ key ] . name || key + ' data' ,
94+ this . EXPORT_TYPES [ key ] . name || key ,
9095 ( ) => this . download ( key ) ,
9196 this
9297 )
9398 }
9499 }
95100 L . DomUtil . create ( 'div' , 'vspace' , this . container )
96- L . DomUtil . add ( 'small' , 'label' , this . container , L . _ ( 'All data and settings of the map' ) )
101+ L . DomUtil . add (
102+ 'small' ,
103+ 'label' ,
104+ this . container ,
105+ L . _ ( 'All data and settings of the map' )
106+ )
97107 const downloadUrl = L . Util . template ( this . map . options . urls . map_download , {
98108 map_id : this . map . options . umap_id ,
99109 } )
100110 const link = L . DomUtil . createLink (
101111 'download-backup' ,
102112 this . container ,
103- L . _ ( 'Download full backup' ) ,
113+ L . _ ( 'full backup' ) ,
104114 downloadUrl
105115 )
106116 let name = this . map . options . name || 'data'
0 commit comments