Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Sep 2, 2024
1 parent 00bab7b commit f80327a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions maplibre/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
branca_color_brewer = None

CMAPS_JSON = "https://raw.githubusercontent.com/python-visualization/branca/main/branca/_schemes.json"
# FALLBACK_COLOR = "#000000"
DEFAULT_CMAP = "viridis"


def color_brewer(cmap: str, n: int) -> list:
Expand Down
5 changes: 2 additions & 3 deletions maplibre/controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class ControlPosition(Enum):
BOTTOM_RIGHT = "bottom-right"


# TODO: Add position attribute but exclude it from model_dump
class Control(MapLibreBaseModel):
position: Union[ControlPosition, str] = Field(
ControlPosition.TOP_RIGHT, exclude=True
Expand Down Expand Up @@ -113,8 +112,8 @@ class FullscreenControl(Control):
>>> from maplibre import Map
>>> from maplibre.controls import FullscreenControl, ControlPosition
>>> map = Map()
>>> map.add_control(FullscreenControl(), ControlPosition.BOTTOM_LEFT)
>>> m = Map()
>>> m.add_control(FullscreenControl(), ControlPosition.BOTTOM_LEFT)
"""

# _name: str = ControlType.FULLSCREEN.value
Expand Down

0 comments on commit f80327a

Please sign in to comment.