umap-project 2.4.0b0__py3-none-any.whl → 2.4.0b1__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.
- umap/__init__.py +1 -1
- umap/static/umap/base.css +7 -10
- umap/static/umap/js/modules/importer.js +24 -7
- {umap_project-2.4.0b0.dist-info → umap_project-2.4.0b1.dist-info}/METADATA +1 -1
- {umap_project-2.4.0b0.dist-info → umap_project-2.4.0b1.dist-info}/RECORD +8 -8
- {umap_project-2.4.0b0.dist-info → umap_project-2.4.0b1.dist-info}/WHEEL +0 -0
- {umap_project-2.4.0b0.dist-info → umap_project-2.4.0b1.dist-info}/entry_points.txt +0 -0
- {umap_project-2.4.0b0.dist-info → umap_project-2.4.0b1.dist-info}/licenses/LICENSE +0 -0
umap/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = "2.4.
|
|
1
|
+
VERSION = "2.4.0b1"
|
umap/static/umap/base.css
CHANGED
|
@@ -203,27 +203,24 @@ input[type=checkbox]:checked:after {
|
|
|
203
203
|
label input[type="radio"] {
|
|
204
204
|
appearance: none;
|
|
205
205
|
margin-right: 10px;
|
|
206
|
+
background: var(--color-darkGray);
|
|
206
207
|
}
|
|
207
208
|
input[type="radio"]:after {
|
|
208
209
|
display: inline-block;
|
|
209
|
-
content: '
|
|
210
|
-
width:
|
|
211
|
-
height:
|
|
210
|
+
content: '⦾';
|
|
211
|
+
width: 16px;
|
|
212
|
+
height: 16px;
|
|
212
213
|
border-radius: 50%;
|
|
213
|
-
border: 1px solid var(--color-lightGray);
|
|
214
214
|
cursor: pointer;
|
|
215
215
|
text-align: center;
|
|
216
|
-
font-size: 1.3rem;
|
|
217
|
-
line-height: 1rem;
|
|
218
216
|
vertical-align: bottom;
|
|
217
|
+
font-size: 1.2rem;
|
|
218
|
+
line-height: 0.7;
|
|
219
219
|
}
|
|
220
220
|
label input[type="radio"]:checked:after {
|
|
221
221
|
background-color: var(--color-lightCyan);
|
|
222
|
-
content: '•';
|
|
223
|
-
font-size: 3rem;
|
|
224
|
-
line-height: 0.8rem;
|
|
225
222
|
color: var(--color-darkGray);
|
|
226
|
-
|
|
223
|
+
content: '⦿';
|
|
227
224
|
}
|
|
228
225
|
|
|
229
226
|
input[data-modified=true] {
|
|
@@ -12,14 +12,16 @@ const TEMPLATE = `
|
|
|
12
12
|
<input type="file" multiple autofocus onchange />
|
|
13
13
|
<input type="url" placeholder="${translate('Provide an URL here')}" onchange />
|
|
14
14
|
<textarea onchange placeholder="${translate('Paste your data here')}"></textarea>
|
|
15
|
-
<div class="importers">
|
|
15
|
+
<div class="importers" hidden>
|
|
16
16
|
<h4>${translate('Import helpers:')}</h4>
|
|
17
17
|
<ul class="grid-container">
|
|
18
18
|
</ul>
|
|
19
19
|
</div>
|
|
20
20
|
</fieldset>
|
|
21
21
|
<fieldset class="formbox">
|
|
22
|
-
<legend class="counter" data-help="importFormats">${translate(
|
|
22
|
+
<legend class="counter" data-help="importFormats">${translate(
|
|
23
|
+
'Choose the format'
|
|
24
|
+
)}</legend>
|
|
23
25
|
<select name="format" onchange></select>
|
|
24
26
|
</fieldset>
|
|
25
27
|
<fieldset id="destination" class="formbox">
|
|
@@ -55,10 +57,25 @@ export default class Importer {
|
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
loadImporters() {
|
|
58
|
-
for (const
|
|
59
|
-
|
|
60
|
-
this.IMPORTERS.push(new mod.Importer(this.map,
|
|
61
|
-
}
|
|
60
|
+
for (const [name, config] of Object.entries(this.map.options.importers || {})) {
|
|
61
|
+
const register = (mod) => {
|
|
62
|
+
this.IMPORTERS.push(new mod.Importer(this.map, config))
|
|
63
|
+
}
|
|
64
|
+
// We need to have explicit static paths for Django's collectstatic with hashes.
|
|
65
|
+
switch (name) {
|
|
66
|
+
case 'geodatamine':
|
|
67
|
+
import('./importers/geodatamine.js').then(register)
|
|
68
|
+
break
|
|
69
|
+
case 'communesfr':
|
|
70
|
+
import('./importers/communesfr.js').then(register)
|
|
71
|
+
break
|
|
72
|
+
case 'overpass':
|
|
73
|
+
import('./importers/overpass.js').then(register)
|
|
74
|
+
break
|
|
75
|
+
case 'datasets':
|
|
76
|
+
import('./importers/datasets.js').then(register)
|
|
77
|
+
break
|
|
78
|
+
}
|
|
62
79
|
}
|
|
63
80
|
}
|
|
64
81
|
|
|
@@ -132,7 +149,7 @@ export default class Importer {
|
|
|
132
149
|
for (const plugin of this.IMPORTERS.sort((a, b) => (a.id > b.id ? 1 : -1))) {
|
|
133
150
|
L.DomUtil.createButton(
|
|
134
151
|
plugin.id,
|
|
135
|
-
DomUtil.element({tagName: 'li', parent}),
|
|
152
|
+
DomUtil.element({ tagName: 'li', parent }),
|
|
136
153
|
plugin.name,
|
|
137
154
|
() => plugin.open(this)
|
|
138
155
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
umap/.DS_Store,sha256=B4-anBIm7kFQicJnbjnO-JSfRpv0HVyvhdun5qug0zM,6148
|
|
2
|
-
umap/__init__.py,sha256=
|
|
2
|
+
umap/__init__.py,sha256=xbIuSa3jWXV1nXp8BdijnVJ5W7sRppyos9mnJ3cEwUo,20
|
|
3
3
|
umap/admin.py,sha256=gL6zrexmDbIKIqOKHCuAM5wtqr8FIQkRtjbcXcNyBrs,749
|
|
4
4
|
umap/apps.py,sha256=5ssKqPUuNJlapaBmr4LY_HDb7J1NFCT3wzythxQOOfs,109
|
|
5
5
|
umap/autocomplete.py,sha256=WUsbsVBl_KzzEzxB4g3rAoS5-eEvCZGtelVzXeOFV90,444
|
|
@@ -146,7 +146,7 @@ umap/settings/local.py.sample,sha256=wpnoe7qtXer_xBuhWbcbqcSCotTJRu6h8hG7N-sD0b4
|
|
|
146
146
|
umap/static/.DS_Store,sha256=1lFlJ5EFymdzGAUAaI30vcaaLHt3F1LwpG7xILf9jsM,6148
|
|
147
147
|
umap/static/.gitignore,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
148
148
|
umap/static/umap/.DS_Store,sha256=25wUHAzNlKKNi8zJzUdKYuHD2pgYZXNNmvaeGbIAYkM,6148
|
|
149
|
-
umap/static/umap/base.css,sha256=
|
|
149
|
+
umap/static/umap/base.css,sha256=HmOZZmeZACdMgetiI2cygSt-Z2s8WloH0HOEzRt4y58,17131
|
|
150
150
|
umap/static/umap/bitbucket.png,sha256=Z-xsnM3QOUn9tJQ0RjPXCpALghrzaDDZP7wSePSjSr8,9125
|
|
151
151
|
umap/static/umap/content.css,sha256=3aFi5hHUuokCqdW_xQuEDyS6vW1ahSdjbSPPnFNutbk,11429
|
|
152
152
|
umap/static/umap/font.css,sha256=fYmTKNd_Ts6TrmBbnLRgyeUS4vpfxkEqhLR-pkd3KrA,904
|
|
@@ -238,7 +238,7 @@ umap/static/umap/js/modules/facets.js,sha256=H7RtTKbpCMQa68GIRqkUtmKfDYqrv6pcTSL
|
|
|
238
238
|
umap/static/umap/js/modules/global.js,sha256=IBFJfeOs9Dt3bM-6D7hzKuFPbIqcPFhp5XRViGcNmH4,1312
|
|
239
239
|
umap/static/umap/js/modules/help.js,sha256=kNbDZM2RgVbC1d3HgJAELM2tadgulIFnTCdgveTmcNg,9850
|
|
240
240
|
umap/static/umap/js/modules/i18n.js,sha256=dEpjsWoEZa-Tr5_MDO0tuWkt7kLL3crxXqhttyP-khU,1387
|
|
241
|
-
umap/static/umap/js/modules/importer.js,sha256=
|
|
241
|
+
umap/static/umap/js/modules/importer.js,sha256=8P-stI1hkDid7_RJw6ODDjpSCk1e668YGEX-O_TjR9k,8440
|
|
242
242
|
umap/static/umap/js/modules/leaflet-configure.js,sha256=P3aD8iNGxuVNv-xW4Di4txAjNmnlpKtCCzDvPaKEdQ8,243
|
|
243
243
|
umap/static/umap/js/modules/orderable.js,sha256=E3FgVeQG1iEnu56M7KIYOwV1ngNyrF8yXVEs0jExbjc,2518
|
|
244
244
|
umap/static/umap/js/modules/request.js,sha256=Ax1h2dIW2rRiS93v78iHYVCBHTMIIp6RIomW-pk99Fs,3881
|
|
@@ -537,8 +537,8 @@ umap/tests/integration/test_view_marker.py,sha256=Y45rDzhScKsHz7_JgK46tRd29qrBLx
|
|
|
537
537
|
umap/tests/integration/test_view_polygon.py,sha256=I7wR6DUrictIMrCPKajCrruJVLry4ZRDdjSs8q0XaOg,1829
|
|
538
538
|
umap/tests/integration/test_view_polyline.py,sha256=n1QVIdl-Xg9yN9o-Jc6VnPhFAuUspsgY0odiUe_jJC4,1598
|
|
539
539
|
umap/tests/integration/test_websocket_sync.py,sha256=r2qlo7KUdPbX58gMJDNg-C1ZuDNSNT105wOUA6GJRMI,10487
|
|
540
|
-
umap_project-2.4.
|
|
541
|
-
umap_project-2.4.
|
|
542
|
-
umap_project-2.4.
|
|
543
|
-
umap_project-2.4.
|
|
544
|
-
umap_project-2.4.
|
|
540
|
+
umap_project-2.4.0b1.dist-info/METADATA,sha256=i0uZQSAsUaq66etOskqrJcamR1SZy_7YvgArRnz2mAg,2682
|
|
541
|
+
umap_project-2.4.0b1.dist-info/WHEEL,sha256=9QBuHhg6FNW7lppboF2vKVbCGTVzsFykgRQjjlajrhA,87
|
|
542
|
+
umap_project-2.4.0b1.dist-info/entry_points.txt,sha256=gz-KDQfEsMLBae8ABOD3foJsCYGPW1tA4Y394R_1RW8,39
|
|
543
|
+
umap_project-2.4.0b1.dist-info/licenses/LICENSE,sha256=kQtrtRKgiPhcl7aO0-lmvbrNAXu7WHyiXvPrUk-TD2Q,820
|
|
544
|
+
umap_project-2.4.0b1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|