umap-project 3.4.0b2__py3-none-any.whl → 3.4.0b3__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.
Files changed (144) hide show
  1. umap/__init__.py +1 -1
  2. umap/locale/da/LC_MESSAGES/django.mo +0 -0
  3. umap/locale/da/LC_MESSAGES/django.po +2 -2
  4. umap/locale/en/LC_MESSAGES/django.po +14 -14
  5. umap/migrations/0018_datalayer_uuid.py +1 -1
  6. umap/models.py +1 -1
  7. umap/settings/local.py.sample +1 -1
  8. umap/static/umap/css/form.css +2 -2
  9. umap/static/umap/js/components/base.js +1 -1
  10. umap/static/umap/js/modules/browser.js +4 -4
  11. umap/static/umap/js/modules/data/features.js +1 -1
  12. umap/static/umap/js/modules/data/fields.js +280 -0
  13. umap/static/umap/js/modules/data/layer.js +6 -8
  14. umap/static/umap/js/modules/domutils.js +3 -3
  15. umap/static/umap/js/modules/filters.js +7 -7
  16. umap/static/umap/js/modules/help.js +1 -1
  17. umap/static/umap/js/modules/i18n.js +1 -1
  18. umap/static/umap/js/modules/importer.js +1 -1
  19. umap/static/umap/js/modules/managers.js +0 -264
  20. umap/static/umap/js/modules/rendering/controls.js +4 -2
  21. umap/static/umap/js/modules/rendering/layers/classified.js +1 -1
  22. umap/static/umap/js/modules/rendering/layers/heat.js +26 -21
  23. umap/static/umap/js/modules/rendering/template.js +4 -4
  24. umap/static/umap/js/modules/ui/dialog.js +10 -1
  25. umap/static/umap/js/modules/ui/panel.js +2 -2
  26. umap/static/umap/js/modules/umap.js +9 -4
  27. umap/static/umap/js/modules/utils.js +1 -1
  28. umap/static/umap/locale/am_ET.js +14 -5
  29. umap/static/umap/locale/am_ET.json +14 -5
  30. umap/static/umap/locale/ar.js +14 -5
  31. umap/static/umap/locale/ar.json +14 -5
  32. umap/static/umap/locale/ast.js +14 -5
  33. umap/static/umap/locale/ast.json +14 -5
  34. umap/static/umap/locale/bg.js +14 -5
  35. umap/static/umap/locale/bg.json +14 -5
  36. umap/static/umap/locale/br.js +1 -1
  37. umap/static/umap/locale/br.json +1 -1
  38. umap/static/umap/locale/ca.js +14 -5
  39. umap/static/umap/locale/ca.json +14 -5
  40. umap/static/umap/locale/cs_CZ.js +14 -5
  41. umap/static/umap/locale/cs_CZ.json +14 -5
  42. umap/static/umap/locale/da.js +48 -39
  43. umap/static/umap/locale/da.json +48 -39
  44. umap/static/umap/locale/de.js +14 -5
  45. umap/static/umap/locale/de.json +14 -5
  46. umap/static/umap/locale/el.js +14 -5
  47. umap/static/umap/locale/el.json +14 -5
  48. umap/static/umap/locale/en.js +14 -5
  49. umap/static/umap/locale/en.json +14 -5
  50. umap/static/umap/locale/en_US.json +14 -5
  51. umap/static/umap/locale/es.js +49 -40
  52. umap/static/umap/locale/es.json +49 -40
  53. umap/static/umap/locale/et.js +14 -5
  54. umap/static/umap/locale/et.json +14 -5
  55. umap/static/umap/locale/eu.js +14 -5
  56. umap/static/umap/locale/eu.json +14 -5
  57. umap/static/umap/locale/fa_IR.js +14 -5
  58. umap/static/umap/locale/fa_IR.json +14 -5
  59. umap/static/umap/locale/fi.js +14 -5
  60. umap/static/umap/locale/fi.json +14 -5
  61. umap/static/umap/locale/fr.js +14 -5
  62. umap/static/umap/locale/fr.json +14 -5
  63. umap/static/umap/locale/gl.js +14 -5
  64. umap/static/umap/locale/gl.json +14 -5
  65. umap/static/umap/locale/he.js +14 -5
  66. umap/static/umap/locale/he.json +14 -5
  67. umap/static/umap/locale/hr.js +14 -5
  68. umap/static/umap/locale/hr.json +14 -5
  69. umap/static/umap/locale/hu.js +56 -47
  70. umap/static/umap/locale/hu.json +56 -47
  71. umap/static/umap/locale/id.js +14 -5
  72. umap/static/umap/locale/id.json +14 -5
  73. umap/static/umap/locale/is.js +14 -5
  74. umap/static/umap/locale/is.json +14 -5
  75. umap/static/umap/locale/it.js +14 -5
  76. umap/static/umap/locale/it.json +14 -5
  77. umap/static/umap/locale/ja.js +14 -5
  78. umap/static/umap/locale/ja.json +14 -5
  79. umap/static/umap/locale/ko.js +14 -5
  80. umap/static/umap/locale/ko.json +14 -5
  81. umap/static/umap/locale/lt.js +14 -5
  82. umap/static/umap/locale/lt.json +14 -5
  83. umap/static/umap/locale/ms.js +14 -5
  84. umap/static/umap/locale/ms.json +14 -5
  85. umap/static/umap/locale/nl.js +14 -5
  86. umap/static/umap/locale/nl.json +14 -5
  87. umap/static/umap/locale/no.js +14 -5
  88. umap/static/umap/locale/no.json +14 -5
  89. umap/static/umap/locale/pl.js +14 -5
  90. umap/static/umap/locale/pl.json +14 -5
  91. umap/static/umap/locale/pl_PL.json +14 -5
  92. umap/static/umap/locale/pt.js +14 -5
  93. umap/static/umap/locale/pt.json +14 -5
  94. umap/static/umap/locale/pt_BR.js +14 -5
  95. umap/static/umap/locale/pt_BR.json +14 -5
  96. umap/static/umap/locale/pt_PT.js +14 -5
  97. umap/static/umap/locale/pt_PT.json +14 -5
  98. umap/static/umap/locale/ro.js +14 -5
  99. umap/static/umap/locale/ro.json +14 -5
  100. umap/static/umap/locale/ru.js +14 -5
  101. umap/static/umap/locale/ru.json +14 -5
  102. umap/static/umap/locale/si.js +1 -1
  103. umap/static/umap/locale/si.json +1 -1
  104. umap/static/umap/locale/sk_SK.js +14 -5
  105. umap/static/umap/locale/sk_SK.json +14 -5
  106. umap/static/umap/locale/sl.js +14 -5
  107. umap/static/umap/locale/sl.json +14 -5
  108. umap/static/umap/locale/sr.js +14 -5
  109. umap/static/umap/locale/sr.json +14 -5
  110. umap/static/umap/locale/sv.js +14 -5
  111. umap/static/umap/locale/sv.json +14 -5
  112. umap/static/umap/locale/th_TH.js +14 -5
  113. umap/static/umap/locale/th_TH.json +14 -5
  114. umap/static/umap/locale/tr.js +14 -5
  115. umap/static/umap/locale/tr.json +14 -5
  116. umap/static/umap/locale/uk_UA.js +14 -5
  117. umap/static/umap/locale/uk_UA.json +14 -5
  118. umap/static/umap/locale/vi.js +14 -5
  119. umap/static/umap/locale/vi.json +14 -5
  120. umap/static/umap/locale/vi_VN.json +14 -5
  121. umap/static/umap/locale/zh.js +14 -5
  122. umap/static/umap/locale/zh.json +14 -5
  123. umap/static/umap/locale/zh_CN.json +14 -5
  124. umap/static/umap/locale/zh_TW.Big5.json +14 -5
  125. umap/static/umap/locale/zh_TW.js +47 -38
  126. umap/static/umap/locale/zh_TW.json +47 -38
  127. umap/templates/umap/login_popup_end.html +2 -2
  128. umap/tests/integration/conftest.py +8 -0
  129. umap/tests/integration/test_anonymous_owned_map.py +1 -1
  130. umap/tests/integration/test_conditional_rules.py +1 -1
  131. umap/tests/integration/test_filters.py +6 -7
  132. umap/tests/integration/test_map_preview.py +1 -1
  133. umap/tests/integration/test_picto.py +1 -1
  134. umap/tests/integration/test_save.py +1 -1
  135. umap/tests/integration/test_websocket_sync.py +63 -19
  136. umap/tests/test_dashboard.py +1 -1
  137. umap/tests/test_statics.py +2 -2
  138. umap/tests/test_views.py +1 -1
  139. umap/utils.py +1 -1
  140. {umap_project-3.4.0b2.dist-info → umap_project-3.4.0b3.dist-info}/METADATA +4 -4
  141. {umap_project-3.4.0b2.dist-info → umap_project-3.4.0b3.dist-info}/RECORD +144 -143
  142. {umap_project-3.4.0b2.dist-info → umap_project-3.4.0b3.dist-info}/WHEEL +0 -0
  143. {umap_project-3.4.0b2.dist-info → umap_project-3.4.0b3.dist-info}/entry_points.txt +0 -0
  144. {umap_project-3.4.0b2.dist-info → umap_project-3.4.0b3.dist-info}/licenses/LICENSE +0 -0
@@ -70,7 +70,7 @@
70
70
  "color": "color",
71
71
  "Comma separated list of numbers, including min and max values.": "Comma separated list of numbers, including min and max values.",
72
72
  "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.": "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.",
73
- "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.",
73
+ "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.",
74
74
  "Congratulations, your map has been created!": "Congratulations, your map has been created!",
75
75
  "Continue line": "Continue line",
76
76
  "Coordinates": "Coordinates",
@@ -159,7 +159,6 @@
159
159
  "Go to \"{coords}\"": "Go to \"{coords}\"",
160
160
  "Go to the homepage": "Go to the homepage",
161
161
  "Go to «{feature}»": "Go to «{feature}»",
162
- "Heatmap intensity property": "Heatmap intensity property",
163
162
  "Heatmap radius": "Heatmap radius",
164
163
  "Heatmap": "Heatmap",
165
164
  "height": "height",
@@ -255,7 +254,6 @@
255
254
  "Open share & download panel": "Open share & download panel",
256
255
  "Open this map extent in a map editor to provide more accurate data to OpenStreetMap": "Open this map extent in a map editor to provide more accurate data to OpenStreetMap",
257
256
  "OpenStreetMap": "OpenStreetMap",
258
- "Optional intensity property for heatmap": "Optional intensity property for heatmap",
259
257
  "Optional. Same as color if not set.": "Optional. Same as color if not set.",
260
258
  "Optional.": "Optional.",
261
259
  "Override clustering radius (default 80)": "Override clustering radius (default 80)",
@@ -631,7 +629,6 @@
631
629
  "Are you sure you want to delete this field on all the data?": "Are you sure you want to delete this field on all the data?",
632
630
  "Anonymous map": "Anonymous map",
633
631
  "Edit filter for this field": "Edit filter for this field",
634
- "Fields, filters and keys": "Fields, filters and keys",
635
632
  "Hey, you created a map without an account!": "Hey, you created a map without an account!",
636
633
  "This map is anonymous, do you want to attach it to your account?": "This map is anonymous, do you want to attach it to your account?",
637
634
  "The map has been upgraded to latest version, please save it.": "The map has been upgraded to latest version, please save it.",
@@ -641,5 +638,17 @@
641
638
  "Wikipedia contributors": "Wikipedia contributors",
642
639
  "See on Wikipedia": "See on Wikipedia",
643
640
  "Anonymous map: update who can see and edit it": "Anonymous map: update who can see and edit it",
644
- "Login": "Login"
641
+ "Login": "Login",
642
+ "Manage filters": "Manage filters",
643
+ "Map (all layers)": "Map (all layers)",
644
+ "Add a filter for this field": "Add a filter for this field",
645
+ "Short text": "Short text",
646
+ "Text": "Text",
647
+ "Number": "Number",
648
+ "Date": "Date",
649
+ "Date and time": "Date and time",
650
+ "List of values": "List of values",
651
+ "Yes / No": "Yes / No",
652
+ "Select field to compute intensity": "Select field to compute intensity",
653
+ "Optional intensity field to compute heatmap": "Optional intensity field to compute heatmap"
645
654
  }
@@ -70,7 +70,7 @@ const locale = {
70
70
  "color": "颜色",
71
71
  "Comma separated list of numbers, including min and max values.": "Comma separated list of numbers, including min and max values.",
72
72
  "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.": "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.",
73
- "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.",
73
+ "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.",
74
74
  "Congratulations, your map has been created!": "Congratulations, your map has been created!",
75
75
  "Continue line": "Continue line",
76
76
  "Coordinates": "坐标",
@@ -159,7 +159,6 @@ const locale = {
159
159
  "Go to \"{coords}\"": "Go to \"{coords}\"",
160
160
  "Go to the homepage": "Go to the homepage",
161
161
  "Go to «{feature}»": "转到«{feature}»",
162
- "Heatmap intensity property": "Heatmap intensity property",
163
162
  "Heatmap radius": "Heatmap radius",
164
163
  "Heatmap": "Heatmap",
165
164
  "height": "高",
@@ -255,7 +254,6 @@ const locale = {
255
254
  "Open share & download panel": "Open share & download panel",
256
255
  "Open this map extent in a map editor to provide more accurate data to OpenStreetMap": "Open this map extent in a map editor to provide more accurate data to OpenStreetMap",
257
256
  "OpenStreetMap": "OpenStreetMap",
258
- "Optional intensity property for heatmap": "Optional intensity property for heatmap",
259
257
  "Optional. Same as color if not set.": "Optional. Same as color if not set.",
260
258
  "Optional.": "Optional.",
261
259
  "Override clustering radius (default 80)": "Override clustering radius (default 80)",
@@ -631,7 +629,6 @@ const locale = {
631
629
  "Are you sure you want to delete this field on all the data?": "Are you sure you want to delete this field on all the data?",
632
630
  "Anonymous map": "Anonymous map",
633
631
  "Edit filter for this field": "Edit filter for this field",
634
- "Fields, filters and keys": "Fields, filters and keys",
635
632
  "Hey, you created a map without an account!": "Hey, you created a map without an account!",
636
633
  "This map is anonymous, do you want to attach it to your account?": "This map is anonymous, do you want to attach it to your account?",
637
634
  "The map has been upgraded to latest version, please save it.": "The map has been upgraded to latest version, please save it.",
@@ -641,7 +638,19 @@ const locale = {
641
638
  "Wikipedia contributors": "Wikipedia contributors",
642
639
  "See on Wikipedia": "See on Wikipedia",
643
640
  "Anonymous map: update who can see and edit it": "Anonymous map: update who can see and edit it",
644
- "Login": "Login"
641
+ "Login": "Login",
642
+ "Manage filters": "Manage filters",
643
+ "Map (all layers)": "Map (all layers)",
644
+ "Add a filter for this field": "Add a filter for this field",
645
+ "Short text": "Short text",
646
+ "Text": "Text",
647
+ "Number": "Number",
648
+ "Date": "Date",
649
+ "Date and time": "Date and time",
650
+ "List of values": "List of values",
651
+ "Yes / No": "Yes / No",
652
+ "Select field to compute intensity": "Select field to compute intensity",
653
+ "Optional intensity field to compute heatmap": "Optional intensity field to compute heatmap"
645
654
  }
646
655
  L.registerLocale("zh", locale)
647
656
  L.setLocale("zh")
@@ -70,7 +70,7 @@
70
70
  "color": "颜色",
71
71
  "Comma separated list of numbers, including min and max values.": "Comma separated list of numbers, including min and max values.",
72
72
  "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.": "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.",
73
- "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.",
73
+ "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.",
74
74
  "Congratulations, your map has been created!": "Congratulations, your map has been created!",
75
75
  "Continue line": "Continue line",
76
76
  "Coordinates": "坐标",
@@ -159,7 +159,6 @@
159
159
  "Go to \"{coords}\"": "Go to \"{coords}\"",
160
160
  "Go to the homepage": "Go to the homepage",
161
161
  "Go to «{feature}»": "转到«{feature}»",
162
- "Heatmap intensity property": "Heatmap intensity property",
163
162
  "Heatmap radius": "Heatmap radius",
164
163
  "Heatmap": "Heatmap",
165
164
  "height": "高",
@@ -255,7 +254,6 @@
255
254
  "Open share & download panel": "Open share & download panel",
256
255
  "Open this map extent in a map editor to provide more accurate data to OpenStreetMap": "Open this map extent in a map editor to provide more accurate data to OpenStreetMap",
257
256
  "OpenStreetMap": "OpenStreetMap",
258
- "Optional intensity property for heatmap": "Optional intensity property for heatmap",
259
257
  "Optional. Same as color if not set.": "Optional. Same as color if not set.",
260
258
  "Optional.": "Optional.",
261
259
  "Override clustering radius (default 80)": "Override clustering radius (default 80)",
@@ -631,7 +629,6 @@
631
629
  "Are you sure you want to delete this field on all the data?": "Are you sure you want to delete this field on all the data?",
632
630
  "Anonymous map": "Anonymous map",
633
631
  "Edit filter for this field": "Edit filter for this field",
634
- "Fields, filters and keys": "Fields, filters and keys",
635
632
  "Hey, you created a map without an account!": "Hey, you created a map without an account!",
636
633
  "This map is anonymous, do you want to attach it to your account?": "This map is anonymous, do you want to attach it to your account?",
637
634
  "The map has been upgraded to latest version, please save it.": "The map has been upgraded to latest version, please save it.",
@@ -641,5 +638,17 @@
641
638
  "Wikipedia contributors": "Wikipedia contributors",
642
639
  "See on Wikipedia": "See on Wikipedia",
643
640
  "Anonymous map: update who can see and edit it": "Anonymous map: update who can see and edit it",
644
- "Login": "Login"
641
+ "Login": "Login",
642
+ "Manage filters": "Manage filters",
643
+ "Map (all layers)": "Map (all layers)",
644
+ "Add a filter for this field": "Add a filter for this field",
645
+ "Short text": "Short text",
646
+ "Text": "Text",
647
+ "Number": "Number",
648
+ "Date": "Date",
649
+ "Date and time": "Date and time",
650
+ "List of values": "List of values",
651
+ "Yes / No": "Yes / No",
652
+ "Select field to compute intensity": "Select field to compute intensity",
653
+ "Optional intensity field to compute heatmap": "Optional intensity field to compute heatmap"
645
654
  }
@@ -70,7 +70,7 @@
70
70
  "color": "color",
71
71
  "Comma separated list of numbers, including min and max values.": "Comma separated list of numbers, including min and max values.",
72
72
  "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.": "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.",
73
- "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.",
73
+ "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.",
74
74
  "Congratulations, your map has been created!": "Congratulations, your map has been created!",
75
75
  "Continue line": "Continue line",
76
76
  "Coordinates": "Coordinates",
@@ -159,7 +159,6 @@
159
159
  "Go to \"{coords}\"": "Go to \"{coords}\"",
160
160
  "Go to the homepage": "Go to the homepage",
161
161
  "Go to «{feature}»": "Go to «{feature}»",
162
- "Heatmap intensity property": "Heatmap intensity property",
163
162
  "Heatmap radius": "Heatmap radius",
164
163
  "Heatmap": "Heatmap",
165
164
  "height": "height",
@@ -255,7 +254,6 @@
255
254
  "Open share & download panel": "Open share & download panel",
256
255
  "Open this map extent in a map editor to provide more accurate data to OpenStreetMap": "Open this map extent in a map editor to provide more accurate data to OpenStreetMap",
257
256
  "OpenStreetMap": "OpenStreetMap",
258
- "Optional intensity property for heatmap": "Optional intensity property for heatmap",
259
257
  "Optional. Same as color if not set.": "Optional. Same as color if not set.",
260
258
  "Optional.": "Optional.",
261
259
  "Override clustering radius (default 80)": "Override clustering radius (default 80)",
@@ -631,7 +629,6 @@
631
629
  "Are you sure you want to delete this field on all the data?": "Are you sure you want to delete this field on all the data?",
632
630
  "Anonymous map": "Anonymous map",
633
631
  "Edit filter for this field": "Edit filter for this field",
634
- "Fields, filters and keys": "Fields, filters and keys",
635
632
  "Hey, you created a map without an account!": "Hey, you created a map without an account!",
636
633
  "This map is anonymous, do you want to attach it to your account?": "This map is anonymous, do you want to attach it to your account?",
637
634
  "The map has been upgraded to latest version, please save it.": "The map has been upgraded to latest version, please save it.",
@@ -641,5 +638,17 @@
641
638
  "Wikipedia contributors": "Wikipedia contributors",
642
639
  "See on Wikipedia": "See on Wikipedia",
643
640
  "Anonymous map: update who can see and edit it": "Anonymous map: update who can see and edit it",
644
- "Login": "Login"
641
+ "Login": "Login",
642
+ "Manage filters": "Manage filters",
643
+ "Map (all layers)": "Map (all layers)",
644
+ "Add a filter for this field": "Add a filter for this field",
645
+ "Short text": "Short text",
646
+ "Text": "Text",
647
+ "Number": "Number",
648
+ "Date": "Date",
649
+ "Date and time": "Date and time",
650
+ "List of values": "List of values",
651
+ "Yes / No": "Yes / No",
652
+ "Select field to compute intensity": "Select field to compute intensity",
653
+ "Optional intensity field to compute heatmap": "Optional intensity field to compute heatmap"
645
654
  }
@@ -70,7 +70,7 @@
70
70
  "color": "color",
71
71
  "Comma separated list of numbers, including min and max values.": "Comma separated list of numbers, including min and max values.",
72
72
  "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.": "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.",
73
- "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.",
73
+ "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.",
74
74
  "Congratulations, your map has been created!": "Congratulations, your map has been created!",
75
75
  "Continue line": "Continue line",
76
76
  "Coordinates": "Coordinates",
@@ -159,7 +159,6 @@
159
159
  "Go to \"{coords}\"": "Go to \"{coords}\"",
160
160
  "Go to the homepage": "Go to the homepage",
161
161
  "Go to «{feature}»": "Go to «{feature}»",
162
- "Heatmap intensity property": "Heatmap intensity property",
163
162
  "Heatmap radius": "Heatmap radius",
164
163
  "Heatmap": "Heatmap",
165
164
  "height": "height",
@@ -255,7 +254,6 @@
255
254
  "Open share & download panel": "Open share & download panel",
256
255
  "Open this map extent in a map editor to provide more accurate data to OpenStreetMap": "Open this map extent in a map editor to provide more accurate data to OpenStreetMap",
257
256
  "OpenStreetMap": "OpenStreetMap",
258
- "Optional intensity property for heatmap": "Optional intensity property for heatmap",
259
257
  "Optional. Same as color if not set.": "Optional. Same as color if not set.",
260
258
  "Optional.": "Optional.",
261
259
  "Override clustering radius (default 80)": "Override clustering radius (default 80)",
@@ -631,7 +629,6 @@
631
629
  "Are you sure you want to delete this field on all the data?": "Are you sure you want to delete this field on all the data?",
632
630
  "Anonymous map": "Anonymous map",
633
631
  "Edit filter for this field": "Edit filter for this field",
634
- "Fields, filters and keys": "Fields, filters and keys",
635
632
  "Hey, you created a map without an account!": "Hey, you created a map without an account!",
636
633
  "This map is anonymous, do you want to attach it to your account?": "This map is anonymous, do you want to attach it to your account?",
637
634
  "The map has been upgraded to latest version, please save it.": "The map has been upgraded to latest version, please save it.",
@@ -641,5 +638,17 @@
641
638
  "Wikipedia contributors": "Wikipedia contributors",
642
639
  "See on Wikipedia": "See on Wikipedia",
643
640
  "Anonymous map: update who can see and edit it": "Anonymous map: update who can see and edit it",
644
- "Login": "Login"
641
+ "Login": "Login",
642
+ "Manage filters": "Manage filters",
643
+ "Map (all layers)": "Map (all layers)",
644
+ "Add a filter for this field": "Add a filter for this field",
645
+ "Short text": "Short text",
646
+ "Text": "Text",
647
+ "Number": "Number",
648
+ "Date": "Date",
649
+ "Date and time": "Date and time",
650
+ "List of values": "List of values",
651
+ "Yes / No": "Yes / No",
652
+ "Select field to compute intensity": "Select field to compute intensity",
653
+ "Optional intensity field to compute heatmap": "Optional intensity field to compute heatmap"
645
654
  }
@@ -70,7 +70,7 @@ const locale = {
70
70
  "color": "色彩",
71
71
  "Comma separated list of numbers, including min and max values.": "用逗號分隔數字,包括最小與最大值。",
72
72
  "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.": "用逗號分隔屬性清單來排序圖徵。要保存排序,在槊面加上減號 (-1),例如 mykey,-otherkey。",
73
- "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.": "使用逗號、定位鍵或是分號分隔的地理數據。預設座標系為 SRS WGS84。只會匯入地理座標點。匯入時抓取 «lat» «lon» 開頭的欄位資料,不分大小寫。其他欄位則歸入屬性資料。",
73
+ "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.",
74
74
  "Congratulations, your map has been created!": "恭喜您的地圖已經新增完成",
75
75
  "Continue line": "連續線段",
76
76
  "Coordinates": "座標",
@@ -159,7 +159,6 @@ const locale = {
159
159
  "Go to \"{coords}\"": "去 \"{coords}\"",
160
160
  "Go to the homepage": "前往首頁",
161
161
  "Go to «{feature}»": "轉至 «{feature}»",
162
- "Heatmap intensity property": "熱點圖強度屬性",
163
162
  "Heatmap radius": "熱點圖半徑",
164
163
  "Heatmap": "熱點圖",
165
164
  "height": "高度",
@@ -255,7 +254,6 @@ const locale = {
255
254
  "Open share & download panel": "開啟分享與下載面板",
256
255
  "Open this map extent in a map editor to provide more accurate data to OpenStreetMap": "在地圖編輯器中打開此地圖,提供更多準確資料給 OpenStreetMap",
257
256
  "OpenStreetMap": "開放街圖",
258
- "Optional intensity property for heatmap": "選用的熱圖 heatmap 強度屬性",
259
257
  "Optional. Same as color if not set.": "可選,若您未選取顏色,則採用預設值",
260
258
  "Optional.": "可選",
261
259
  "Override clustering radius (default 80)": "覆蓋群集分析半徑 (預設80)",
@@ -604,44 +602,55 @@ const locale = {
604
602
  "Right-click to edit": "按右鍵來編輯",
605
603
  "Draw along routes": "沿著路線繪製",
606
604
  "Skipping invalid geometry": "略過無效的地理空間",
607
- "Add filter": "Add filter",
608
- "Min/Max": "Min/Max",
609
- "Multiple choices": "Multiple choices",
610
- "Exclusive choice": "Exclusive choice",
611
- "Yes/No": "Yes/No",
612
- "Add a field prior to create a filter.": "Add a field prior to create a filter.",
613
- "Edit this filter": "Edit this filter",
614
- "Remove this filter": "Remove this filter",
615
- "Apply filter to": "Apply filter to",
616
- "Filter on": "Filter on",
617
- "Human readable name of the filter": "Human readable name of the filter",
618
- "Widget for the filter": "Widget for the filter",
619
- "Edit filter": "Edit filter",
620
- "Edit this field": "Edit this field",
621
- "all layers": "all layers",
622
- "single layer": "single layer",
623
- "unset": "unset",
624
- "Filters will be displayed in the data browser to ease data selection.": "Filters will be displayed in the data browser to ease data selection.",
605
+ "Add filter": "新增篩選",
606
+ "Min/Max": "最小/最大",
607
+ "Multiple choices": "多重選擇",
608
+ "Exclusive choice": "單一選擇",
609
+ "Yes/No": "是/否",
610
+ "Add a field prior to create a filter.": "在新增篩選前新增欄位。",
611
+ "Edit this filter": "編輯這個篩選",
612
+ "Remove this filter": "移除這個篩選",
613
+ "Apply filter to": "套用篩選到",
614
+ "Filter on": "篩選啟用",
615
+ "Human readable name of the filter": "這個篩選的人類可讀名稱",
616
+ "Widget for the filter": "這個篩選的小工具",
617
+ "Edit filter": "編輯篩選",
618
+ "Edit this field": "編輯這個欄位",
619
+ "all layers": "所有圖層",
620
+ "single layer": "單一圖層",
621
+ "unset": "取消設定",
622
+ "Filters will be displayed in the data browser to ease data selection.": "資料瀏覽器會顯示篩選,來減少資料選擇程度。",
625
623
  "[key=\"value\"][key2=\"value2\"] (eg. [boundary=\"educational\"][name=\"Académie de Lyon\"])": "[key=\"value\"][key2=\"value2\"] (eg. [boundary=\"educational\"][name=\"Académie de Lyon\"])",
626
- "Field Name": "Field Name",
627
- "Field Type": "Field Type",
628
- "Manage field": "Manage field",
629
- "Add filter for this field": "Add filter for this field",
630
- "Name cannot be empty.": "Name cannot be empty.",
631
- "Are you sure you want to delete this field on all the data?": "Are you sure you want to delete this field on all the data?",
632
- "Anonymous map": "Anonymous map",
633
- "Edit filter for this field": "Edit filter for this field",
634
- "Fields, filters and keys": "Fields, filters and keys",
635
- "Hey, you created a map without an account!": "Hey, you created a map without an account!",
636
- "This map is anonymous, do you want to attach it to your account?": "This map is anonymous, do you want to attach it to your account?",
637
- "The map has been upgraded to latest version, please save it.": "The map has been upgraded to latest version, please save it.",
638
- "Elevation has been added!": "Elevation has been added!",
624
+ "Field Name": "欄位名稱",
625
+ "Field Type": "欄位類型",
626
+ "Manage field": "管理篩選",
627
+ "Add filter for this field": "新增篩選到這一欄位",
628
+ "Name cannot be empty.": "名稱無法是空白的。",
629
+ "Are you sure you want to delete this field on all the data?": "你確定要刪除所有資料當中的這個欄位?",
630
+ "Anonymous map": "暱名地圖",
631
+ "Edit filter for this field": "為這個欄位編輯篩選",
632
+ "Hey, you created a map without an account!": "嗨,你在沒有帳號狀態下創建地圖!",
633
+ "This map is anonymous, do you want to attach it to your account?": "這份地圖是暱名的,你想要連結到你的帳號嗎?",
634
+ "The map has been upgraded to latest version, please save it.": "這份地圖已經更新至最新版本,請先儲存。",
635
+ "Elevation has been added!": "已經新增海拔高度了!",
639
636
  "Mapillary": "Mapillary",
640
637
  "Wikidata": "Wikidata",
641
- "Wikipedia contributors": "Wikipedia contributors",
642
- "See on Wikipedia": "See on Wikipedia",
643
- "Anonymous map: update who can see and edit it": "Anonymous map: update who can see and edit it",
644
- "Login": "Login"
638
+ "Wikipedia contributors": "維基百科貢獻者",
639
+ "See on Wikipedia": "在維基百科上檢視",
640
+ "Anonymous map: update who can see and edit it": "暱名地圖,任何人都可以檢視與編輯",
641
+ "Login": "登入",
642
+ "Manage filters": "Manage filters",
643
+ "Map (all layers)": "Map (all layers)",
644
+ "Add a filter for this field": "Add a filter for this field",
645
+ "Short text": "Short text",
646
+ "Text": "Text",
647
+ "Number": "Number",
648
+ "Date": "Date",
649
+ "Date and time": "Date and time",
650
+ "List of values": "List of values",
651
+ "Yes / No": "Yes / No",
652
+ "Select field to compute intensity": "Select field to compute intensity",
653
+ "Optional intensity field to compute heatmap": "Optional intensity field to compute heatmap"
645
654
  }
646
655
  L.registerLocale("zh_TW", locale)
647
656
  L.setLocale("zh_TW")
@@ -70,7 +70,7 @@
70
70
  "color": "色彩",
71
71
  "Comma separated list of numbers, including min and max values.": "用逗號分隔數字,包括最小與最大值。",
72
72
  "Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.": "用逗號分隔屬性清單來排序圖徵。要保存排序,在槊面加上減號 (-1),例如 mykey,-otherkey。",
73
- "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the begining of the header, case insensitive. All other column are imported as properties.": "使用逗號、定位鍵或是分號分隔的地理數據。預設座標系為 SRS WGS84。只會匯入地理座標點。匯入時抓取 «lat» «lon» 開頭的欄位資料,不分大小寫。其他欄位則歸入屬性資料。",
73
+ "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.": "Comma, tab or semi-colon separated values. SRS WGS84 is implied. Only Point geometries are imported. The import will look at the column headers for any mention of «lat» and «lon» at the beginning of the header, case insensitive. All other column are imported as properties.",
74
74
  "Congratulations, your map has been created!": "恭喜您的地圖已經新增完成",
75
75
  "Continue line": "連續線段",
76
76
  "Coordinates": "座標",
@@ -159,7 +159,6 @@
159
159
  "Go to \"{coords}\"": "去 \"{coords}\"",
160
160
  "Go to the homepage": "前往首頁",
161
161
  "Go to «{feature}»": "轉至 «{feature}»",
162
- "Heatmap intensity property": "熱點圖強度屬性",
163
162
  "Heatmap radius": "熱點圖半徑",
164
163
  "Heatmap": "熱點圖",
165
164
  "height": "高度",
@@ -255,7 +254,6 @@
255
254
  "Open share & download panel": "開啟分享與下載面板",
256
255
  "Open this map extent in a map editor to provide more accurate data to OpenStreetMap": "在地圖編輯器中打開此地圖,提供更多準確資料給 OpenStreetMap",
257
256
  "OpenStreetMap": "開放街圖",
258
- "Optional intensity property for heatmap": "選用的熱圖 heatmap 強度屬性",
259
257
  "Optional. Same as color if not set.": "可選,若您未選取顏色,則採用預設值",
260
258
  "Optional.": "可選",
261
259
  "Override clustering radius (default 80)": "覆蓋群集分析半徑 (預設80)",
@@ -604,42 +602,53 @@
604
602
  "Right-click to edit": "按右鍵來編輯",
605
603
  "Draw along routes": "沿著路線繪製",
606
604
  "Skipping invalid geometry": "略過無效的地理空間",
607
- "Add filter": "Add filter",
608
- "Min/Max": "Min/Max",
609
- "Multiple choices": "Multiple choices",
610
- "Exclusive choice": "Exclusive choice",
611
- "Yes/No": "Yes/No",
612
- "Add a field prior to create a filter.": "Add a field prior to create a filter.",
613
- "Edit this filter": "Edit this filter",
614
- "Remove this filter": "Remove this filter",
615
- "Apply filter to": "Apply filter to",
616
- "Filter on": "Filter on",
617
- "Human readable name of the filter": "Human readable name of the filter",
618
- "Widget for the filter": "Widget for the filter",
619
- "Edit filter": "Edit filter",
620
- "Edit this field": "Edit this field",
621
- "all layers": "all layers",
622
- "single layer": "single layer",
623
- "unset": "unset",
624
- "Filters will be displayed in the data browser to ease data selection.": "Filters will be displayed in the data browser to ease data selection.",
605
+ "Add filter": "新增篩選",
606
+ "Min/Max": "最小/最大",
607
+ "Multiple choices": "多重選擇",
608
+ "Exclusive choice": "單一選擇",
609
+ "Yes/No": "是/否",
610
+ "Add a field prior to create a filter.": "在新增篩選前新增欄位。",
611
+ "Edit this filter": "編輯這個篩選",
612
+ "Remove this filter": "移除這個篩選",
613
+ "Apply filter to": "套用篩選到",
614
+ "Filter on": "篩選啟用",
615
+ "Human readable name of the filter": "這個篩選的人類可讀名稱",
616
+ "Widget for the filter": "這個篩選的小工具",
617
+ "Edit filter": "編輯篩選",
618
+ "Edit this field": "編輯這個欄位",
619
+ "all layers": "所有圖層",
620
+ "single layer": "單一圖層",
621
+ "unset": "取消設定",
622
+ "Filters will be displayed in the data browser to ease data selection.": "資料瀏覽器會顯示篩選,來減少資料選擇程度。",
625
623
  "[key=\"value\"][key2=\"value2\"] (eg. [boundary=\"educational\"][name=\"Académie de Lyon\"])": "[key=\"value\"][key2=\"value2\"] (eg. [boundary=\"educational\"][name=\"Académie de Lyon\"])",
626
- "Field Name": "Field Name",
627
- "Field Type": "Field Type",
628
- "Manage field": "Manage field",
629
- "Add filter for this field": "Add filter for this field",
630
- "Name cannot be empty.": "Name cannot be empty.",
631
- "Are you sure you want to delete this field on all the data?": "Are you sure you want to delete this field on all the data?",
632
- "Anonymous map": "Anonymous map",
633
- "Edit filter for this field": "Edit filter for this field",
634
- "Fields, filters and keys": "Fields, filters and keys",
635
- "Hey, you created a map without an account!": "Hey, you created a map without an account!",
636
- "This map is anonymous, do you want to attach it to your account?": "This map is anonymous, do you want to attach it to your account?",
637
- "The map has been upgraded to latest version, please save it.": "The map has been upgraded to latest version, please save it.",
638
- "Elevation has been added!": "Elevation has been added!",
624
+ "Field Name": "欄位名稱",
625
+ "Field Type": "欄位類型",
626
+ "Manage field": "管理篩選",
627
+ "Add filter for this field": "新增篩選到這一欄位",
628
+ "Name cannot be empty.": "名稱無法是空白的。",
629
+ "Are you sure you want to delete this field on all the data?": "你確定要刪除所有資料當中的這個欄位?",
630
+ "Anonymous map": "暱名地圖",
631
+ "Edit filter for this field": "為這個欄位編輯篩選",
632
+ "Hey, you created a map without an account!": "嗨,你在沒有帳號狀態下創建地圖!",
633
+ "This map is anonymous, do you want to attach it to your account?": "這份地圖是暱名的,你想要連結到你的帳號嗎?",
634
+ "The map has been upgraded to latest version, please save it.": "這份地圖已經更新至最新版本,請先儲存。",
635
+ "Elevation has been added!": "已經新增海拔高度了!",
639
636
  "Mapillary": "Mapillary",
640
637
  "Wikidata": "Wikidata",
641
- "Wikipedia contributors": "Wikipedia contributors",
642
- "See on Wikipedia": "See on Wikipedia",
643
- "Anonymous map: update who can see and edit it": "Anonymous map: update who can see and edit it",
644
- "Login": "Login"
638
+ "Wikipedia contributors": "維基百科貢獻者",
639
+ "See on Wikipedia": "在維基百科上檢視",
640
+ "Anonymous map: update who can see and edit it": "暱名地圖,任何人都可以檢視與編輯",
641
+ "Login": "登入",
642
+ "Manage filters": "Manage filters",
643
+ "Map (all layers)": "Map (all layers)",
644
+ "Add a filter for this field": "Add a filter for this field",
645
+ "Short text": "Short text",
646
+ "Text": "Text",
647
+ "Number": "Number",
648
+ "Date": "Date",
649
+ "Date and time": "Date and time",
650
+ "List of values": "List of values",
651
+ "Yes / No": "Yes / No",
652
+ "Select field to compute intensity": "Select field to compute intensity",
653
+ "Optional intensity field to compute heatmap": "Optional intensity field to compute heatmap"
645
654
  }
@@ -14,8 +14,8 @@
14
14
  }
15
15
  bc.postMessage('auth:ok')
16
16
  }
17
- // In case the login was started in Javascript, the broadcasting whould close this
18
- // window, so we wait for the broacasting to have a chance to finish the communication
17
+ // In case the login was started in Javascript, the broadcasting would close this
18
+ // window, so we wait for the broadcasting to have a chance to finish the communication
19
19
  // before trying to load the dashboard.
20
20
  window.setTimeout(() => {
21
21
  // We should arrive here in three situations:
@@ -47,6 +47,14 @@ def page(new_page):
47
47
  return new_page()
48
48
 
49
49
 
50
+ @pytest.fixture
51
+ def wait_for_loaded():
52
+ def _(page):
53
+ page.wait_for_function("() => U.MAP.dataloaded === true")
54
+
55
+ return _
56
+
57
+
50
58
  @pytest.fixture
51
59
  def login(new_page, settings, live_server):
52
60
  def do_login(user, **kwargs):
@@ -193,7 +193,7 @@ def test_alert_message_after_create(
193
193
  )
194
194
 
195
195
 
196
- def test_email_sending_error_are_catched(tilelayer, page, live_server):
196
+ def test_email_sending_error_are_caught(tilelayer, page, live_server):
197
197
  page.goto(f"{live_server.url}/en/map/new")
198
198
  alert_creation = page.locator('umap-alert-creation div[role="dialog"]')
199
199
  with page.expect_response(re.compile(r".*/map/create/")):
@@ -270,7 +270,7 @@ def test_can_create_new_rule(live_server, page, openmap):
270
270
  assert colors.count("rgb(240, 248, 255)") == 0
271
271
 
272
272
 
273
- def test_can_deactive_rule_from_list(live_server, page, openmap):
273
+ def test_can_deactivate_rule_from_list(live_server, page, openmap):
274
274
  openmap.settings["properties"]["rules"] = [
275
275
  {"condition": "mytype=odd", "properties": {"color": "aliceblue"}}
276
276
  ]
@@ -434,8 +434,10 @@ def test_can_create_filter_from_new_field(live_server, page, openmap):
434
434
  page.get_by_role("heading", name="Manage Fields").click()
435
435
  page.get_by_role("button", name="Add a new field").click()
436
436
  page.get_by_role("textbox", name="Field Name ✔").fill("foobar")
437
+ page.get_by_label("Field Type").select_option("Boolean")
437
438
  page.get_by_role("button", name="Add filter for this field").click()
438
439
  page.get_by_role("textbox", name="Human readable name of the").fill("Foo Bar")
440
+ expect(page.get_by_text("Yes/No")).to_be_checked()
439
441
  page.wait_for_timeout(300) # Input throttling.
440
442
  page.get_by_text("Edit this field").click()
441
443
  expect(page.locator(".umap-filter span").filter(has_text="Foo Bar")).to_be_visible()
@@ -461,7 +463,7 @@ def test_can_create_filter_from_new_field(live_server, page, openmap):
461
463
  },
462
464
  {
463
465
  "key": "foobar",
464
- "type": "String",
466
+ "type": "Boolean",
465
467
  },
466
468
  ]
467
469
 
@@ -469,7 +471,7 @@ def test_can_create_filter_from_new_field(live_server, page, openmap):
469
471
  {
470
472
  "fieldKey": "foobar",
471
473
  "label": "Foo Bar",
472
- "widget": "Checkbox",
474
+ "widget": "Switch",
473
475
  },
474
476
  ]
475
477
 
@@ -485,8 +487,7 @@ def test_can_create_new_filter_on_map_from_panel(live_server, page, openmap):
485
487
  DataLayerFactory(map=openmap, data=DATALAYER_DATA1)
486
488
  page.goto(f"{live_server.url}{openmap.get_absolute_url()}?edit")
487
489
  page.get_by_role("button", name="Manage filters").click()
488
- page.get_by_text("Map (all layers)").click()
489
- page.get_by_role("button", name="Add filter").click()
490
+ page.get_by_role("button", name="Add filter").first.click()
490
491
  page.get_by_label("Filter on").select_option("foobar")
491
492
  page.get_by_role("textbox", name="Human readable name").fill("Foo Bar")
492
493
  page.wait_for_timeout(300)
@@ -515,8 +516,7 @@ def test_can_create_new_filter_on_datalayer_from_panel(live_server, page, openma
515
516
  f"{live_server.url}{openmap.get_absolute_url()}?edit&onLoadPanel=datafilters"
516
517
  )
517
518
  page.get_by_role("button", name="Manage filters").click()
518
- page.get_by_text("Calque 1 (single layer)").click()
519
- page.get_by_role("button", name="Add filter").click()
519
+ page.get_by_role("button", name="Add filter").nth(1).click()
520
520
  expect(page.get_by_label("Apply filter to")).to_have_value(f"layer:{datalayer.pk}")
521
521
  page.get_by_label("Filter on").select_option("mynumber")
522
522
  page.get_by_role("textbox", name="Human readable name of the").fill("Foo Bar")
@@ -598,7 +598,6 @@ def test_filter_with_enum(live_server, openmap, page):
598
598
  f"{live_server.url}{openmap.get_absolute_url()}?edit&onLoadPanel=datafilters#6/48.948/1.670"
599
599
  )
600
600
  page.get_by_role("button", name="Manage filters").click()
601
- page.get_by_text("Calque 1 (single layer)").click()
602
601
  page.get_by_role("button", name="Add filter").click()
603
602
  page.get_by_label("Filter on").select_option("products")
604
603
  page.get_by_role("button", name="OK").click()