Skip to content

Commit

Permalink
Use new Renderer class
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kuethe committed May 7, 2024
1 parent 93c7c69 commit 1db5353
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/examples/earthquake_clusters/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from maplibre import (
Layer,
LayerType,
Map,
Map, # render_maplibregl,
MapLibreRenderer,
MapOptions,
output_maplibregl,
render_maplibregl,
)
from maplibre.basemaps import Carto
from maplibre.sources import GeoJSONSource
Expand Down Expand Up @@ -89,7 +89,7 @@ def create_map() -> Map:


def server(input, output, session):
@render_maplibregl
@MapLibreRenderer
def maplibre():
return create_map()

Expand Down
1 change: 1 addition & 0 deletions maplibre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
from .map import Map, MapOptions
from .mapcontext import MapContext
from .server import render_maplibregl
from .shiny import MapLibreRenderer
from .ui import output_maplibregl

0 comments on commit 1db5353

Please sign in to comment.