Skip to content

Commit

Permalink
Warn on mbtiles instead for now
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-leech committed Oct 29, 2024
1 parent 9987646 commit 4d0d4a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/layer/format/_format.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format function matching the layer's format key decorate the layer object wi
@module /layer/formats
*/

import mbtiles from './mbtiles.mjs'

import googleMapTiles from './googleMapTiles.mjs'

import maplibre from './maplibre.mjs'
Expand All @@ -16,6 +18,7 @@ import mvt from './mvt.mjs'
import vector from './vector.mjs'

export default {
mbtiles,
googleMapTiles,
maplibre,
tiles,
Expand Down
11 changes: 11 additions & 0 deletions lib/layer/format/mbtiles.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
@function mbtiles
@deprecated
@description
The mbtiles layer format method has been deprecated.
*/
export function mbtiles() {

console.warn(`The mbtiles layer format method has been deprecated. Please use maplibre format instead.`)
}

0 comments on commit 4d0d4a0

Please sign in to comment.