django-extended-ol 1.1.3__tar.gz → 1.1.4__tar.gz
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-1.1.3/django_extended_ol.egg-info → django_extended_ol-1.1.4}/PKG-INFO +10 -2
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/README.md +9 -1
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol/forms/widgets.py +1 -1
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol/static/olwidget/css/WMTSWidget.css +3 -3
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol/templates/gis/openlayers-wmts.html +6 -6
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4/django_extended_ol.egg-info}/PKG-INFO +10 -2
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/pyproject.toml +1 -1
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/LICENSE +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/MANIFEST.in +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol/__init__.py +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol/admin.py +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol/apps.py +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol/forms/__init__.py +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol/static/olwidget/js/WMTSWidget.js +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol.egg-info/SOURCES.txt +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol.egg-info/dependency_links.txt +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol.egg-info/requires.txt +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol.egg-info/top_level.txt +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/setup.cfg +0 -0
- {django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-extended-ol
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: An openlayers widget for Django with extended capabilities
|
|
5
5
|
Author-email: SITN <sitn@ne.ch>, maltaesousa <stephane.maltaesousa@ne.ch>
|
|
6
6
|
Project-URL: Homepage, https://github.com/sitn/sitn-django-plugins
|
|
@@ -85,9 +85,17 @@ class MyCustomGISClass:
|
|
|
85
85
|
gis_widget = WMTSWidget
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
+
Note that CSS is not provided by default, you have to give your map a height like:
|
|
89
|
+
|
|
90
|
+
```css
|
|
91
|
+
.dj_map {
|
|
92
|
+
height: 400px;
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
88
96
|
If you want a search widget, you can use `WMTSWithSearchWidget`. Please check search service specification below.
|
|
89
97
|
|
|
90
|
-
|
|
98
|
+
1. You can also use it in your admin.py:
|
|
91
99
|
|
|
92
100
|
```python
|
|
93
101
|
from django.contrib.gis import admin
|
|
@@ -58,9 +58,17 @@ class MyCustomGISClass:
|
|
|
58
58
|
gis_widget = WMTSWidget
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
+
Note that CSS is not provided by default, you have to give your map a height like:
|
|
62
|
+
|
|
63
|
+
```css
|
|
64
|
+
.dj_map {
|
|
65
|
+
height: 400px;
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
61
69
|
If you want a search widget, you can use `WMTSWithSearchWidget`. Please check search service specification below.
|
|
62
70
|
|
|
63
|
-
|
|
71
|
+
1. You can also use it in your admin.py:
|
|
64
72
|
|
|
65
73
|
```python
|
|
66
74
|
from django.contrib.gis import admin
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.ext-ol-autocomplete-results {
|
|
8
|
-
border: 1px solid var(--border-color);
|
|
8
|
+
border: 1px solid var(--border-color, #CCC);
|
|
9
9
|
max-height: 200px;
|
|
10
10
|
overflow-y: auto;
|
|
11
|
-
background-color: var(--darkened-bg);
|
|
11
|
+
background-color: var(--darkened-bg, #FFF);
|
|
12
12
|
color: var(--body-fg);
|
|
13
13
|
width: 20em;
|
|
14
14
|
position: absolute;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.ext-ol-autocomplete-results div:hover {
|
|
25
|
-
background-color: var(--darkened-bg);
|
|
25
|
+
background-color: var(--darkened-bg, #FFF);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.ext-ol-hidden {
|
|
@@ -6,12 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
<div id="{{ id }}_div_map" class="dj_map_wrapper">
|
|
8
8
|
<div id="{{ id }}_map" class="dj_map"></div>
|
|
9
|
-
{% if search_url %}
|
|
10
|
-
<div id="{{ id }}_input_search" class="ext-ol-search-widget">
|
|
11
|
-
<input type="text" class="vTextField ext-ol-search" name="search">
|
|
12
|
-
<div class="ext-ol-autocomplete-results ext-ol-hidden"></div>
|
|
13
|
-
</div>
|
|
14
|
-
{% endif %}
|
|
15
9
|
{% if not disabled %}<span class="clear_features"><a href="">{% translate "Delete all Features" %}</a></span>{% endif %}
|
|
16
10
|
{% if display_raw %}<p>{% translate "Debugging window (serialized value)" %}</p>{% endif %}
|
|
17
11
|
<textarea id="{{ id }}" class="vSerializedField required" cols="150" rows="10" name="{{ name }}"
|
|
@@ -64,4 +58,10 @@ options.search_url = '{{ search_url|safe }}';
|
|
|
64
58
|
|
|
65
59
|
var {{ module }} = new WMTSWidget(options);
|
|
66
60
|
</script>
|
|
61
|
+
{% if search_url %}
|
|
62
|
+
<div class="ext-ol-search-widget">
|
|
63
|
+
<input type="text" class="vTextField ext-ol-search" name="search">
|
|
64
|
+
<div class="ext-ol-autocomplete-results ext-ol-hidden"></div>
|
|
65
|
+
</div>
|
|
66
|
+
{% endif %}
|
|
67
67
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-extended-ol
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: An openlayers widget for Django with extended capabilities
|
|
5
5
|
Author-email: SITN <sitn@ne.ch>, maltaesousa <stephane.maltaesousa@ne.ch>
|
|
6
6
|
Project-URL: Homepage, https://github.com/sitn/sitn-django-plugins
|
|
@@ -85,9 +85,17 @@ class MyCustomGISClass:
|
|
|
85
85
|
gis_widget = WMTSWidget
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
+
Note that CSS is not provided by default, you have to give your map a height like:
|
|
89
|
+
|
|
90
|
+
```css
|
|
91
|
+
.dj_map {
|
|
92
|
+
height: 400px;
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
88
96
|
If you want a search widget, you can use `WMTSWithSearchWidget`. Please check search service specification below.
|
|
89
97
|
|
|
90
|
-
|
|
98
|
+
1. You can also use it in your admin.py:
|
|
91
99
|
|
|
92
100
|
```python
|
|
93
101
|
from django.contrib.gis import admin
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol.egg-info/requires.txt
RENAMED
|
File without changes
|
{django_extended_ol-1.1.3 → django_extended_ol-1.1.4}/django_extended_ol.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|