dash-openlayers 0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dash_openlayers/DrawInteraction.py +89 -0
- dash_openlayers/ImageWMS.py +66 -0
- dash_openlayers/LayerControl.py +61 -0
- dash_openlayers/Map.py +111 -0
- dash_openlayers/ModifyInteraction.py +93 -0
- dash_openlayers/SelectInteraction.py +63 -0
- dash_openlayers/TileLayer.py +61 -0
- dash_openlayers/TileWMS.py +66 -0
- dash_openlayers/VectorLayer.py +81 -0
- dash_openlayers/VectorTileLayer.py +74 -0
- dash_openlayers/WFSLayer.py +92 -0
- dash_openlayers/WMTSLayer.py +90 -0
- dash_openlayers/__init__.py +34 -0
- dash_openlayers/_imports_.py +27 -0
- dash_openlayers/dash_openlayers.esm.js +77084 -0
- dash_openlayers/dash_openlayers.umd.js +2 -0
- dash_openlayers/metadata.json +1080 -0
- dash_openlayers/package-info.json +57 -0
- dash_openlayers-0.0.1.dist-info/METADATA +125 -0
- dash_openlayers-0.0.1.dist-info/RECORD +23 -0
- dash_openlayers-0.0.1.dist-info/WHEEL +5 -0
- dash_openlayers-0.0.1.dist-info/licenses/LICENSE +21 -0
- dash_openlayers-0.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
try:
|
|
7
|
+
from dash.types import NumberType # noqa: F401
|
|
8
|
+
except ImportError:
|
|
9
|
+
# Backwards compatibility for dash<=4.1.0
|
|
10
|
+
if typing.TYPE_CHECKING:
|
|
11
|
+
raise
|
|
12
|
+
NumberType = typing.Union[ # noqa: F401
|
|
13
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
17
|
+
ComponentType = typing.Union[
|
|
18
|
+
ComponentSingleType,
|
|
19
|
+
typing.Sequence[ComponentSingleType],
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class DrawInteraction(Component):
|
|
24
|
+
"""A DrawInteraction component.
|
|
25
|
+
Draw and validate OpenLayers features, then publish their serialized geometry to Dash.
|
|
26
|
+
|
|
27
|
+
Keyword arguments:
|
|
28
|
+
|
|
29
|
+
- id (string; optional):
|
|
30
|
+
The ID used to identify this component in Dash callbacks.
|
|
31
|
+
|
|
32
|
+
- geometryType (a value equal to: 'Point', 'LineString', 'Polygon', 'Circle'; default 'Polygon'):
|
|
33
|
+
Geometry type drawn by this interaction.
|
|
34
|
+
|
|
35
|
+
- drawnGeoJSON (dict; optional):
|
|
36
|
+
Read-only GeoJSON Feature emitted only when geometry validation
|
|
37
|
+
succeeds.
|
|
38
|
+
|
|
39
|
+
- drawnWKT (string; optional):
|
|
40
|
+
Read-only WKT geometry emitted only when geometry validation
|
|
41
|
+
succeeds.
|
|
42
|
+
|
|
43
|
+
- drawnTopoJSON (dict; optional):
|
|
44
|
+
Read-only TopoJSON topology emitted only when geometry validation
|
|
45
|
+
succeeds.
|
|
46
|
+
|
|
47
|
+
- geometryValidation (dict; optional):
|
|
48
|
+
Read-only validity, topology errors, and repair suggestions from
|
|
49
|
+
the last draw.
|
|
50
|
+
|
|
51
|
+
- snapToVertex (boolean; default True):
|
|
52
|
+
Whether drawing snaps to existing vector vertices.
|
|
53
|
+
|
|
54
|
+
- snapToEdge (boolean; default True):
|
|
55
|
+
Whether drawing snaps to existing vector edges.
|
|
56
|
+
|
|
57
|
+
- snapTolerance (number; default 10):
|
|
58
|
+
Maximum snap distance in screen pixels."""
|
|
59
|
+
_children_props: typing.List[str] = []
|
|
60
|
+
_base_nodes = ['children']
|
|
61
|
+
_namespace = 'dash_openlayers'
|
|
62
|
+
_type = 'DrawInteraction'
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def __init__(
|
|
66
|
+
self,
|
|
67
|
+
id: typing.Optional[typing.Union[str, dict]] = None,
|
|
68
|
+
geometryType: typing.Optional[Literal["Point", "LineString", "Polygon", "Circle"]] = None,
|
|
69
|
+
drawnGeoJSON: typing.Optional[dict] = None,
|
|
70
|
+
drawnWKT: typing.Optional[str] = None,
|
|
71
|
+
drawnTopoJSON: typing.Optional[dict] = None,
|
|
72
|
+
geometryValidation: typing.Optional[dict] = None,
|
|
73
|
+
snapToVertex: typing.Optional[bool] = None,
|
|
74
|
+
snapToEdge: typing.Optional[bool] = None,
|
|
75
|
+
snapTolerance: typing.Optional[NumberType] = None,
|
|
76
|
+
**kwargs
|
|
77
|
+
):
|
|
78
|
+
self._prop_names = ['id', 'geometryType', 'drawnGeoJSON', 'drawnWKT', 'drawnTopoJSON', 'geometryValidation', 'snapToVertex', 'snapToEdge', 'snapTolerance']
|
|
79
|
+
self._valid_wildcard_attributes = []
|
|
80
|
+
self.available_properties = ['id', 'geometryType', 'drawnGeoJSON', 'drawnWKT', 'drawnTopoJSON', 'geometryValidation', 'snapToVertex', 'snapToEdge', 'snapTolerance']
|
|
81
|
+
self.available_wildcard_properties = []
|
|
82
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
83
|
+
_locals = locals()
|
|
84
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
85
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
86
|
+
|
|
87
|
+
super(DrawInteraction, self).__init__(**args)
|
|
88
|
+
|
|
89
|
+
setattr(DrawInteraction, "__init__", _explicitize_args(DrawInteraction.__init__))
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
try:
|
|
7
|
+
from dash.types import NumberType # noqa: F401
|
|
8
|
+
except ImportError:
|
|
9
|
+
# Backwards compatibility for dash<=4.1.0
|
|
10
|
+
if typing.TYPE_CHECKING:
|
|
11
|
+
raise
|
|
12
|
+
NumberType = typing.Union[ # noqa: F401
|
|
13
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
17
|
+
ComponentType = typing.Union[
|
|
18
|
+
ComponentSingleType,
|
|
19
|
+
typing.Sequence[ComponentSingleType],
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ImageWMS(Component):
|
|
24
|
+
"""An ImageWMS component.
|
|
25
|
+
Render a single-image OGC Web Map Service layer.
|
|
26
|
+
|
|
27
|
+
Keyword arguments:
|
|
28
|
+
|
|
29
|
+
- id (string; optional):
|
|
30
|
+
Component ID used to identify this layer in the Dash layout.
|
|
31
|
+
|
|
32
|
+
- url (string; optional):
|
|
33
|
+
OGC WMS endpoint URL.
|
|
34
|
+
|
|
35
|
+
- params (dict; optional):
|
|
36
|
+
WMS request parameters, including LAYERS; changes refresh the
|
|
37
|
+
source.
|
|
38
|
+
|
|
39
|
+
- serverType (a value equal to: 'carmentaserver', 'geoserver', 'mapserver', 'qgis'; optional):
|
|
40
|
+
WMS server type used for vendor-specific HiDPI request parameters."""
|
|
41
|
+
_children_props: typing.List[str] = []
|
|
42
|
+
_base_nodes = ['children']
|
|
43
|
+
_namespace = 'dash_openlayers'
|
|
44
|
+
_type = 'ImageWMS'
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def __init__(
|
|
48
|
+
self,
|
|
49
|
+
id: typing.Optional[typing.Union[str, dict]] = None,
|
|
50
|
+
url: typing.Optional[str] = None,
|
|
51
|
+
params: typing.Optional[dict] = None,
|
|
52
|
+
serverType: typing.Optional[Literal["carmentaserver", "geoserver", "mapserver", "qgis"]] = None,
|
|
53
|
+
**kwargs
|
|
54
|
+
):
|
|
55
|
+
self._prop_names = ['id', 'url', 'params', 'serverType']
|
|
56
|
+
self._valid_wildcard_attributes = []
|
|
57
|
+
self.available_properties = ['id', 'url', 'params', 'serverType']
|
|
58
|
+
self.available_wildcard_properties = []
|
|
59
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
60
|
+
_locals = locals()
|
|
61
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
62
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
63
|
+
|
|
64
|
+
super(ImageWMS, self).__init__(**args)
|
|
65
|
+
|
|
66
|
+
setattr(ImageWMS, "__init__", _explicitize_args(ImageWMS.__init__))
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
try:
|
|
7
|
+
from dash.types import NumberType # noqa: F401
|
|
8
|
+
except ImportError:
|
|
9
|
+
# Backwards compatibility for dash<=4.1.0
|
|
10
|
+
if typing.TYPE_CHECKING:
|
|
11
|
+
raise
|
|
12
|
+
NumberType = typing.Union[ # noqa: F401
|
|
13
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
17
|
+
ComponentType = typing.Union[
|
|
18
|
+
ComponentSingleType,
|
|
19
|
+
typing.Sequence[ComponentSingleType],
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class LayerControl(Component):
|
|
24
|
+
"""A LayerControl component.
|
|
25
|
+
Layer visibility, opacity, and stacking-order controls for map layers.
|
|
26
|
+
|
|
27
|
+
Keyword arguments:
|
|
28
|
+
|
|
29
|
+
- id (string; optional):
|
|
30
|
+
The ID used to identify this component in Dash callbacks.
|
|
31
|
+
|
|
32
|
+
- position (a value equal to: 'top-left', 'top-right', 'bottom-left', 'bottom-right'; default 'top-right'):
|
|
33
|
+
Corner of the map where the control is displayed.
|
|
34
|
+
|
|
35
|
+
- title (string; default 'Layers'):
|
|
36
|
+
Heading displayed above the layer controls."""
|
|
37
|
+
_children_props: typing.List[str] = []
|
|
38
|
+
_base_nodes = ['children']
|
|
39
|
+
_namespace = 'dash_openlayers'
|
|
40
|
+
_type = 'LayerControl'
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def __init__(
|
|
44
|
+
self,
|
|
45
|
+
id: typing.Optional[typing.Union[str, dict]] = None,
|
|
46
|
+
position: typing.Optional[Literal["top-left", "top-right", "bottom-left", "bottom-right"]] = None,
|
|
47
|
+
title: typing.Optional[str] = None,
|
|
48
|
+
**kwargs
|
|
49
|
+
):
|
|
50
|
+
self._prop_names = ['id', 'position', 'title']
|
|
51
|
+
self._valid_wildcard_attributes = []
|
|
52
|
+
self.available_properties = ['id', 'position', 'title']
|
|
53
|
+
self.available_wildcard_properties = []
|
|
54
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
55
|
+
_locals = locals()
|
|
56
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
57
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
58
|
+
|
|
59
|
+
super(LayerControl, self).__init__(**args)
|
|
60
|
+
|
|
61
|
+
setattr(LayerControl, "__init__", _explicitize_args(LayerControl.__init__))
|
dash_openlayers/Map.py
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
try:
|
|
7
|
+
from dash.types import NumberType # noqa: F401
|
|
8
|
+
except ImportError:
|
|
9
|
+
# Backwards compatibility for dash<=4.1.0
|
|
10
|
+
if typing.TYPE_CHECKING:
|
|
11
|
+
raise
|
|
12
|
+
NumberType = typing.Union[ # noqa: F401
|
|
13
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
17
|
+
ComponentType = typing.Union[
|
|
18
|
+
ComponentSingleType,
|
|
19
|
+
typing.Sequence[ComponentSingleType],
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Map(Component):
|
|
24
|
+
"""A Map component.
|
|
25
|
+
Create an OpenLayers map and synchronize its view and click events with Dash.
|
|
26
|
+
|
|
27
|
+
Keyword arguments:
|
|
28
|
+
|
|
29
|
+
- id (string; optional):
|
|
30
|
+
The ID used to identify this component in Dash callbacks.
|
|
31
|
+
|
|
32
|
+
- children (a list of or a singular dash component, string or number; optional):
|
|
33
|
+
OpenLayers layer and interaction components rendered inside this
|
|
34
|
+
map.
|
|
35
|
+
|
|
36
|
+
- center (list of numbers; default [0, 0]):
|
|
37
|
+
Map view center as [x, y] in projection units; bidirectional with
|
|
38
|
+
the rendered view.
|
|
39
|
+
|
|
40
|
+
- zoom (number; default 2):
|
|
41
|
+
Map zoom level; bidirectional with the rendered view.
|
|
42
|
+
|
|
43
|
+
- projection (string; default 'EPSG:3857'):
|
|
44
|
+
EPSG code used for the map view.
|
|
45
|
+
|
|
46
|
+
- proj4Defs (list of dicts; optional):
|
|
47
|
+
Custom proj4 definitions registered before the map view is
|
|
48
|
+
created.
|
|
49
|
+
|
|
50
|
+
`proj4Defs` is a list of dicts with keys:
|
|
51
|
+
|
|
52
|
+
- code (string; required)
|
|
53
|
+
|
|
54
|
+
- def (string; required)
|
|
55
|
+
|
|
56
|
+
- clickData (dict; optional):
|
|
57
|
+
Read-only click position with raw projected coordinates and
|
|
58
|
+
[latitude, longitude].
|
|
59
|
+
|
|
60
|
+
- undo (number; default 0):
|
|
61
|
+
Increment to undo the latest Draw or Modify operation.
|
|
62
|
+
|
|
63
|
+
- redo (number; default 0):
|
|
64
|
+
Increment to redo the latest undone operation.
|
|
65
|
+
|
|
66
|
+
- canUndo (boolean; optional):
|
|
67
|
+
Read-only; whether an operation is available to undo.
|
|
68
|
+
|
|
69
|
+
- canRedo (boolean; optional):
|
|
70
|
+
Read-only; whether an operation is available to redo."""
|
|
71
|
+
_children_props: typing.List[str] = []
|
|
72
|
+
_base_nodes = ['children']
|
|
73
|
+
_namespace = 'dash_openlayers'
|
|
74
|
+
_type = 'Map'
|
|
75
|
+
Proj4Defs = TypedDict(
|
|
76
|
+
"Proj4Defs",
|
|
77
|
+
{
|
|
78
|
+
"code": str,
|
|
79
|
+
"def": str
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def __init__(
|
|
85
|
+
self,
|
|
86
|
+
children: typing.Optional[ComponentType] = None,
|
|
87
|
+
id: typing.Optional[typing.Union[str, dict]] = None,
|
|
88
|
+
center: typing.Optional[typing.Sequence[NumberType]] = None,
|
|
89
|
+
zoom: typing.Optional[NumberType] = None,
|
|
90
|
+
projection: typing.Optional[str] = None,
|
|
91
|
+
proj4Defs: typing.Optional[typing.Sequence["Proj4Defs"]] = None,
|
|
92
|
+
style: typing.Optional[typing.Any] = None,
|
|
93
|
+
clickData: typing.Optional[dict] = None,
|
|
94
|
+
undo: typing.Optional[NumberType] = None,
|
|
95
|
+
redo: typing.Optional[NumberType] = None,
|
|
96
|
+
canUndo: typing.Optional[bool] = None,
|
|
97
|
+
canRedo: typing.Optional[bool] = None,
|
|
98
|
+
**kwargs
|
|
99
|
+
):
|
|
100
|
+
self._prop_names = ['id', 'children', 'center', 'zoom', 'projection', 'proj4Defs', 'style', 'clickData', 'undo', 'redo', 'canUndo', 'canRedo']
|
|
101
|
+
self._valid_wildcard_attributes = []
|
|
102
|
+
self.available_properties = ['id', 'children', 'center', 'zoom', 'projection', 'proj4Defs', 'style', 'clickData', 'undo', 'redo', 'canUndo', 'canRedo']
|
|
103
|
+
self.available_wildcard_properties = []
|
|
104
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
105
|
+
_locals = locals()
|
|
106
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
107
|
+
args = {k: _locals[k] for k in _explicit_args if k != 'children'}
|
|
108
|
+
|
|
109
|
+
super(Map, self).__init__(children=children, **args)
|
|
110
|
+
|
|
111
|
+
setattr(Map, "__init__", _explicitize_args(Map.__init__))
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
try:
|
|
7
|
+
from dash.types import NumberType # noqa: F401
|
|
8
|
+
except ImportError:
|
|
9
|
+
# Backwards compatibility for dash<=4.1.0
|
|
10
|
+
if typing.TYPE_CHECKING:
|
|
11
|
+
raise
|
|
12
|
+
NumberType = typing.Union[ # noqa: F401
|
|
13
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
17
|
+
ComponentType = typing.Union[
|
|
18
|
+
ComponentSingleType,
|
|
19
|
+
typing.Sequence[ComponentSingleType],
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ModifyInteraction(Component):
|
|
24
|
+
"""A ModifyInteraction component.
|
|
25
|
+
Allow editing vertices in a VectorLayer and report the updated features.
|
|
26
|
+
|
|
27
|
+
Keyword arguments:
|
|
28
|
+
|
|
29
|
+
- id (string; optional):
|
|
30
|
+
The ID used to identify this component in Dash callbacks.
|
|
31
|
+
|
|
32
|
+
- layerId (string; optional):
|
|
33
|
+
Dash ID of the VectorLayer to modify; defaults to the first vector
|
|
34
|
+
layer on the map.
|
|
35
|
+
|
|
36
|
+
- snapToVertex (boolean; default True):
|
|
37
|
+
Whether editing snaps to vector vertices.
|
|
38
|
+
|
|
39
|
+
- snapToEdge (boolean; default True):
|
|
40
|
+
Whether editing snaps to vector edges.
|
|
41
|
+
|
|
42
|
+
- snapTolerance (number; default 10):
|
|
43
|
+
Maximum snap distance in screen pixels.
|
|
44
|
+
|
|
45
|
+
- preserveTopology (boolean; default True):
|
|
46
|
+
Revert polygon edits that introduce invalid topology.
|
|
47
|
+
|
|
48
|
+
- modifiedGeoJSON (dict; optional):
|
|
49
|
+
Read-only: GeoJSON FeatureCollection of the target layer after a
|
|
50
|
+
modify operation.
|
|
51
|
+
|
|
52
|
+
- modifiedWKT (string; optional):
|
|
53
|
+
Read-only: WKT geometry collection of the target layer after
|
|
54
|
+
modification.
|
|
55
|
+
|
|
56
|
+
- modifiedTopoJSON (dict; optional):
|
|
57
|
+
Read-only: TopoJSON topology of the target layer after
|
|
58
|
+
modification.
|
|
59
|
+
|
|
60
|
+
- geometryValidation (dict; optional):
|
|
61
|
+
Read-only: topology validation result from the last modification."""
|
|
62
|
+
_children_props: typing.List[str] = []
|
|
63
|
+
_base_nodes = ['children']
|
|
64
|
+
_namespace = 'dash_openlayers'
|
|
65
|
+
_type = 'ModifyInteraction'
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def __init__(
|
|
69
|
+
self,
|
|
70
|
+
id: typing.Optional[typing.Union[str, dict]] = None,
|
|
71
|
+
layerId: typing.Optional[str] = None,
|
|
72
|
+
snapToVertex: typing.Optional[bool] = None,
|
|
73
|
+
snapToEdge: typing.Optional[bool] = None,
|
|
74
|
+
snapTolerance: typing.Optional[NumberType] = None,
|
|
75
|
+
preserveTopology: typing.Optional[bool] = None,
|
|
76
|
+
modifiedGeoJSON: typing.Optional[dict] = None,
|
|
77
|
+
modifiedWKT: typing.Optional[str] = None,
|
|
78
|
+
modifiedTopoJSON: typing.Optional[dict] = None,
|
|
79
|
+
geometryValidation: typing.Optional[dict] = None,
|
|
80
|
+
**kwargs
|
|
81
|
+
):
|
|
82
|
+
self._prop_names = ['id', 'layerId', 'snapToVertex', 'snapToEdge', 'snapTolerance', 'preserveTopology', 'modifiedGeoJSON', 'modifiedWKT', 'modifiedTopoJSON', 'geometryValidation']
|
|
83
|
+
self._valid_wildcard_attributes = []
|
|
84
|
+
self.available_properties = ['id', 'layerId', 'snapToVertex', 'snapToEdge', 'snapTolerance', 'preserveTopology', 'modifiedGeoJSON', 'modifiedWKT', 'modifiedTopoJSON', 'geometryValidation']
|
|
85
|
+
self.available_wildcard_properties = []
|
|
86
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
87
|
+
_locals = locals()
|
|
88
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
89
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
90
|
+
|
|
91
|
+
super(ModifyInteraction, self).__init__(**args)
|
|
92
|
+
|
|
93
|
+
setattr(ModifyInteraction, "__init__", _explicitize_args(ModifyInteraction.__init__))
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
try:
|
|
7
|
+
from dash.types import NumberType # noqa: F401
|
|
8
|
+
except ImportError:
|
|
9
|
+
# Backwards compatibility for dash<=4.1.0
|
|
10
|
+
if typing.TYPE_CHECKING:
|
|
11
|
+
raise
|
|
12
|
+
NumberType = typing.Union[ # noqa: F401
|
|
13
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
17
|
+
ComponentType = typing.Union[
|
|
18
|
+
ComponentSingleType,
|
|
19
|
+
typing.Sequence[ComponentSingleType],
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class SelectInteraction(Component):
|
|
24
|
+
"""A SelectInteraction component.
|
|
25
|
+
Select vector features and report the current selection to Dash.
|
|
26
|
+
|
|
27
|
+
Keyword arguments:
|
|
28
|
+
|
|
29
|
+
- id (string; optional):
|
|
30
|
+
The ID used to identify this component in Dash callbacks.
|
|
31
|
+
|
|
32
|
+
- layerId (string; optional):
|
|
33
|
+
Dash ID of the vector layer to select from; omit to allow all
|
|
34
|
+
selectable layers.
|
|
35
|
+
|
|
36
|
+
- selectedGeoJSON (dict; optional):
|
|
37
|
+
Read-only: current selection as a GeoJSON FeatureCollection in
|
|
38
|
+
EPSG:4326."""
|
|
39
|
+
_children_props: typing.List[str] = []
|
|
40
|
+
_base_nodes = ['children']
|
|
41
|
+
_namespace = 'dash_openlayers'
|
|
42
|
+
_type = 'SelectInteraction'
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def __init__(
|
|
46
|
+
self,
|
|
47
|
+
id: typing.Optional[typing.Union[str, dict]] = None,
|
|
48
|
+
layerId: typing.Optional[str] = None,
|
|
49
|
+
selectedGeoJSON: typing.Optional[dict] = None,
|
|
50
|
+
**kwargs
|
|
51
|
+
):
|
|
52
|
+
self._prop_names = ['id', 'layerId', 'selectedGeoJSON']
|
|
53
|
+
self._valid_wildcard_attributes = []
|
|
54
|
+
self.available_properties = ['id', 'layerId', 'selectedGeoJSON']
|
|
55
|
+
self.available_wildcard_properties = []
|
|
56
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
57
|
+
_locals = locals()
|
|
58
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
59
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
60
|
+
|
|
61
|
+
super(SelectInteraction, self).__init__(**args)
|
|
62
|
+
|
|
63
|
+
setattr(SelectInteraction, "__init__", _explicitize_args(SelectInteraction.__init__))
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
try:
|
|
7
|
+
from dash.types import NumberType # noqa: F401
|
|
8
|
+
except ImportError:
|
|
9
|
+
# Backwards compatibility for dash<=4.1.0
|
|
10
|
+
if typing.TYPE_CHECKING:
|
|
11
|
+
raise
|
|
12
|
+
NumberType = typing.Union[ # noqa: F401
|
|
13
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
17
|
+
ComponentType = typing.Union[
|
|
18
|
+
ComponentSingleType,
|
|
19
|
+
typing.Sequence[ComponentSingleType],
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class TileLayer(Component):
|
|
24
|
+
"""A TileLayer component.
|
|
25
|
+
Render OpenStreetMap or custom XYZ tiles on the map.
|
|
26
|
+
|
|
27
|
+
Keyword arguments:
|
|
28
|
+
|
|
29
|
+
- id (string; optional):
|
|
30
|
+
The ID used to identify this layer in Dash callbacks.
|
|
31
|
+
|
|
32
|
+
- source (string; optional):
|
|
33
|
+
Built-in tile source identifier. Currently supports OSM.
|
|
34
|
+
|
|
35
|
+
- url (string; optional):
|
|
36
|
+
URL template for a custom XYZ tile source."""
|
|
37
|
+
_children_props: typing.List[str] = []
|
|
38
|
+
_base_nodes = ['children']
|
|
39
|
+
_namespace = 'dash_openlayers'
|
|
40
|
+
_type = 'TileLayer'
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def __init__(
|
|
44
|
+
self,
|
|
45
|
+
id: typing.Optional[typing.Union[str, dict]] = None,
|
|
46
|
+
source: typing.Optional[str] = None,
|
|
47
|
+
url: typing.Optional[str] = None,
|
|
48
|
+
**kwargs
|
|
49
|
+
):
|
|
50
|
+
self._prop_names = ['id', 'source', 'url']
|
|
51
|
+
self._valid_wildcard_attributes = []
|
|
52
|
+
self.available_properties = ['id', 'source', 'url']
|
|
53
|
+
self.available_wildcard_properties = []
|
|
54
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
55
|
+
_locals = locals()
|
|
56
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
57
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
58
|
+
|
|
59
|
+
super(TileLayer, self).__init__(**args)
|
|
60
|
+
|
|
61
|
+
setattr(TileLayer, "__init__", _explicitize_args(TileLayer.__init__))
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# AUTO GENERATED FILE - DO NOT EDIT
|
|
2
|
+
|
|
3
|
+
import typing # noqa: F401
|
|
4
|
+
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
|
|
5
|
+
from dash.development.base_component import Component, _explicitize_args
|
|
6
|
+
try:
|
|
7
|
+
from dash.types import NumberType # noqa: F401
|
|
8
|
+
except ImportError:
|
|
9
|
+
# Backwards compatibility for dash<=4.1.0
|
|
10
|
+
if typing.TYPE_CHECKING:
|
|
11
|
+
raise
|
|
12
|
+
NumberType = typing.Union[ # noqa: F401
|
|
13
|
+
typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
ComponentSingleType = typing.Union[str, int, float, Component, None]
|
|
17
|
+
ComponentType = typing.Union[
|
|
18
|
+
ComponentSingleType,
|
|
19
|
+
typing.Sequence[ComponentSingleType],
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class TileWMS(Component):
|
|
24
|
+
"""A TileWMS component.
|
|
25
|
+
Render a tiled OGC Web Map Service layer.
|
|
26
|
+
|
|
27
|
+
Keyword arguments:
|
|
28
|
+
|
|
29
|
+
- id (string; optional):
|
|
30
|
+
Component ID used to identify this layer in the Dash layout.
|
|
31
|
+
|
|
32
|
+
- url (string; optional):
|
|
33
|
+
OGC WMS endpoint URL.
|
|
34
|
+
|
|
35
|
+
- params (dict; optional):
|
|
36
|
+
WMS request parameters, including LAYERS; changes refresh the
|
|
37
|
+
source.
|
|
38
|
+
|
|
39
|
+
- serverType (a value equal to: 'carmentaserver', 'geoserver', 'mapserver', 'qgis'; optional):
|
|
40
|
+
WMS server type used for vendor-specific HiDPI request parameters."""
|
|
41
|
+
_children_props: typing.List[str] = []
|
|
42
|
+
_base_nodes = ['children']
|
|
43
|
+
_namespace = 'dash_openlayers'
|
|
44
|
+
_type = 'TileWMS'
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def __init__(
|
|
48
|
+
self,
|
|
49
|
+
id: typing.Optional[typing.Union[str, dict]] = None,
|
|
50
|
+
url: typing.Optional[str] = None,
|
|
51
|
+
params: typing.Optional[dict] = None,
|
|
52
|
+
serverType: typing.Optional[Literal["carmentaserver", "geoserver", "mapserver", "qgis"]] = None,
|
|
53
|
+
**kwargs
|
|
54
|
+
):
|
|
55
|
+
self._prop_names = ['id', 'url', 'params', 'serverType']
|
|
56
|
+
self._valid_wildcard_attributes = []
|
|
57
|
+
self.available_properties = ['id', 'url', 'params', 'serverType']
|
|
58
|
+
self.available_wildcard_properties = []
|
|
59
|
+
_explicit_args = kwargs.pop('_explicit_args')
|
|
60
|
+
_locals = locals()
|
|
61
|
+
_locals.update(kwargs) # For wildcard attrs and excess named props
|
|
62
|
+
args = {k: _locals[k] for k in _explicit_args}
|
|
63
|
+
|
|
64
|
+
super(TileWMS, self).__init__(**args)
|
|
65
|
+
|
|
66
|
+
setattr(TileWMS, "__init__", _explicitize_args(TileWMS.__init__))
|