Skip to content

Commit

Permalink
Merge pull request #25 from eodaGmbH/fixes/v0.1.2
Browse files Browse the repository at this point in the history
Fixes/v0.1.2
  • Loading branch information
crazycapivara authored Jan 22, 2024
2 parents 1cccfde + e6ef01e commit bf885da
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 18 deletions.
11 changes: 9 additions & 2 deletions .examples/airports/marker.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import json

import pandas as pd
from maplibre import (Layer, LayerType, Map, MapContext, MapOptions,
output_maplibregl, render_maplibregl)
from maplibre import (
Layer,
LayerType,
Map,
MapContext,
MapOptions,
output_maplibregl,
render_maplibregl,
)
from maplibre.basemaps import Carto
from maplibre.controls import Marker, MarkerOptions, Popup, PopupOptions
from maplibre.sources import GeoJSONSource
Expand Down
3 changes: 2 additions & 1 deletion .examples/earthquakes_cluster/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from shiny import App, reactive, ui

from maplibre import Layer, Map, MapOptions, output_maplibregl, render_maplibregl
from maplibre.basemaps import Carto
from maplibre.sources import GeoJSONSource
from shiny import App, reactive, ui

SOURCE_ID = "earthquakes"
LAYER_ID = "earthquakes"
Expand Down
3 changes: 2 additions & 1 deletion .examples/experimental/app2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import requests as req
from shiny import App, reactive, render, ui

from maplibre import (
Layer,
LayerType,
Expand All @@ -9,7 +11,6 @@
)
from maplibre.basemaps import Carto
from maplibre.experimental import LineLayer
from shiny import App, reactive, render, ui

LAYER_ID = "counties"
LAYER_ID_LINE = "us-states-line"
Expand Down
10 changes: 2 additions & 8 deletions .examples/experimental/flights.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@

import pandas as pd
import shapely
from maplibre import (
Layer,
LayerType,
Map,
MapContext,
output_maplibregl,
render_maplibregl,
)
from maplibre import (Layer, LayerType, Map, MapContext, output_maplibregl,
render_maplibregl)
from maplibre.basemaps import Carto
from maplibre.utils import GeometryType, df_to_geojson
from shiny import App, reactive, ui
Expand Down
13 changes: 10 additions & 3 deletions .examples/h3_hexagons/app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import h3
import pandas as pd
from shiny import App, reactive, ui

# import shapely
from maplibre import (Layer, LayerType, Map, MapContext, output_maplibregl,
render_maplibregl)
from maplibre import (
Layer,
LayerType,
Map,
MapContext,
output_maplibregl,
render_maplibregl,
)
from maplibre.basemaps import Carto
from maplibre.utils import GeometryType, df_to_geojson, get_bounds
from shiny import App, reactive, ui

LAYER_ID = "motor_vehicle_collisions"

Expand Down
2 changes: 1 addition & 1 deletion .examples/motor_vehicle_collisions/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import h3
import pandas as pd
from shiny import App, reactive, ui

# import shapely
from maplibre import (
Expand All @@ -12,7 +13,6 @@
)
from maplibre.basemaps import Carto
from maplibre.utils import GeometryType, df_to_geojson, get_bounds
from shiny import App, reactive, ui

LAYER_ID = "motor_vehicle_collisions"

Expand Down
3 changes: 2 additions & 1 deletion .examples/text_layer/app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from maplibre import Layer, LayerType, Map, output_maplibregl, render_maplibregl
from maplibre import (Layer, LayerType, Map, output_maplibregl,
render_maplibregl)
from maplibre.basemaps import Carto
from shiny import App, reactive, render, ui

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# MapLibre for Python

[![Release](https://img.shields.io/github/v/release/eodaGmbH/py-maplibregl)](https://img.shields.io/github/v/release/eodaGmbH/py-maplibregl)
[![Build status](https://img.shields.io/github/actions/workflow/status/eodaGmbH/py-maplibregl/pytest.yaml?branch=main)](https://img.shields.io/github/actions/workflow/status/eodaGmbH/py-maplibregl/pytest.yaml?branch=main)
[![Build status](https://img.shields.io/github/actions/workflow/status/eodaGmbH/py-maplibregl/pytest.yml?branch=main)](https://img.shields.io/github/actions/workflow/status/eodaGmbH/py-maplibregl/pytest.yml?branch=main)
[![License](https://img.shields.io/github/license/eodaGmbH/py-maplibregl)](https://img.shields.io/github/license/eodaGmbH/py-maplibregl)

MapLibre for Python provides Python bindings for [MapLibre GL JS](https://github.com/maplibre/maplibre-gl-js).
Expand Down

0 comments on commit bf885da

Please sign in to comment.