-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add various carto basemaps as options (#268)
* Add various carto basemaps as option * rename to no labels * fmt * fix extensions * fix lint
- Loading branch information
1 parent
3ab5565
commit e1165cc
Showing
16 changed files
with
93 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# lonboard.basemap | ||
|
||
::: lonboard.basemap.CartoBasemap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from enum import Enum | ||
|
||
|
||
class CartoBasemap(str, Enum): | ||
"""Basemap styles provided by Carto. | ||
Refer to [Carto | ||
documentation](https://docs.carto.com/carto-for-developers/carto-for-react/guides/basemaps) | ||
for information on styles. | ||
""" | ||
|
||
DarkMatter = "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json" | ||
"""A dark map style with labels. | ||
![](https://carto.com/help/images/building-maps/basemaps/dark_labels.png) | ||
""" | ||
|
||
DarkMatterNoLabels = ( | ||
"https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json" | ||
) | ||
"""A dark map style without labels.""" | ||
|
||
Positron = "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json" | ||
"""A light map style with labels. | ||
![](https://carto.com/help/images/building-maps/basemaps/positron_labels.png) | ||
""" | ||
|
||
PositronNoLabels = ( | ||
"https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json" | ||
) | ||
"""A light map style without labels.""" | ||
|
||
Voyager = "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json" | ||
"""A light, colored map style with labels. | ||
![](https://carto.com/help/images/building-maps/basemaps/voyager_labels.png) | ||
""" | ||
|
||
VoyagerNoLabels = ( | ||
"https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json" | ||
) | ||
"""A light, colored map style without labels.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
export { BaseModel } from "./base"; | ||
export { BaseModel } from "./base.js"; | ||
export { | ||
BaseLayerModel, | ||
PathModel, | ||
ScatterplotModel, | ||
SolidPolygonModel, | ||
initializeLayer, | ||
} from "./layer"; | ||
} from "./layer.js"; | ||
export { | ||
BaseExtensionModel, | ||
BrushingExtension, | ||
CollisionFilterExtension, | ||
initializeExtension, | ||
} from "./extension"; | ||
} from "./extension.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters