@@ -81,6 +81,7 @@ class MBTiles extends ImageTileLayer {
8181 * <li >version = The version number (1.0 is the default)</li>
8282 * <li >format = The image format (png is the default or jpeg)</li>
8383 * <li >attribution = The attributes</li>
84+ * <li >bounds = The metadata Bounds</li>
8485 * </ul>
8586 * @param file The new File
8687 * @param name The name of the layer
@@ -98,6 +99,7 @@ class MBTiles extends ImageTileLayer {
9899 String version = options. get(" version" , " 1.0" )
99100 String format = options. get(" format" , " png" )
100101 String attribution = options. get(" attribution" ," Created with GeoScript" )
102+ Bounds metadataBounds = options. get(" bounds" , latLonBounds)
101103
102104 tiles. init()
103105 MBTilesMetadata metadata = new MBTilesMetadata ()
@@ -106,7 +108,7 @@ class MBTiles extends ImageTileLayer {
106108 metadata. formatStr = format
107109 metadata. version = version
108110 metadata. typeStr = type
109- metadata. bounds = latLonBounds . env
111+ metadata. bounds = metadataBounds . env
110112 metadata. attribution = attribution
111113 tiles. saveMetaData(metadata)
112114 }
@@ -119,6 +121,7 @@ class MBTiles extends ImageTileLayer {
119121 * <li >version = The version number (1.0 is the default)</li>
120122 * <li >format = The image format (png is the default or jpeg)</li>
121123 * <li >attribution = The attributes</li>
124+ * <li >bounds = The metadata Bounds</li>
122125 * </ul>
123126 * @param file The new File name
124127 * @param name The name of the layer
0 commit comments