django-extended-ol 0.1.0__py3-none-any.whl → 1.0.0__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.
Potentially problematic release.
This version of django-extended-ol might be problematic. Click here for more details.
- django_extended_ol/forms/widgets.py +0 -1
- {django_extended_ol-0.1.0.dist-info → django_extended_ol-1.0.0.dist-info}/METADATA +21 -5
- {django_extended_ol-0.1.0.dist-info → django_extended_ol-1.0.0.dist-info}/RECORD +6 -6
- {django_extended_ol-0.1.0.dist-info → django_extended_ol-1.0.0.dist-info}/LICENSE +0 -0
- {django_extended_ol-0.1.0.dist-info → django_extended_ol-1.0.0.dist-info}/WHEEL +0 -0
- {django_extended_ol-0.1.0.dist-info → django_extended_ol-1.0.0.dist-info}/top_level.txt +0 -0
|
@@ -10,7 +10,6 @@ class WMTSWidget(OpenLayersWidget):
|
|
|
10
10
|
(extent[0] + extent[2]) / 2,
|
|
11
11
|
(extent[1] + extent[3]) / 2,
|
|
12
12
|
]
|
|
13
|
-
print(center_from_extent)
|
|
14
13
|
widget_options = {
|
|
15
14
|
"wmts_layer_name": settings.OLWIDGET["wmts"].get("layer_name"),
|
|
16
15
|
"wmts_style": settings.OLWIDGET["wmts"]["style"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-extended-ol
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: An openlayers widget for Django with extended capabilities
|
|
5
5
|
Author-email: SITN <sitn@ne.ch>
|
|
6
6
|
Project-URL: Homepage, https://github.com/sitn/django-extended-ol
|
|
@@ -28,20 +28,26 @@ Requires-Dist: Django >=5.0
|
|
|
28
28
|
|
|
29
29
|
django-extended-ol is a Django app that extends the basic OpenLayers Widget.
|
|
30
30
|
|
|
31
|
+
Features:
|
|
32
|
+
|
|
31
33
|
* Custom WMTS base_layer with fixed resolutions
|
|
32
34
|
|
|
33
35
|
## Quick start
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
```sh
|
|
38
|
+
pip install django-extended-ol
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
1. Add "django_extended_ol" to your INSTALLED_APPS setting like this:
|
|
36
42
|
|
|
37
43
|
```python
|
|
38
44
|
INSTALLED_APPS = [
|
|
39
45
|
...,
|
|
40
|
-
"
|
|
46
|
+
"django_extended_ol",
|
|
41
47
|
]
|
|
42
48
|
```
|
|
43
49
|
|
|
44
|
-
2. Configure
|
|
50
|
+
2. Configure django_extended_ol in your settings.py, here's an example:
|
|
45
51
|
|
|
46
52
|
```python
|
|
47
53
|
OLWIDGET = {
|
|
@@ -68,7 +74,10 @@ OLWIDGET = {
|
|
|
68
74
|
3. You can now use WMTSWidget in your gis forms:
|
|
69
75
|
|
|
70
76
|
```python
|
|
71
|
-
|
|
77
|
+
from django_extended_ol.forms.widgets import WMTSWidget
|
|
78
|
+
...
|
|
79
|
+
class MyCustomGISClass:
|
|
80
|
+
gis_widget = WMTSWidget
|
|
72
81
|
```
|
|
73
82
|
|
|
74
83
|
4. You can also use it in your admin.py:
|
|
@@ -82,3 +91,10 @@ gis_widget = WMTSWidget
|
|
|
82
91
|
```
|
|
83
92
|
|
|
84
93
|
5. Start the development server and visit the admin.
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
# Build this package
|
|
97
|
+
|
|
98
|
+
```sh
|
|
99
|
+
py -m build
|
|
100
|
+
```
|
|
@@ -2,11 +2,11 @@ django_extended_ol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
2
2
|
django_extended_ol/admin.py,sha256=tE7_DtllUHuNSEpsKLkfUdLpSX7uhjZa-Q5y2UH7h7A,165
|
|
3
3
|
django_extended_ol/apps.py,sha256=hw3h5JXhThL1TSDfWa2wxwBTWvCHuaEHWb8axT_QP88,188
|
|
4
4
|
django_extended_ol/forms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
django_extended_ol/forms/widgets.py,sha256=
|
|
5
|
+
django_extended_ol/forms/widgets.py,sha256=u6P3G7lCCbtYnw6bMsQ5EAh5bZ2gsTKACL4PBHbT6yo,1681
|
|
6
6
|
django_extended_ol/static/olwidget/js/WMTSWidget.js,sha256=6fGzhd8wx20Oll_64fu7ZPfs9MZwj74vQYZ7hnanfxE,796
|
|
7
7
|
django_extended_ol/templates/gis/openlayers-wmts.html,sha256=4MhZr_ldK_w7t2sswmHjTekX_P_js9SsXHW_0ESBSPw,1926
|
|
8
|
-
django_extended_ol-
|
|
9
|
-
django_extended_ol-
|
|
10
|
-
django_extended_ol-
|
|
11
|
-
django_extended_ol-
|
|
12
|
-
django_extended_ol-
|
|
8
|
+
django_extended_ol-1.0.0.dist-info/LICENSE,sha256=0uvSPKfP0VUrQ1XqeXD62tYc54cfQqt21YI9lWW9hq8,1564
|
|
9
|
+
django_extended_ol-1.0.0.dist-info/METADATA,sha256=OUyTNy8FtaC14xCuwMwlwtOgeN8mcAvPm2vT8lRLLh0,2954
|
|
10
|
+
django_extended_ol-1.0.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
11
|
+
django_extended_ol-1.0.0.dist-info/top_level.txt,sha256=rX8AqitfQu0etd6PoOeNxcRl5fsus-YOs932PGUjDIs,19
|
|
12
|
+
django_extended_ol-1.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|