django-extended-ol 1.1.3__py3-none-any.whl → 1.1.4__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.

@@ -45,4 +45,4 @@ class WMTSWithSearchWidget(WMTSWidget):
45
45
  widget_options = {
46
46
  **WMTSWidget.widget_options,
47
47
  "search_url": settings.OLWIDGET["search"].get("url_template", None)
48
- }
48
+ }
@@ -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
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
- 4. You can also use it in your admin.py:
98
+ 1. You can also use it in your admin.py:
91
99
 
92
100
  ```python
93
101
  from django.contrib.gis import admin
@@ -0,0 +1,13 @@
1
+ django_extended_ol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ django_extended_ol/admin.py,sha256=gmm3dZHcCwop1QNm5RJr2iHkBUPqWdDexe80espo32g,281
3
+ django_extended_ol/apps.py,sha256=hw3h5JXhThL1TSDfWa2wxwBTWvCHuaEHWb8axT_QP88,188
4
+ django_extended_ol/forms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ django_extended_ol/forms/widgets.py,sha256=FB5OoNT50mGOfIex3Bo_IJUS6jamsgVbjDUhT9iB5og,1989
6
+ django_extended_ol/static/olwidget/css/WMTSWidget.css,sha256=uiHm9Ku2fLVyf5CW50iMblRwpouxtVDlAX0u1c8GAjk,560
7
+ django_extended_ol/static/olwidget/js/WMTSWidget.js,sha256=fS9hCvChKIIvJasDJt75Rh3Am0yJjrlL229w_rRkU3I,3152
8
+ django_extended_ol/templates/gis/openlayers-wmts.html,sha256=-k7E9VeiKVo6ZZj4oB258ORjU1jbgPiXdcoxKoEbnjk,2180
9
+ django_extended_ol-1.1.4.dist-info/licenses/LICENSE,sha256=0uvSPKfP0VUrQ1XqeXD62tYc54cfQqt21YI9lWW9hq8,1564
10
+ django_extended_ol-1.1.4.dist-info/METADATA,sha256=XvpATfR5Vyoj8_V3ZDLgLJpfftuYSNqZhr6ROyNrmVA,3810
11
+ django_extended_ol-1.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ django_extended_ol-1.1.4.dist-info/top_level.txt,sha256=rX8AqitfQu0etd6PoOeNxcRl5fsus-YOs932PGUjDIs,19
13
+ django_extended_ol-1.1.4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.0.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,13 +0,0 @@
1
- django_extended_ol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- django_extended_ol/admin.py,sha256=gmm3dZHcCwop1QNm5RJr2iHkBUPqWdDexe80espo32g,281
3
- django_extended_ol/apps.py,sha256=hw3h5JXhThL1TSDfWa2wxwBTWvCHuaEHWb8axT_QP88,188
4
- django_extended_ol/forms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- django_extended_ol/forms/widgets.py,sha256=QvqDtWdBoFsG_IGW9QaEHEVgud49mD-0d4rjxq1cMqE,1987
6
- django_extended_ol/static/olwidget/css/WMTSWidget.css,sha256=XJMYke2U8Rv83Crvu-tTIzP3zTA4v-J52FikbAi0vug,542
7
- django_extended_ol/static/olwidget/js/WMTSWidget.js,sha256=fS9hCvChKIIvJasDJt75Rh3Am0yJjrlL229w_rRkU3I,3152
8
- django_extended_ol/templates/gis/openlayers-wmts.html,sha256=zSsGwdN8bESYHq-OTx4__fgbB_Kn50dYgWFTfzd2w00,2231
9
- django_extended_ol-1.1.3.dist-info/licenses/LICENSE,sha256=0uvSPKfP0VUrQ1XqeXD62tYc54cfQqt21YI9lWW9hq8,1564
10
- django_extended_ol-1.1.3.dist-info/METADATA,sha256=hlgufgRrDzsI2vkgpf3yfarscLrw74jBmpIAnKDkO8M,3663
11
- django_extended_ol-1.1.3.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
12
- django_extended_ol-1.1.3.dist-info/top_level.txt,sha256=rX8AqitfQu0etd6PoOeNxcRl5fsus-YOs932PGUjDIs,19
13
- django_extended_ol-1.1.3.dist-info/RECORD,,