Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed Aug 29, 2024
1 parent 1cc130e commit b446877
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions maplibre/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,9 @@ def to_html(self, title: str = "My Awesome Map", **kwargs) -> str:
Examples:
>>> from maplibre import Map
>>> map = Map()
>>> m = Map()
>>> with open("/tmp/map.html", "w") as f:
... f.write(map.to_html(style="height: 800px;") # doctest: +SKIP
... f.write(m.to_html(style="height: 800px;") # doctest: +SKIP
"""
js_lib = read_internal_file("srcjs", "pywidget.js")
js_snippet = Template(js_template).render(data=json.dumps(self.to_dict()))
Expand Down Expand Up @@ -388,7 +387,7 @@ def add_deck_layers(
"""Add Deck.GL layers to the layer stack
Args:
layers (list[dict]): A list of dictionaries containing the Deck.GL layers to be added.
layers (list[dict | "pydeck.Layer"]): A list of dictionaries containing the Deck.GL layers to be added.
tooltip (str | dict): Either a single mustache template string applied to all layers
or a dictionary where keys are layer ids and values are mustache template strings.
"""
Expand All @@ -401,7 +400,7 @@ def set_deck_layers(
"""Update Deck.GL layers
Args:
layers (list[dict]): A list of dictionaries containing the Deck.GL layers to be updated.
layers (list[dict | "pydeck.Layer"]): A list of dictionaries containing the Deck.GL layers to be updated.
New layers will be added. Missing layers will be removed.
tooltip (str | dict): Must be set to keep tooltip even if it did not change.
"""
Expand Down

0 comments on commit b446877

Please sign in to comment.