Skip to content

Commit

Permalink
Merge 638b92d into 2628732
Browse files Browse the repository at this point in the history
  • Loading branch information
ajduberstein committed Apr 1, 2020
2 parents 2628732 + 638b92d commit e96d22c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions bindings/pydeck/examples/custom_layer.py
Expand Up @@ -4,8 +4,8 @@

pydeck.settings.custom_libraries = [
{
"libraryName": "LabeledGeoJsonLayer",
"resourceUri": "https://raw.githubusercontent.com/ajduberstein/pydeck_custom_layer/master/dist/bundle.js",
"libraryName": "LabeledGeoJsonLayerLibrary",
"resourceUri": "https://unpkg.com/pydeck-custom-layer-demo@0.0.1/dist/bundle.js",
}
]

Expand All @@ -19,19 +19,19 @@
filled=False,
billboard=False,
get_line_color=[180, 180, 180],
get_label="f.properties.name",
get_label_size=20,
get_label="properties.name",
get_label_size=200000,
get_label_color=[0, 64, 128],
label_size_units='"meters"',
line_width_min_pixels=1,
)

view_state = pydeck.ViewState(latitude=0, longitude=0, zoom=10, bearing=-45, pitch=60,)
view_state = pydeck.ViewState(latitude=0, longitude=0, zoom=1, bearing=-45, pitch=60,)

r = pydeck.Deck(
custom_layer,
initial_view_state=view_state,
map_style="mapbox://styles/mapbox/satellite-v9",
map_style="",
)

r.show()
r.to_html('custom_layer.html', css_background_color="#333")
1 change: 0 additions & 1 deletion bindings/pydeck/pydeck/frontend_semver.py

This file was deleted.

0 comments on commit e96d22c

Please sign in to comment.