diff --git a/maplibre/pmtiles_utils.py b/maplibre/pmtiles_utils.py index 139ae4ae..803cd48e 100644 --- a/maplibre/pmtiles_utils.py +++ b/maplibre/pmtiles_utils.py @@ -78,7 +78,7 @@ def bounds(self): ) -class PMTilesMetaData(BaseModel): +class PMTilesMetadata(BaseModel): # bounds: tuple name: Optional[str] = None description: Optional[str] = None @@ -144,8 +144,8 @@ def header(self) -> PMTilesHeader: return PMTilesHeader(**self._header) @property - def metadata(self) -> PMTilesMetaData: - return PMTilesMetaData(**self._metadata) + def metadata(self) -> PMTilesMetadata: + return PMTilesMetadata(**self._metadata) @property def protocol_url(self) -> str: diff --git a/tests/test_pmtiles.py b/tests/test_pmtiles.py index 1c833f94..2b323147 100644 --- a/tests/test_pmtiles.py +++ b/tests/test_pmtiles.py @@ -1,7 +1,7 @@ from maplibre.pmtiles_utils import ( DemoPMTiles, PMTiles, - PMTilesMetaData, + PMTilesMetadata, get_pmtiles_header, get_pmtiles_metadata, ) @@ -28,7 +28,7 @@ def test_get_pmtiles_metadata(): header, metadata = get_pmtiles_metadata(path) print(metadata.keys()) - metadata_model = PMTilesMetaData(**metadata) + metadata_model = PMTilesMetadata(**metadata) print(metadata_model) print(metadata_model.layer_ids)