Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use leaflet and react-leaflet as external packages #146

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: dashLeaflet
Title: Leaflet component for Dash
Version: 0.1.19rc6
Version: 0.1.23
Description: Leaflet component for Dash
Depends: R (>= 3.0.2)
Imports:
Expand Down
50 changes: 26 additions & 24 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export(Map)
export(Marker)
export(MarkerClusterGroup)
export(MeasureControl)
export(Minichart)
export(Overlay)
export(Pane)
export(Polygon)
Expand All @@ -33,36 +34,37 @@ export(TileLayer)
export(Tooltip)
export(VideoOverlay)
export(WMSTileLayer)
export(circleMarker)
export(videoOverlay)
export(tileLayer)
export(imageOverlay)
export(measureControl)
export(layersControl)
export(polyline)
export(fullscreenControl)
export(sVGOverlay)
export(locateControl)
export(videoOverlay)
export(divMarker)
export(featureGroup)
export(pane)
export(sVGOverlay)
export(circle)
export(markerClusterGroup)
export(geoJSON)
export(featureGroup)
export(layerGroup)
export(editControl)
export(tooltip)
export(wMSTileLayer)
export(map)
export(imageOverlay)
export(minichart)
export(popup)
export(scaleControl)
export(gestureHandling)
export(marker)
export(easyButton)
export(colorbar)
export(layerGroup)
export(rectangle)
export(circleMarker)
export(polylineDecorator)
export(geoTIFFOverlay)
export(polygon)
export(popup)
export(overlay)
export(easyButton)
export(gestureHandling)
export(geoTIFFOverlay)
export(editControl)
export(measureControl)
export(locateControl)
export(layersControl)
export(polyline)
export(polylineDecorator)
export(tileLayer)
export(pane)
export(baseLayer)
export(scaleControl)
export(circle)
export(marker)
export(map)
export(wMSTileLayer)
export(baseLayer)
20 changes: 18 additions & 2 deletions dash_leaflet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@

_js_dist.extend(
[
{
'relative_package_path': 'leaflet@1.7.1.js',
'external_url': 'https://unpkg.com/leaflet@1.7.1/dist/leaflet.js',
'namespace': package_name
},
{
'relative_package_path': 'react-leaflet@2.8.0.js',
'external_url': 'https://unpkg.com/react-leaflet@2.8.0/dist/react-leaflet.js',
'namespace': package_name
},
{
'relative_package_path': 'dash_leaflet.min.js',
'external_url': 'https://unpkg.com/{0}@{2}/{1}/{1}.min.js'.format(
Expand All @@ -82,9 +92,15 @@
]
)

_css_dist = []
_css_dist = [
{
'relative_package_path': 'leaflet@1.7.1.css',
'external_url': 'https://unpkg.com/leaflet@1.7.1/dist/leaflet.css',
'namespace': package_name
},
]


for _component in __all__:
setattr(locals()[_component], '_js_dist', _js_dist)
setattr(locals()[_component], '_css_dist', _css_dist)
setattr(locals()[_component], '_css_dist', _css_dist)
2 changes: 2 additions & 0 deletions dash_leaflet/_imports_.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .Marker import Marker
from .MarkerClusterGroup import MarkerClusterGroup
from .MeasureControl import MeasureControl
from .Minichart import Minichart
from .Overlay import Overlay
from .Pane import Pane
from .Polygon import Polygon
Expand Down Expand Up @@ -53,6 +54,7 @@
"Marker",
"MarkerClusterGroup",
"MeasureControl",
"Minichart",
"Overlay",
"Pane",
"Polygon",
Expand Down
Loading