umap-project 1.14.0a1__py3-none-any.whl → 1.14.0a2__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 umap-project might be problematic. Click here for more details.

Files changed (182) hide show
  1. umap/__init__.py +1 -1
  2. umap/static/.gitignore +0 -0
  3. umap/static/umap/base.css +994 -0
  4. umap/static/umap/bitbucket.png +0 -0
  5. umap/static/umap/content.css +395 -0
  6. umap/static/umap/favicons/apple-touch-icon.png +0 -0
  7. umap/static/umap/favicons/favicon.ico +0 -0
  8. umap/static/umap/favicons/icon-192.png +0 -0
  9. umap/static/umap/favicons/icon-512.png +0 -0
  10. umap/static/umap/favicons/icon.svg +5 -0
  11. umap/static/umap/font/FiraSans-Light.woff +0 -0
  12. umap/static/umap/font/FiraSans-Light.woff2 +0 -0
  13. umap/static/umap/font/FiraSans-LightItalic.woff +0 -0
  14. umap/static/umap/font/FiraSans-LightItalic.woff2 +0 -0
  15. umap/static/umap/font/FiraSans-SemiBold.woff +0 -0
  16. umap/static/umap/font/FiraSans-SemiBold.woff2 +0 -0
  17. umap/static/umap/font.css +33 -0
  18. umap/static/umap/github.png +0 -0
  19. umap/static/umap/img/16-white.svg +190 -0
  20. umap/static/umap/img/16.svg +182 -0
  21. umap/static/umap/img/24-white.svg +62 -0
  22. umap/static/umap/img/24.svg +90 -0
  23. umap/static/umap/img/edit.svg +7 -0
  24. umap/static/umap/img/icon-bg.png +0 -0
  25. umap/static/umap/img/logo.svg +4 -0
  26. umap/static/umap/img/logo_filigree.png +0 -0
  27. umap/static/umap/img/logo_small.svg +14 -0
  28. umap/static/umap/img/marker.png +0 -0
  29. umap/static/umap/img/opensource.svg +7 -0
  30. umap/static/umap/img/osm.svg +7 -0
  31. umap/static/umap/img/search.gif +0 -0
  32. umap/static/umap/img/source/16-white.svg +980 -0
  33. umap/static/umap/img/source/16.svg +201 -0
  34. umap/static/umap/img/source/24-white.svg +83 -0
  35. umap/static/umap/img/source/24.svg +110 -0
  36. umap/static/umap/js/components/fragment.js +13 -0
  37. umap/static/umap/js/modules/global.js +8 -0
  38. umap/static/umap/js/modules/urls.js +29 -0
  39. umap/static/umap/js/umap.autocomplete.js +336 -0
  40. umap/static/umap/js/umap.browser.js +148 -0
  41. umap/static/umap/js/umap.controls.js +1542 -0
  42. umap/static/umap/js/umap.core.js +851 -0
  43. umap/static/umap/js/umap.datalayer.permissions.js +72 -0
  44. umap/static/umap/js/umap.features.js +1216 -0
  45. umap/static/umap/js/umap.forms.js +1267 -0
  46. umap/static/umap/js/umap.icon.js +234 -0
  47. umap/static/umap/js/umap.importer.js +166 -0
  48. umap/static/umap/js/umap.js +2010 -0
  49. umap/static/umap/js/umap.layer.js +1636 -0
  50. umap/static/umap/js/umap.permissions.js +212 -0
  51. umap/static/umap/js/umap.popup.js +340 -0
  52. umap/static/umap/js/umap.share.js +254 -0
  53. umap/static/umap/js/umap.slideshow.js +165 -0
  54. umap/static/umap/js/umap.tableeditor.js +120 -0
  55. umap/static/umap/js/umap.ui.js +240 -0
  56. umap/static/umap/js/umap.xhr.js +304 -0
  57. umap/static/umap/locale/am_ET.js +447 -0
  58. umap/static/umap/locale/am_ET.json +445 -0
  59. umap/static/umap/locale/ar.js +447 -0
  60. umap/static/umap/locale/ar.json +445 -0
  61. umap/static/umap/locale/ast.js +447 -0
  62. umap/static/umap/locale/ast.json +445 -0
  63. umap/static/umap/locale/bg.js +447 -0
  64. umap/static/umap/locale/bg.json +445 -0
  65. umap/static/umap/locale/br.js +447 -0
  66. umap/static/umap/locale/br.json +445 -0
  67. umap/static/umap/locale/ca.js +447 -0
  68. umap/static/umap/locale/ca.json +445 -0
  69. umap/static/umap/locale/cs_CZ.js +447 -0
  70. umap/static/umap/locale/cs_CZ.json +445 -0
  71. umap/static/umap/locale/da.js +447 -0
  72. umap/static/umap/locale/da.json +445 -0
  73. umap/static/umap/locale/de.js +447 -0
  74. umap/static/umap/locale/de.json +445 -0
  75. umap/static/umap/locale/el.js +447 -0
  76. umap/static/umap/locale/el.json +445 -0
  77. umap/static/umap/locale/en.js +447 -0
  78. umap/static/umap/locale/en.json +445 -0
  79. umap/static/umap/locale/en_US.json +445 -0
  80. umap/static/umap/locale/es.js +447 -0
  81. umap/static/umap/locale/es.json +445 -0
  82. umap/static/umap/locale/et.js +447 -0
  83. umap/static/umap/locale/et.json +445 -0
  84. umap/static/umap/locale/eu.js +413 -0
  85. umap/static/umap/locale/eu.json +411 -0
  86. umap/static/umap/locale/fa_IR.js +447 -0
  87. umap/static/umap/locale/fa_IR.json +445 -0
  88. umap/static/umap/locale/fi.js +447 -0
  89. umap/static/umap/locale/fi.json +445 -0
  90. umap/static/umap/locale/fr.js +447 -0
  91. umap/static/umap/locale/fr.json +445 -0
  92. umap/static/umap/locale/gl.js +447 -0
  93. umap/static/umap/locale/gl.json +445 -0
  94. umap/static/umap/locale/he.js +447 -0
  95. umap/static/umap/locale/he.json +445 -0
  96. umap/static/umap/locale/hr.js +447 -0
  97. umap/static/umap/locale/hr.json +445 -0
  98. umap/static/umap/locale/hu.js +447 -0
  99. umap/static/umap/locale/hu.json +445 -0
  100. umap/static/umap/locale/id.js +447 -0
  101. umap/static/umap/locale/id.json +445 -0
  102. umap/static/umap/locale/is.js +447 -0
  103. umap/static/umap/locale/is.json +445 -0
  104. umap/static/umap/locale/it.js +447 -0
  105. umap/static/umap/locale/it.json +445 -0
  106. umap/static/umap/locale/ja.js +447 -0
  107. umap/static/umap/locale/ja.json +445 -0
  108. umap/static/umap/locale/ko.js +447 -0
  109. umap/static/umap/locale/ko.json +445 -0
  110. umap/static/umap/locale/lt.js +447 -0
  111. umap/static/umap/locale/lt.json +445 -0
  112. umap/static/umap/locale/ms.js +447 -0
  113. umap/static/umap/locale/ms.json +445 -0
  114. umap/static/umap/locale/nl.js +447 -0
  115. umap/static/umap/locale/nl.json +445 -0
  116. umap/static/umap/locale/no.js +447 -0
  117. umap/static/umap/locale/no.json +445 -0
  118. umap/static/umap/locale/pl.js +447 -0
  119. umap/static/umap/locale/pl.json +445 -0
  120. umap/static/umap/locale/pl_PL.json +445 -0
  121. umap/static/umap/locale/pt.js +447 -0
  122. umap/static/umap/locale/pt.json +445 -0
  123. umap/static/umap/locale/pt_BR.js +447 -0
  124. umap/static/umap/locale/pt_BR.json +445 -0
  125. umap/static/umap/locale/pt_PT.js +447 -0
  126. umap/static/umap/locale/pt_PT.json +445 -0
  127. umap/static/umap/locale/ro.js +447 -0
  128. umap/static/umap/locale/ro.json +445 -0
  129. umap/static/umap/locale/ru.js +447 -0
  130. umap/static/umap/locale/ru.json +445 -0
  131. umap/static/umap/locale/si.js +439 -0
  132. umap/static/umap/locale/si.json +437 -0
  133. umap/static/umap/locale/sk_SK.js +447 -0
  134. umap/static/umap/locale/sk_SK.json +445 -0
  135. umap/static/umap/locale/sl.js +447 -0
  136. umap/static/umap/locale/sl.json +445 -0
  137. umap/static/umap/locale/sr.js +447 -0
  138. umap/static/umap/locale/sr.json +445 -0
  139. umap/static/umap/locale/sv.js +447 -0
  140. umap/static/umap/locale/sv.json +445 -0
  141. umap/static/umap/locale/th_TH.js +447 -0
  142. umap/static/umap/locale/th_TH.json +445 -0
  143. umap/static/umap/locale/tr.js +447 -0
  144. umap/static/umap/locale/tr.json +445 -0
  145. umap/static/umap/locale/uk_UA.js +447 -0
  146. umap/static/umap/locale/uk_UA.json +445 -0
  147. umap/static/umap/locale/vi.js +447 -0
  148. umap/static/umap/locale/vi.json +445 -0
  149. umap/static/umap/locale/vi_VN.json +445 -0
  150. umap/static/umap/locale/zh.js +447 -0
  151. umap/static/umap/locale/zh.json +445 -0
  152. umap/static/umap/locale/zh_CN.json +445 -0
  153. umap/static/umap/locale/zh_TW.Big5.json +445 -0
  154. umap/static/umap/locale/zh_TW.js +447 -0
  155. umap/static/umap/locale/zh_TW.json +445 -0
  156. umap/static/umap/map.css +1843 -0
  157. umap/static/umap/nav.css +81 -0
  158. umap/static/umap/openstreetmap.png +0 -0
  159. umap/static/umap/test/.eslintrc +22 -0
  160. umap/static/umap/test/Choropleth.js +243 -0
  161. umap/static/umap/test/Controls.js +100 -0
  162. umap/static/umap/test/DataLayer.js +495 -0
  163. umap/static/umap/test/Feature.js +382 -0
  164. umap/static/umap/test/Map.Export.js +106 -0
  165. umap/static/umap/test/Map.Init.js +46 -0
  166. umap/static/umap/test/Map.js +342 -0
  167. umap/static/umap/test/Marker.js +122 -0
  168. umap/static/umap/test/Permissions.js +74 -0
  169. umap/static/umap/test/Polygon.js +367 -0
  170. umap/static/umap/test/Polyline.js +402 -0
  171. umap/static/umap/test/TableEditor.js +100 -0
  172. umap/static/umap/test/URLs.js +54 -0
  173. umap/static/umap/test/Util.js +549 -0
  174. umap/static/umap/test/_pre.js +460 -0
  175. umap/static/umap/test/index.html +135 -0
  176. umap/static/umap/theme.css +1 -0
  177. umap/static/umap/twitter.png +0 -0
  178. {umap_project-1.14.0a1.dist-info → umap_project-1.14.0a2.dist-info}/METADATA +1 -1
  179. {umap_project-1.14.0a1.dist-info → umap_project-1.14.0a2.dist-info}/RECORD +182 -6
  180. {umap_project-1.14.0a1.dist-info → umap_project-1.14.0a2.dist-info}/WHEEL +0 -0
  181. {umap_project-1.14.0a1.dist-info → umap_project-1.14.0a2.dist-info}/entry_points.txt +0 -0
  182. {umap_project-1.14.0a1.dist-info → umap_project-1.14.0a2.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,110 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg width="180" height="180" viewBox="0 0 47.624999 47.624999" version="1.1" id="svg6237" inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" sodipodi:docname="24.svg" inkscape:export-filename="../24.svg" inkscape:export-xdpi="7.52" inkscape:export-ydpi="7.52" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
5
+ <sodipodi:namedview id="namedview6239" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:showpageshadow="2" inkscape:pageopacity="0.0" inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" showgrid="true" showguides="true" inkscape:zoom="17.994316" inkscape:cx="76.551951" inkscape:cy="18.089045" inkscape:window-width="1920" inkscape:window-height="1019" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="layer1">
6
+ <inkscape:grid type="xygrid" id="grid6358" empspacing="4" originx="0" originy="0" />
7
+ <sodipodi:guide position="9.5249999,47.624999" orientation="-1,0" id="guide6360" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
8
+ <sodipodi:guide position="19.05,47.625" orientation="-1,0" id="guide6362" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
9
+ <sodipodi:guide position="28.574999,47.625" orientation="-1,0" id="guide6364" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
10
+ <sodipodi:guide position="38.099999,47.625" orientation="-1,0" id="guide6366" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
11
+ <sodipodi:guide position="0,38.099999" orientation="0,1" id="guide7146" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
12
+ <sodipodi:guide position="0,28.574999" orientation="0,1" id="guide7148" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
13
+ <sodipodi:guide position="0,19.05" orientation="0,1" id="guide7150" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
14
+ <sodipodi:guide position="0,9.5249998" orientation="0,1" id="guide7152" inkscape:locked="false" inkscape:label="" inkscape:color="rgb(0,134,229)" />
15
+ </sodipodi:namedview>
16
+ <defs id="defs6234">
17
+ <clipPath id="clip0_166_13480">
18
+ <rect width="24" height="24" fill="#ffffff" id="rect5811" x="0" y="0" />
19
+ </clipPath>
20
+ <mask id="mask0_166_13480" maskUnits="userSpaceOnUse" x="1" y="1" width="17" height="17">
21
+ <path d="m 17.6,1.60001 h -16.00002 v 15.99999 h 16.00002 z" fill="#ffffff" id="path5278" />
22
+ </mask>
23
+ <mask id="mask0_181_11898" maskUnits="userSpaceOnUse" x="2" y="2" width="15" height="15">
24
+ <path d="m 16.0401,2.3158 h -14.0351 v 14.0351 h 14.0351 z" fill="#ffffff" id="path2351" />
25
+ </mask>
26
+ </defs>
27
+ <g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1">
28
+ <path style="fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:0.264583" d="m 6.6145836,2.1166666 -0.529167,0.529167 1.058333,1.058333 0.529167,-0.529167 z m -0.79375,0.79375 -2.910417,2.910417 1.058333,1.058333 2.910417,-2.910417 z m -2.910417,2.910417 -0.79375,1.852083 1.852083,-0.79375 z" id="edit" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccccccccccc" class="sprite" />
29
+ <path style="fill:#4d4d4d;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.264583" d="m 13.758333,2.1166666 v 0.529167 c -0.529167,0 -1.058333,0 -1.322917,0.529166 v 0.264584 h 3.704167 v -0.264584 c -0.264583,-0.529166 -0.79375,-0.529166 -1.322917,-0.529166 v -0.529167 z m -1.322917,1.5875 0.79375,3.704172 h 2.116667 l 0.79375,-3.704172 z" id="delete" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccccccccccc" inkscape:label="delete-30" class="sprite" />
30
+ <g id="measure" transform="matrix(0.26458333,0,0,0.26458333,-11.112499,-232.45291)" class="sprite">
31
+ <path sodipodi:nodetypes="ccccccccccccccccccccccccccccc" inkscape:connector-curvature="0" id="rect4452" d="m 47.999998,965.36218 h 3.000002 v 8 h 2 v -8 h 2 v 5 h 1 v -5 h 2 v 5 h 1 v -5 h 2 v 5 h 1 v -5 h 2 v 5 h 1 v -5 h 2 v 8 h 2 v -8 h 3 v 11 h -24 z" style="fill:#4d4d4d;fill-opacity:1;fill-rule:nonzero;stroke:none" />
32
+ <text id="text4455" y="964.36218" x="49.170559" style="font-style:normal;font-weight:normal;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none" xml:space="preserve"><tspan style="font-weight:bold;font-size:8px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'Sans Bold';fill:#4d4d4d;fill-opacity:1" y="964.36218" x="49.170559" id="tspan4457" sodipodi:role="line">0</tspan></text>
33
+ <text xml:space="preserve" style="font-style:normal;font-weight:normal;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none" x="65.048965" y="964.36218" id="text4459"><tspan sodipodi:role="line" id="tspan4461" x="65.048965" y="964.36218" style="font-weight:bold;font-size:8px;line-height:1.25;font-family:sans-serif;-inkscape-font-specification:'Sans Bold';fill:#4d4d4d;fill-opacity:1">1</tspan></text>
34
+ </g>
35
+ <g id="copyleft" transform="matrix(0.26458333,0,0,0.26458333,1.5821002,-226.05539)" class="sprite">
36
+ <circle transform="matrix(0.02040816,0,0,0.02040816,74,934.36218)" id="circle3841" r="440" cy="490" cx="490" style="fill:none;stroke:#4d4d4d;stroke-width:100;stroke-opacity:1" />
37
+ <path style="fill:#4d4d4d;fill-opacity:1" id="path3843" d="m 83.918365,938.74993 c -2.653058,0 -4.877549,1.85717 -5.448974,4.34692 h 2.673466 c 0.489792,-1.06125 1.551017,-1.79592 2.775508,-1.79592 1.693875,0 3.061225,1.36734 3.061225,3.06125 0,1.69384 -1.36735,3.06117 -3.061225,3.06117 -1.224491,0 -2.285716,-0.73467 -2.775508,-1.7755 h -2.673466 c 0.571425,2.46942 2.795916,4.32658 5.448974,4.32658 3.102041,0 5.612241,-2.51025 5.612241,-5.61225 0,-3.10208 -2.5102,-5.61225 -5.612241,-5.61225 z" inkscape:connector-curvature="0" />
38
+ </g>
39
+ <g id="markers" transform="matrix(0.26458333,0,0,0.26458333,14.287499,-226.04994)" class="sprite">
40
+ <path sodipodi:nodetypes="sccccsssccs" inkscape:connector-curvature="0" id="rect2985" d="m 105.25387,934.36268 c -3.17753,0 -6.346004,2.1278 -7.25387,6.3794 0,2.551 1.806672,7.6679 7.25387,13.6201 1.46368,-1.5994 2.66945,-3.1177 3.64397,-4.5613 -1.4505,-2.1639 -2.41497,-4.0873 -2.96285,-5.7095 -0.22599,0.041 -0.44225,0.063 -0.68112,0.063 -2.0056,0 -3.64396,-1.5346 -3.64396,-3.413 0,-1.8785 1.63836,-3.3811 3.64396,-3.3811 0.51205,0 0.98854,0.076 1.43034,0.2552 0.64347,-0.9222 1.4345,-1.6571 2.31579,-2.169 -1.14444,-0.7114 -2.44633,-1.0845 -3.74613,-1.0845 z" style="fill:#4d4d4d;fill-opacity:1;stroke:none" />
41
+ <path id="path3378" d="m 111,934.36218 c -3.0625,0 -6.125,2.1277 -7,6.383 0,2.5532 1.75,7.6596 7,13.617 5.25,-5.9574 7,-11.0638 7,-13.617 -0.875,-4.2553 -3.9375,-6.383 -7,-6.383 z m 0,2.9788 c 1.933,0 3.5,1.5241 3.5,3.4042 0,1.8801 -1.567,3.4043 -3.5,3.4043 -1.93299,0 -3.5,-1.5242 -3.5,-3.4043 0,-1.8801 1.56701,-3.4042 3.5,-3.4042 z" style="fill:#4d4d4d;fill-opacity:1;stroke:none" inkscape:connector-curvature="0" />
42
+ </g>
43
+ <path inkscape:connector-curvature="0" style="fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:0.264583" d="m 42.862498,11.1125 c -0.926041,0 -1.852083,0.661458 -2.116666,1.984375 0,0.793749 0.529166,2.381249 2.116666,4.233333 1.5875,-1.852084 2.116667,-3.439584 2.116667,-4.233333 -0.264583,-1.322917 -1.190625,-1.984375 -2.116667,-1.984375 z m 0,0.926041 c 0.584502,0 1.058334,0.473832 1.058334,1.058334 0,0.584501 -0.473832,1.058333 -1.058334,1.058333 -0.584501,0 -1.058333,-0.473832 -1.058333,-1.058333 0,-0.584502 0.473832,-1.058334 1.058333,-1.058334 z" id="marker" class="sprite" />
44
+ <path inkscape:connector-curvature="0" d="m 30.956249,11.112501 v 0.132291 0.79375 0.132292 h 0.132292 0.79375 0.132292 v -0.132292 -0.09095 l 2.645833,1.058334 v 0.355533 0.115756 l -1.876888,2.926953 h -0.636654 -0.132291 v 0.132291 0.79375 0.132292 h 0.132291 0.79375 0.132292 v -0.132292 -0.79375 -0.09922 l 1.876888,-2.943489 h 0.636654 0.132291 v -0.132292 -0.79375 -0.132291 h -0.132291 -0.79375 -0.132292 v 0.132291 0.148828 l -2.645833,-1.058333 v -0.413411 -0.132292 h -0.132292 -0.79375 z m 0.264584,0.264583 h 0.529166 v 0.529167 h -0.529166 z m 3.704166,1.322917 h 0.529167 v 0.529166 h -0.529167 z m -2.645833,3.96875 h 0.529167 v 0.529166 h -0.529167 z" id="polyline" class="sprite" style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.264583" />
45
+ <path d="m 21.695833,11.90625 v 0.132292 0.79375 0.132291 h 0.132292 0.347265 l -0.421679,3.704167 h -0.454753 -0.132292 v 0.132292 0.79375 0.132291 h 0.132292 0.79375 0.132292 v -0.132291 -0.421667 l 2.645833,-0.181901 v 0.338984 0.132292 h 0.132292 0.79375 0.132291 v -0.132292 -0.79375 -0.132291 h -0.132291 -0.305925 l 0.363802,-2.116667 h 0.471289 0.132292 v -0.132292 -0.79375 -0.132291 h -0.132292 -0.79375 -0.132291 v 0.132291 0.214974 l -2.645834,-0.950833 v -0.587057 -0.132292 h -0.132291 -0.79375 z m 0.264583,0.264583 h 0.529167 v 0.529167 h -0.529167 z m 3.704167,1.322917 h 0.529167 v 0.529167 h -0.529167 z m -0.529167,3.175 h 0.529167 v 0.529167 h -0.529167 z m -3.704166,0.264583 c 0.529166,0 0,0 0.529166,0 v 0.529167 h -0.529166 z" id="polygon" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" class="sprite" style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.264583" />
46
+ <g transform="matrix(0.06466922,0,0,0.06466922,30.097119,1.5355706)" id="settings" style="fill:#4d4d4d;fill-opacity:1;stroke:none" class="sprite">
47
+ <path inkscape:connector-curvature="0" d="m 98.762,43.652 c -0.186,-1.386 -1.481,-2.582 -2.876,-2.659 l -6.172,-0.337 c -1.395,-0.076 -2.899,-1.224 -3.341,-2.55 l -2.28,-5.518 c -0.629,-1.249 -0.379,-3.121 0.553,-4.161 l 4.122,-4.6 c 0.933,-1.042 0.962,-2.77 0.066,-3.842 l -8.813,-8.813 c -1.073,-0.897 -2.803,-0.867 -3.845,0.065 l -4.598,4.122 c -1.039,0.934 -2.915,1.182 -4.161,0.551 l -5.521,-2.279 c -1.324,-0.442 -2.472,-1.945 -2.549,-3.34 l -0.337,-6.17 c -0.077,-1.396 -1.272,-2.691 -2.659,-2.878 0,0 -3.252,-0.44 -6.248,-0.44 -2.991,0 -6.243,0.44 -6.243,0.44 -1.386,0.188 -2.582,1.483 -2.658,2.878 l -0.338,6.17 c -0.076,1.396 -1.224,2.898 -2.551,3.34 l -5.517,2.279 c -1.249,0.631 -3.122,0.382 -4.161,-0.551 l -4.601,-4.122 c -1.042,-0.932 -2.769,-0.962 -3.842,-0.065 l -8.813,8.813 c -0.897,1.073 -0.867,2.801 0.066,3.842 l 4.122,4.6 c 0.933,1.041 1.182,2.913 0.551,4.161 l -2.279,5.518 c -0.442,1.326 -1.946,2.474 -3.34,2.55 l -6.17,0.337 c -1.396,0.077 -2.691,1.272 -2.879,2.659 0,0 -0.439,3.253 -0.439,6.243 0,2.99 0.44,6.24 0.44,6.24 0.188,1.389 1.483,2.582 2.879,2.659 l 6.169,0.339 c 1.396,0.075 2.898,1.225 3.341,2.549 l 2.278,5.517 c 0.631,1.248 0.381,3.122 -0.551,4.163 l -4.122,4.598 c -0.933,1.042 -0.963,2.771 -0.066,3.845 l 8.814,8.813 c 1.073,0.896 2.801,0.866 3.842,-0.066 l 4.6,-4.122 c 1.041,-0.932 2.913,-1.182 4.161,-0.553 l 5.517,2.28 c 1.327,0.441 2.475,1.946 2.55,3.343 l 0.338,6.168 c 0.076,1.395 1.272,2.692 2.658,2.88 0,0 3.252,0.439 6.244,0.439 2.996,0 6.25,-0.439 6.25,-0.439 1.385,-0.188 2.58,-1.485 2.657,-2.88 l 0.337,-6.168 c 0.077,-1.396 1.225,-2.901 2.551,-3.343 l 5.517,-2.28 c 1.248,-0.629 3.122,-0.379 4.163,0.553 l 4.598,4.122 c 1.042,0.933 2.771,0.964 3.843,0.067 l 8.815,-8.814 c 0.896,-1.073 0.866,-2.803 -0.066,-3.845 l -4.122,-4.598 c -0.932,-1.041 -1.182,-2.915 -0.553,-4.163 l 2.28,-5.517 c 0.441,-1.324 1.946,-2.474 3.341,-2.549 l 6.172,-0.339 c 1.395,-0.077 2.692,-1.271 2.876,-2.659 0,0 0.441,-3.25 0.441,-6.24 0,-2.99 -0.441,-6.243 -0.441,-6.243 z m -48.658,18.709 c -6.886,0 -12.468,-5.585 -12.468,-12.467 0,-6.885 5.582,-12.467 12.468,-12.467 6.89,0 12.475,5.582 12.475,12.467 -10e-4,6.882 -5.586,12.467 -12.475,12.467 z" id="path27812" style="fill:#4d4d4d;fill-opacity:1;stroke:none" />
48
+ </g>
49
+ <path style="fill:#464646;fill-opacity:1;stroke:none;stroke-width:0.264583" d="m 42.862499,1.5875 c -1.753504,0 -3.175,1.421495 -3.175,3.175 0,1.753504 1.421496,3.175 3.175,3.175 1.753505,0 3.175,-1.421496 3.175,-3.175 0,-1.753505 -1.421495,-3.175 -3.175,-3.175 z m 0,1.322916 1.852084,1.852084 h -1.322917 v 1.5875 h -1.058333 v -1.5875 h -1.322917 z" id="import" inkscape:connector-curvature="0" sodipodi:nodetypes="ssssscccccccc" class="sprite" />
50
+ <g id="set-zoom" class="sprite" transform="matrix(0.26458333,0,0,0.26458333,-0.52916667,-227.10832)">
51
+ <polygon points="17.702,71.042 9.297,62.644 37.37,62.644 37.37,90.703 28.965,82.305 11.27,100 0,88.737 " id="polygon3044" transform="matrix(0.24,0,0,0.24,8,900.36218)" style="fill:#4d4d4d;fill-opacity:1" />
52
+ <polygon points="100,11.263 88.743,0 71.042,17.708 62.644,9.31 62.644,37.357 90.71,37.37 82.298,28.958 " id="polygon3048" transform="matrix(0.24,0,0,0.24,8,900.36218)" style="fill:#4d4d4d;fill-opacity:1" />
53
+ <path inkscape:connector-curvature="0" d="m 20,909.43106 c -1.618801,0 -2.93112,1.31256 -2.93112,2.93112 0,1.62192 1.31256,2.93448 2.93112,2.93448 1.6188,0 2.9328,-1.31256 2.9328,-2.93448 0,-1.6188 -1.314,-2.93112 -2.9328,-2.93112 z" id="path3052" style="fill:#4d4d4d;fill-opacity:1" />
54
+ </g>
55
+ <path d="m 12.460221,12.700004 c -0.890121,-0.0021 -1.610321,0.711677 -1.612305,1.5875 0.002,0.877761 0.722184,1.586074 1.612305,1.5875 0.593513,-8.73e-4 1.110529,-0.321123 1.389062,-0.79375 h 0.65319 l 0.520899,-0.504362 0.396875,0.380339 0.380338,-0.37207 0.388607,0.380338 0.396875,-0.380338 0.388607,0.380338 0.677994,-0.65319 c 0.09761,-0.09927 0.100016,-0.174188 0,-0.272852 l -0.553971,-0.545703 h -3.241146 c -0.277124,-0.47713 -0.799763,-0.794983 -1.39733,-0.79375 z m -0.7028,1.157552 c 0.233962,-0.0011 0.419905,0.187463 0.42168,0.42168 -0.0017,0.230958 -0.187613,0.419542 -0.42168,0.42168 -0.237929,-0.0024 -0.43214,-0.190722 -0.429948,-0.42168 -0.0022,-0.234217 0.192019,-0.422799 0.429948,-0.42168 z" id="permissions" style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.264583" class="sprite" />
56
+ <polygon points="87.5,50 100,50 50,0 0,50 12.5,50 12.5,87.5 43.75,87.5 43.75,62.5 56.25,62.5 56.25,87.5 87.5,87.5 " id="home" transform="matrix(0.0635,0,0,0.0635,30.162499,20.902083)" style="fill:#4d4d4d;fill-opacity:1" class="sprite" />
57
+ <path inkscape:connector-curvature="0" d="m 7.937502,33.337505 c 0,-0.119238 -0.0078,-0.236713 -0.02082,-0.352777 h -0.356658 c -0.159103,-1.275998 -1.168753,-2.285648 -2.44475,-2.445102 v -0.356307 c -0.116064,-0.01304 -0.233539,-0.02082 -0.352778,-0.02082 -0.119239,0 -0.236714,0.0078 -0.352778,0.02082 v 0.356659 c -1.275997,0.159102 -2.285647,1.168752 -2.445103,2.44475 h -0.356305 c -0.01305,0.116064 -0.02081,0.233539 -0.02081,0.352777 0,0.119239 0.0078,0.236714 0.02081,0.352779 h 0.356658 c 0.159103,1.275996 1.168753,2.285659 2.44475,2.445123 v 0.356658 c 0.116064,0.0127 0.233539,0.02037 0.352778,0.02037 0.119239,0 0.236714,-0.0077 0.352778,-0.0209 v -0.356658 c 1.275644,-0.159438 2.285647,-1.168757 2.445102,-2.444753 h 0.356659 c 0.0127,-0.115712 0.02046,-0.233187 0.02046,-0.352779 z m -2.822223,2.084929 v -0.32104 c 0,-0.195085 -0.158044,-0.352777 -0.352777,-0.352777 -0.194734,0 -0.352778,0.157692 -0.352778,0.352777 v 0.32104 c -0.885472,-0.148883 -1.582914,-0.845973 -1.731786,-1.731798 l 0.320675,-2.65e-4 c 0.195086,0 0.352778,-0.158046 0.352778,-0.352779 0,-0.194733 -0.157692,-0.352777 -0.352778,-0.352777 h -0.321028 c 0.149225,-0.885473 0.846667,-1.582915 1.732139,-1.73214 v 0.32103 c 0,0.194733 0.158044,0.352777 0.352778,0.352777 0.194733,0 0.352777,-0.158044 0.352777,-0.352777 v -0.32103 c 0.885825,0.148873 1.583267,0.846315 1.732139,1.73214 h -0.321028 c -0.195086,0 -0.352777,0.158044 -0.352777,0.352777 0,0.194733 0.157691,0.352779 0.352777,0.352779 l 0.321028,2.65e-4 c -0.149225,0.885825 -0.846314,1.582915 -1.732139,1.731798 z" id="geolocation" style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.264583" class="sprite" />
58
+ <g id="share" class="sprite" transform="matrix(0.26458333,0,0,0.26458333,-2.6458336,-229.22505)">
59
+ <circle id="path4309" style="fill:none;stroke:#464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" cx="100" cy="992.3623" r="11" />
60
+ <circle transform="rotate(-111.82202)" id="path4819" style="fill:#464646;fill-opacity:1;stroke:none;stroke-width:4.28879" cx="-963.88702" cy="-276.03735" r="2.5" />
61
+ <circle transform="rotate(-111.82202)" id="path4819-2" style="fill:#464646;fill-opacity:1;stroke:none;stroke-width:4.28879" cx="-956.38037" cy="-281.15619" r="2.5" />
62
+ <circle transform="rotate(-111.82202)" id="path4819-0" style="fill:#464646;fill-opacity:1;stroke:none;stroke-width:4.28879" cx="-954.66473" cy="-272.05554" r="2.5" />
63
+ <path sodipodi:nodetypes="ccc" inkscape:connector-curvature="0" id="path4850" d="m 102.3863,987.47517 -8.019138,4.91992 8.139348,5.3224" style="fill:none;stroke:#464646;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
64
+ </g>
65
+ <path inkscape:connector-curvature="0" id="search" d="m 17.462499,35.668489 -1.70307,-1.703546 c 0.229227,-0.37814 0.36356,-0.821299 0.36356,-1.296006 0,-1.384684 -1.12056,-2.505962 -2.505245,-2.50644 -1.383729,5.29e-4 -2.505245,1.121756 -2.505245,2.506202 0,1.38349 1.121755,2.504776 2.505962,2.504776 0.474947,0 0.917387,-0.134337 1.295528,-0.363564 l 1.704026,1.704027 z m -5.39413,-2.99979 c 0.0014,-0.856197 0.693896,-1.54866 1.549853,-1.550094 0.855718,0.0019 1.548419,0.693897 1.549853,1.550094 -0.0017,0.855477 -0.694135,1.548423 -1.549853,1.549619 -0.856196,0 -1.548658,-0.694142 -1.549853,-1.549619 z" style="fill:#4d4d4d;fill-opacity:1;stroke-width:0.264583" class="sprite" />
66
+ <g id="openstreetmap" transform="translate(-3.7041668,-3.7041668)">
67
+ <g inkscape:export-ydpi="28.799999" inkscape:export-xdpi="28.799999" inkscape:export-filename="/home/ybon/Work/osmtouch64.png" id="g4200" transform="matrix(0.04079979,0,0,0.04157104,32.959036,32.884868)" style="stroke-width:0.99068">
68
+ <path style="fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:0.99068" d="m 128.96875,25.03125 c -12.52235,-0.0027 -25.04602,4.645848 -34.59375,13.9375 -17.12646,16.66884 -17.71958,44.2522 -4.125,62.84375 l -13.21875,12.4375 c 0.14747,0.11709 9,8.5625 9,8.5625 l 12.5,-12.25 c 21.41449,14.9813 47.90478,12.41882 65.03125,-4.25 19.09544,-18.58519 19.09526,-48.75856 0,-67.34375 -9.54772,-9.292593 -22.0714,-13.93479 -34.59375,-13.9375 z m 0,7.9375 c 10.43487,0.0027 20.85607,3.880217 28.8125,11.625 15.91286,15.48761 15.94433,40.63733 0.0312,56.125 -15.91287,15.48766 -41.77464,15.48761 -57.6875,0 -15.912892,-15.48767 -15.912892,-40.63734 0,-56.125 7.95643,-7.743803 18.40888,-11.627705 28.84375,-11.625 z" id="path4189" inkscape:connector-curvature="0" />
69
+ <path style="fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:0.99068" d="m 63.879368,116.05569 -39.21875,37.9375 c -3.223956,3.12021 -3.215175,8.18323 0,11.3125 l 8.96875,8.71875 c 3.215174,3.12926 8.369796,3.12021 11.59375,0 l 39.21875,-37.9375 c 3.22396,-3.12021 3.21518,-8.18324 0,-11.3125 l -8.96875,-8.71875 c -3.48388,-3.074 -8.57545,-2.83371 -11.59375,0 z" id="path4169" inkscape:connector-curvature="0" />
70
+ </g>
71
+ <path inkscape:export-ydpi="28.799999" inkscape:export-xdpi="28.799999" inkscape:export-filename="/home/ybon/Work/osmtouch64.png" d="m 36.286947,38.82145 c -0.457367,0.452579 -0.512559,0.504833 -0.938758,0.934524 l 1.311056,-0.309645 c 0.03951,-0.177773 0.08574,-0.397942 0.09827,-0.449622 -0.206968,-0.007 -0.324977,-0.0729 -0.470564,-0.175257 z m 1.416518,-0.515743 c -0.04859,0.578556 -0.300471,0.62169 -0.777745,0.697632 -0.034,0.152288 -0.05699,0.258181 -0.0969,0.437787 l 1.223994,0.303984 c 0.164208,-0.701576 0.296132,-1.269942 0.293248,-1.273096 -0.0043,-0.0046 -0.327631,-0.08748 -0.642597,-0.166307 z m -0.587772,-0.141586 c -0.0016,0.0027 -0.06999,0.304712 -0.158099,0.698899 0.559065,-0.08996 0.575972,-0.270987 0.592873,-0.594974 -0.229404,-0.05691 -0.432289,-0.106081 -0.434774,-0.103925 z m -0.164475,-0.0092 c -0.135978,0.01159 -0.204073,0.02561 -0.353171,0.06753 0.04792,0.09125 0.07023,0.278832 -0.200036,0.497924 0.141563,0.08791 0.265261,0.122014 0.390009,0.137353 0.114356,-0.532403 0.172961,-0.615354 0.163198,-0.702835 z m -2.677486,-0.0065 -0.237148,0.943143 0.805796,-0.798942 c -0.18084,-0.04602 -0.34599,-0.08797 -0.568648,-0.144201 z m 5.612522,-0.03249 c -0.750179,0.194829 -1.362065,0.355852 -1.364242,0.358548 -0.0019,0.0027 -0.137285,0.574647 -0.303451,1.280914 l 1.337469,-0.33256 z m -2.182789,-0.197471 v 0.211759 c 0.276503,0.0699 0.560065,0.139645 0.618371,0.140292 0,0 -0.03096,-0.126516 -0.06757,-0.283199 -7.93e-4,0 -0.0016,0 -0.0026,0 -0.238721,0.0062 -0.321882,-0.0081 -0.548246,-0.06885 z m -0.679572,-0.315683 -0.0026,0.0027 0.09817,0.38583 c 0.02307,-0.0027 0.214998,0.04675 0.430948,0.10131 2.4e-5,-0.0864 1.64e-4,-0.157114 0.0013,-0.219523 -0.185131,-0.06365 -0.363024,-0.153906 -0.527846,-0.270232 z m -2.866186,-0.12471 0.131326,0.50016 c 0,0 0.363977,0.08961 0.697421,0.171483 l 0.03825,-0.03769 c -0.494559,-0.17868 -0.501422,-0.552676 -0.866997,-0.633955 z m 5.579372,-0.111716 c -0.494358,0.418395 -0.758865,0.525016 -1.314519,0.614464 0.03396,0.138971 0.06369,0.258155 0.07268,0.285814 0.0076,0.02345 0.467328,-0.08354 1.388467,-0.320887 z m -3.207882,-0.254623 c -0.06109,-0.08511 -0.11524,-0.173667 -0.161925,-0.265029 -0.359863,0.0798 -0.952985,0.222488 -0.97027,0.237747 -0.0073,0.0065 0.04546,0.244648 0.118573,0.540437 0.178835,-0.168006 0.384271,-0.137731 0.520491,-0.04456 m 0.507283,0.496144 c 0.125,-0.04259 0.297064,-0.07581 0.406593,-0.08915 -0.01373,-0.100393 -0.0232,-0.163665 -0.06247,-0.267616 m -2.910811,-0.983419 0.131326,0.528737 c 0.662519,0.255998 0.711877,0.768478 1.067168,0.697631 l 0.228224,-0.226046 c -0.07081,-0.298943 -0.153485,-0.613683 -0.173397,-0.633956 -0.0046,-0.0046 -1.253321,-0.366366 -1.253321,-0.366366 z m 2.186615,-1.140587 -0.443699,0.111716 c -0.09333,0.398662 -0.219022,0.89726 -0.294523,1.192563 0.363871,-0.102631 0.462682,-0.124171 0.872095,-0.20785 -0.143711,-0.349112 -0.188886,-0.728445 -0.133873,-1.096429 z m -1.87424,-0.285813 -0.313648,1.249741 c 0.483029,0.139375 0.763559,0.218579 1.252043,0.335148 0.10314,-0.32458 0.219451,-0.683155 0.303448,-1.197766 -0.325758,-0.103251 -0.521049,-0.166792 -1.241843,-0.387123 z m 2.351088,-1.414701 -1.220169,0.30269 c 0.172125,0.761442 0.298183,1.305114 0.305999,1.313364 0.0075,0.0078 0.225253,-0.03952 0.473022,-0.09743 0.116554,-0.470022 0.217924,-0.632905 0.563546,-0.989889 -0.03709,-0.162128 -0.07823,-0.339596 -0.122398,-0.528737 z m 0.163197,-0.01698 c 0.05038,0.214994 0.05503,0.230495 0.09945,0.419609 0.140443,-0.115059 0.293208,-0.208632 0.452622,-0.281905 z m -2.852158,0 0.318746,1.249742 c 0.700001,0.21006 1.258697,0.375235 1.262245,0.371542 0.0038,-0.004 -0.123335,-0.586051 -0.283048,-1.309482 z m 5.60487,-0.01159 -0.493422,0.122095 c 0.227135,0.09573 0.440336,0.233245 0.628571,0.411818 z m -2.717445,2.334255 c 0.109487,0.68124 0.842335,1.193371 1.606491,1.108532 0.285036,-0.686201 0.484585,-0.652934 0.594535,-1.340268 0.0044,-0.611014 -0.784114,-0.234107 -1.142519,-0.214697 -0.615619,-0.01995 -0.584985,-0.758423 -0.651779,-0.867659 -0.190072,0.142368 -0.521817,0.587372 -0.406728,1.314092 z m 0.702955,-1.549601 c 0.200636,0.645656 0.243692,0.866311 0.883571,0.613171 0.481322,-0.142179 0.864986,0.05125 0.927298,0.283279 0.102087,0.345959 -0.06402,0.852913 -0.5091,1.641961 0.697153,-0.379441 0.91768,-1.209169 0.667258,-1.845956 -0.341146,-0.72645 -1.135436,-1.087828 -1.969027,-0.692455 z" style="fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:0.264583" id="path5801" inkscape:connector-curvature="0" />
72
+ </g>
73
+ <g id="delete-marker" transform="matrix(0.26458333,0,0,0.26458333,-4.9136911,-228.12889)" class="sprite">
74
+ <path id="path3378-6" d="m 178.57143,979.21934 c -3.0625,0 -6.125,2.1197 -7,6.375 0,2.5532 1.75,7.6676 7,13.625 3.4166,-3.877 5.31568,-7.3755 6.25,-10.0625 -1.31416,-0.1622 -2.497,-0.7235 -3.40625,-1.5938 -0.63462,0.8653 -1.6677,1.4375 -2.84375,1.4375 -1.933,0 -3.5,-1.5261 -3.5,-3.4062 0,-1.8801 1.567,-3.4063 3.5,-3.4063 0.36776,0 0.72951,0.085 1.0625,0.1875 0.14352,-1.0312 0.55799,-1.956 1.15625,-2.75 -0.72276,-0.259 -1.46314,-0.4062 -2.21875,-0.4062 z" style="fill:#4d4d4d;fill-opacity:1;stroke:none" inkscape:connector-curvature="0" />
75
+ <path inkscape:connector-curvature="0" id="path6764" d="m 185.57143,978.21934 c -2.76142,0 -5,2.2386 -5,5 0,2.7615 2.23858,5 5,5 2.76142,0 5,-2.2385 5,-5 0,-2.7614 -2.23858,-5 -5,-5 z m -1.81818,2.2727 1.81818,1.8182 1.81818,-1.8182 0.90909,0.9091 -1.81818,1.8182 1.81818,1.8182 -0.90909,0.9091 -1.81818,-1.8182 -1.81818,1.8182 -0.90909,-0.9091 1.81818,-1.8182 -1.81818,-1.8182 z" style="fill:#4d4d4d;fill-opacity:1;fill-rule:nonzero;stroke:none" />
76
+ </g>
77
+ <g id="multipolygon" class="sprite" transform="matrix(0.26458333,0,0,0.26458333,-0.57877605,-230.28333)">
78
+ <path style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:1;marker:none;enable-background:accumulate" d="m 10.1875,1017.3622 v 0.5 3 0.5 h 0.5 1.3125 l -1.59375,14 h -1.71875 -0.5 v 0.5 3 0.5 h 0.5 3 0.5 v -0.5 -1.5938 c 0,0 13.716518,-10.9062 13.71875,-10.9062 h 1.78125 0.5 v -0.5 -3 -0.5 h -0.5 -3 -0.5 v 0.5 0.8125 l -10,-3.5938 v -2.2187 -0.5 h -0.5 -3 z m 1,1 h 2 v 2 h -2 z m 14,5 h 2 v 2 h -2 z m -16,13 h 2 v 2 h -2 z" id="rect4058-1-2" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccccccccccccccccccccccccccccccccccccccccccccc" />
79
+ <path style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:1;marker:none;enable-background:accumulate" d="m 18,1043.3622 h -3.5 -0.5 v 0.5 3 0.5 h 0.5 3 0.5 v -0.5 -1.5937 l 10,-0.6875 v 1.2812 0.5 h 0.5 3 0.5 v -0.5 -3 -0.5 h -0.5 -1.15625 l -2.4375,-8 h 1.78125 0.5 v -0.5 -3 -0.5 h -0.5 -3 -0.6875 c 0,3 0,3 0,3 0,0 -7.8125,10 -8,10 z m 9.1875,-12 h 2 v 2 h -2 z m 1.8125,12 h 2 v 2 h -2 z m -14,1 c 2,0 0,0 2,0 v 2 h -2 z" id="rect4058-1-2-0" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccccccccccccccccccccccccccccccccccccccccccccc" />
80
+ </g>
81
+ <g id="multiline" class="sprite" transform="matrix(0.26458333,0,0,0.26458333,-1.5875001,-230.81236)">
82
+ <path sodipodi:nodetypes="ccccccccccccccccccccccccccccccccccccccc" id="rect4058-9" d="m 51,1020.3622 v 0.5 3 0.5 h 0.5 3 0.5 v -0.5 -0.3438 l 10,4 v 1.3438 0.4375 l 1.09375,0.062 h 2.40625 0.5 v -0.5 -3 -0.5 h -0.5 -3 -0.5 v 0.5 0.5625 l -10,-4 v -1.5625 -0.5 h -0.5 -3 z m 1,1 h 2 v 2 h -2 z m 14,5 h 2 v 2 h -2 z" style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:1;marker:none;enable-background:accumulate" inkscape:connector-curvature="0" />
83
+ <path sodipodi:nodetypes="ccccccccccccccccccccccccccccccccccccc" id="rect4058-9-5" d="m 55.09375,1030.5184 v 1.3438 0.4375 l 7.09375,11.0625 h 2.40625 0.5 v 0.5 3 0.5 h -0.5 -3 -0.5 v -0.5 -3 -0.375 l -7.09375,-11.125 h -2.40625 -0.5 v -0.5 -3 -0.5 h 0.5 3 0.5 v 0.5 0.5625 z m -1,-1.1562 h -2 v 2 h 2 z m 10,15 h -2 v 2 h 2 z" style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:Sans;-inkscape-font-specification:Sans;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#4d4d4d;fill-opacity:1;stroke:none;stroke-width:1;marker:none;enable-background:accumulate" inkscape:connector-curvature="0" />
84
+ </g>
85
+ <g id="geolocation-active" class="sprite" transform="matrix(0.26458333,0,0,0.26458333,-2.6458292,-230.2833)">
86
+ <path inkscape:connector-curvature="0" d="m 112.00002,1032.3625 c 0,-0.4507 -0.0293,-0.8947 -0.0787,-1.3334 h -1.348 c -0.60133,-4.8226 -4.41733,-8.6387 -9.24,-9.2413 v -1.3467 c -0.43867,-0.049 -0.88267,-0.079 -1.333332,-0.079 -0.450667,0 -0.894667,0.029 -1.333333,0.079 v 1.348 c -4.822667,0.6013 -8.638667,4.4174 -9.241334,9.24 h -1.346667 c -0.04933,0.4387 -0.07867,0.8827 -0.07867,1.3334 0,0.4506 0.02933,0.8946 0.07867,1.3333 h 1.348001 c 0.601333,4.8227 4.417333,8.6387 9.24,9.2414 v 1.348 c 0.438666,0.048 0.882666,0.077 1.333333,0.077 0.450662,0 0.894662,-0.029 1.333332,-0.079 v -1.348 c 4.82134,-0.6026 8.63867,-4.4173 9.24134,-9.24 h 1.348 c 0.048,-0.4373 0.0773,-0.8813 0.0773,-1.3333 z m -10.66667,7.88 v -1.2134 c 0,-0.7373 -0.59733,-1.3333 -1.33333,-1.3333 -0.735999,0 -1.333332,0.596 -1.333332,1.3333 v 1.2134 c -3.346667,-0.5627 -5.982667,-3.1974 -6.545334,-6.5454 h 1.212 c 0.737334,0 1.333334,-0.5973 1.333334,-1.3333 0,-0.736 -0.596,-1.3333 -1.333334,-1.3333 h -1.213333 c 0.564,-3.3467 3.2,-5.9827 6.546667,-6.5467 v 1.2133 c 0,0.736 0.597333,1.3334 1.333332,1.3334 0.736,0 1.33333,-0.5974 1.33333,-1.3334 v -1.2133 c 3.34801,0.5627 5.98401,3.1987 6.54667,6.5467 h -1.21333 c -0.73733,0 -1.33333,0.5973 -1.33333,1.3333 0,0.736 0.596,1.3333 1.33333,1.3333 h 1.21333 c -0.564,3.348 -3.19866,5.9827 -6.54667,6.5454 z" id="path4611-6" style="fill:#4d4d4d;fill-opacity:1" />
87
+ <circle r="2.5" cy="-290.92014" cx="-995.55865" style="fill:#464646;fill-opacity:1;stroke:none;stroke-width:4.28879" id="path4819-7" transform="rotate(-111.82202)" />
88
+ </g>
89
+ <path style="fill:#464646;fill-opacity:1;stroke:none;stroke-width:1.84551;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" inkscape:transform-center-x="-0.0017170804" inkscape:transform-center-y="-1.1593678" d="m 31.537126,45.771563 0.577355,-2.184903 -1.687401,-1.349931 h 2.154994 l 0.756436,-2.28465 0.754501,2.284227 h 2.154902 l -1.688682,1.351121 0.575368,2.185485 -1.798166,-1.252432 z" id="star" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccccccc" class="sprite" />
90
+ <path style="fill:none;fill-opacity:1;stroke:#464646;stroke-width:0.264583;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" inkscape:transform-center-x="-0.0017170804" inkscape:transform-center-y="-1.1593678" d="m 40.742193,45.771563 0.577355,-2.184903 -1.687401,-1.349931 h 2.154994 l 0.756436,-2.28465 0.754502,2.284227 h 2.154901 l -1.688682,1.351121 0.575368,2.185485 -1.798169,-1.252432 z" id="starred" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccccccc" class="sprite" />
91
+ <path d="m 16.75657,23.457511 0.367177,0.21791 c 0.07232,0.04294 0.09577,0.135732 0.0524,0.207275 -0.01292,0.02122 -0.03092,0.03903 -0.0524,0.0518 l -2.836254,1.6832 -2.836235,-1.6832 c -0.07233,-0.04294 -0.09579,-0.135704 -0.05238,-0.207274 0.0129,-0.02125 0.03089,-0.03905 0.05238,-0.05181 l 0.367179,-0.21791 2.469056,1.465315 z m 0,1.419992 0.367177,0.217911 c 0.07232,0.04294 0.09577,0.135731 0.0524,0.207274 -0.01292,0.02125 -0.03092,0.03903 -0.0524,0.05181 l -2.679097,1.58996 c -0.09674,0.05739 -0.217576,0.05739 -0.314315,0 l -2.679077,-1.58996 c -0.07233,-0.04292 -0.09579,-0.135705 -0.05238,-0.207249 0.0129,-0.02127 0.03089,-0.03908 0.05238,-0.05183 l 0.367179,-0.217911 2.469056,1.465315 z m -2.31192,-4.196946 2.679097,1.589967 c 0.07232,0.04292 0.09577,0.135715 0.0524,0.207256 -0.01292,0.02126 -0.03092,0.03906 -0.0524,0.05182 l -2.836254,1.683221 -2.836235,-1.683221 c -0.07233,-0.04292 -0.09579,-0.135716 -0.05238,-0.207256 0.0129,-0.02126 0.03089,-0.03906 0.05238,-0.05182 l 2.679077,-1.589967 c 0.09674,-0.05741 0.217576,-0.05741 0.314315,0 z" fill="#4d4d4d" id="datalayers" style="stroke-width:0.264583" />
92
+ <g id="tilelayers" transform="translate(0,-0.26458333)">
93
+ <path d="m 26.772659,3.4276506 h -4.243945 c -0.07035,0 -0.137814,0.027945 -0.187558,0.077687 -0.04974,0.049744 -0.07769,0.1172104 -0.07769,0.1875578 v 4.2439431 c 0,0.070353 0.02794,0.1378215 0.07769,0.1875631 0.04974,0.049742 0.11721,0.077682 0.187558,0.077682 h 4.243945 c 0.07035,0 0.137822,-0.02794 0.187563,-0.077682 0.04974,-0.049742 0.07768,-0.1172104 0.07768,-0.1875631 v -4.2439431 c 0,-0.070347 -0.02794,-0.1378135 -0.07768,-0.1875578 -0.04974,-0.049742 -0.11721,-0.077687 -0.187563,-0.077687 z m -0.265245,4.1590648 h -3.713453 v -3.546348 h 3.713453 z" fill="#464646" id="path2349" style="stroke-width:0.264583" />
94
+ <g mask="url(#mask0_181_11898)" id="g2376" transform="matrix(0.26458333,0,0,0.26458333,20.637501,1.8520833)">
95
+ <path d="m 16.0401,2.3158 h -14.0351 v 14.0351 h 14.0351 z" fill="#d5ecbe" id="path2354" />
96
+ <path d="m 2.37597,3.42857 c 0.26774,-0.31238 0.61516,-0.54633 1.00529,-0.67696 0.39014,-0.13063 0.80838,-0.15306 1.21025,-0.06489 0.32391,0.15649 0.58536,0.41794 0.74185,0.74185 0.37093,0.72181 0,1.26316 0,2.21554 -0.0802,1.72431 1.00251,2.08522 0.73183,3.68923 -0.0802,0.57142 -0.34085,1.44356 -0.73183,1.47366 -0.62155,0.0602 -0.94235,-2.00499 -2.21554,-2.21552 -0.39097,-0.06015 -0.47117,0.11028 -0.74185,0 -1.05263,-0.401 -1.523811,-3.65915 0,-5.16291 z" fill="#e9daab" id="path2356" />
97
+ <path d="m 7.1779,16.3509 c -1.75438,-1.7243 -2.16541,-1.7544 -2.16541,-2.2156 -0.1604,-1.0025 1.74436,-1.2932 2.21554,-2.9573 0.33083,-1.173 -0.47118,-1.56396 -0.74186,-3.68927 -0.1604,-1.25313 -0.401,-3.21805 0.74186,-4.43108 1.14286,-1.21303 3.13787,-1.17293 4.43107,-0.74185 1.0647,0.38986 1.9867,1.09245 2.6451,2.01558 0.6584,0.92314 1.0223,2.02371 1.0441,3.15735 0,1.24311 -0.6817,1.65413 -0.7318,3.68927 0.0605,0.7372 0.0605,1.4782 0,2.2155 -0.1546,1.1225 -0.6763,2.1624 -1.4837,2.9574 -1.5038,1.3433 -3.90978,1.6942 -5.22307,0.7418 -0.15037,-0.1102 -0.07017,-0.0501 -0.73183,-0.7418 z" fill="#bcd8af" id="path2358" />
98
+ <path d="m 14.1956,9.33332 c -0.4303,0.37544 -0.6966,0.90438 -0.7419,1.47368 0,0.1203 0,1.213 0.7419,1.4837 0.2937,0.0714 0.6033,0.036 0.8733,-0.0999 0.27,-0.1359 0.4828,-0.3635 0.6004,-0.6419 0.066,-0.2429 0.066,-0.499 0,-0.7419 -0.1604,-1.38345 0.3007,-2.00501 0,-2.21553 -0.3008,-0.21053 -1.0928,0.35087 -1.4737,0.74185 z" fill="#ebe9d6" id="path2360" />
99
+ <path d="m 14.1955,15.2381 c 0.2874,0.0123 0.5733,-0.0483 0.831,-0.1763 0.2577,-0.1279 0.4788,-0.3191 0.6427,-0.5555 0.2005,-0.3308 0.4411,-1.0526 0,-1.4837 -0.2062,-0.1739 -0.4672,-0.2693 -0.7369,-0.2693 -0.2696,0 -0.5306,0.0954 -0.7368,0.2693 0,0 -1.4837,0.7418 -1.4837,1.4837 0,0.7418 1.4837,0.7318 1.4837,0.7318 z" fill="#f3ecdd" id="path2362" />
100
+ <path d="m 7.90976,1.57394 c -1.89474,1.32331 -2.26566,2.29574 -2.21554,2.9574 0.0802,1.0025 1.09273,1.37343 1.48371,3.00752 0.19537,0.72559 0.19537,1.48994 0,2.21553 -0.58145,1.85461 -2.51629,1.88471 -3.69925,3.68921 -0.6679,1.11 -0.92678,2.4186 -0.73183,3.6993" stroke="#dfa170" stroke-width="0.75" stroke-miterlimit="10" id="path2364" style="fill:none" />
101
+ <path d="m 5.33325,1.94485 c 1.5732,1.61744 2.60339,3.68483 2.94737,5.91479 0.13097,0.73271 0.13097,1.48283 0,2.21556 -0.33083,1.7042 -1.30326,2.3559 -2.21554,4.4311 -0.31515,0.713 -0.56025,1.455 -0.73183,2.2155" stroke="#e0859b" stroke-width="0.25" stroke-miterlimit="10" id="path2366" style="fill:none" />
102
+ <path d="m 10.4963,14.5063 c -1.84462,-1.0025 -1.7143,-5.53387 0,-6.64665 0.5915,-0.38096 1.1328,-0.21053 1.4837,-0.74186 0.5213,-0.802 -0.411,-1.69423 0,-2.95739 0.2306,-0.72181 0.8922,-1.52381 1.4737,-1.47369 1.0025,0.0802 2.1253,2.5564 1.4737,4.43108 -0.5314,1.56391 -1.9148,1.51379 -2.2156,3.00751 -0.3408,1.6441 1.2732,2.6266 0.7419,3.6892 -0.3395,0.4362 -0.8182,0.7428 -1.3564,0.8687 -0.5382,0.1259 -1.1033,0.0634 -1.601,-0.1769 z" fill="#ade3ea" id="path2368" />
103
+ <path d="m 7.90971,2.31578 c -0.39098,0.91228 0.21052,2.14537 0.74185,2.21554 0.53133,0.07018 0.66166,-0.65163 1.48374,-0.74185 0.401,0 0.5213,0.1203 0.7318,0 0.5013,-0.27068 0.6115,-1.62406 0,-2.21554 -0.2397,-0.1568 -0.5092,-0.26229 -0.7916,-0.30984 -0.28244,-0.04755 -0.57165,-0.03612 -0.84944,0.03356 -0.2778,0.06969 -0.53816,0.19612 -0.76471,0.37134 -0.22654,0.17522 -0.41436,0.39544 -0.55164,0.64679 z" fill="#748ec2" id="path2370" />
104
+ <path d="m 10.1354,5.27317 c -0.31082,0.30075 -0.88225,0.85213 -0.7419,1.47369 0.09023,0.401 0.45113,0.78195 0.7419,0.74185 0.2907,-0.0401 0.2907,-0.57143 0.7318,-0.74185 0.4411,-0.17043 0.5113,0.11027 0.7418,0 0.5314,-0.24061 0.6116,-1.92482 0,-2.21554 -0.6115,-0.29073 -1.2431,0.4812 -1.4736,0.74185 z" fill="#f3ecdd" id="path2372" />
105
+ <path d="m 3.47861,3.78948 c 0.27068,-0.1604 1.31328,0.54135 1.48371,1.48371 0.17043,0.94236 -0.82205,2.31579 -1.48371,2.21554 -0.28201,-0.11246 -0.51262,-0.32501 -0.64766,-0.59693 -0.13503,-0.27192 -0.165,-0.58411 -0.08417,-0.87676 0.27068,-0.55137 1.45364,-0.4411 1.47369,-0.73183 0.02005,-0.29072 -0.51128,-0.27067 -0.74186,-0.75188 -0.1203,-0.27067 -0.14035,-0.65162 0,-0.74185 z" fill="#cfd7c8" id="path2374" />
106
+ </g>
107
+ <path d="m 25.146689,1.8520833 h -4.243941 c -0.07035,0 -0.137815,0.027946 -0.187558,0.077689 -0.04974,0.049744 -0.07769,0.1172099 -0.07769,0.1875586 v 4.2439405 c 0,0.070353 0.02795,0.1378215 0.07769,0.1875632 0.04974,0.049742 0.11721,0.077682 0.187558,0.077682 h 4.243941 c 0.07035,0 0.137821,-0.02794 0.187563,-0.077682 0.04974,-0.049742 0.07768,-0.1172105 0.07768,-0.1875632 v -4.2439405 c 0,-0.070349 -0.02794,-0.1378151 -0.07768,-0.1875586 -0.04974,-0.049743 -0.11721,-0.077689 -0.187563,-0.077689 z m -0.265245,4.1590648 h -3.713451 v -3.5463453 h 3.713451 z" fill="#464646" id="path2378" style="stroke-width:0.264583" />
108
+ </g>
109
+ </g>
110
+ </svg>
@@ -0,0 +1,13 @@
1
+ class UmapFragment extends HTMLElement {
2
+ connectedCallback() {
3
+ new L.U.Map(this.firstElementChild.id, JSON.parse(this.dataset.settings))
4
+ }
5
+ }
6
+
7
+ function register(Class, tagName) {
8
+ if ('customElements' in window && !customElements.get(tagName)) {
9
+ customElements.define(tagName, Class)
10
+ }
11
+ }
12
+
13
+ register(UmapFragment, 'umap-fragment')
@@ -0,0 +1,8 @@
1
+ import * as L from '../../vendors/leaflet/leaflet-src.esm.js'
2
+ import URLs from './urls.js'
3
+ // Import modules and export them to the global scope.
4
+ // For the not yet module-compatible JS out there.
5
+
6
+ // Copy the leaflet module, it's expected by leaflet plugins to be writeable.
7
+ window.L = { ...L }
8
+ window.umap = { URLs }
@@ -0,0 +1,29 @@
1
+ import { Util } from '../../vendors/leaflet/leaflet-src.esm.js'
2
+
3
+ export default class URLs {
4
+ constructor(serverUrls) {
5
+ this.urls = serverUrls
6
+ }
7
+
8
+ get(urlName, params) {
9
+ if (typeof this[urlName] === 'function') return this[urlName](params)
10
+
11
+ if (this.urls.hasOwnProperty(urlName)) {
12
+ return Util.template(this.urls[urlName], params)
13
+ } else {
14
+ throw `Unable to find a URL for route ${urlName}`
15
+ }
16
+ }
17
+
18
+ // Update if map_id is passed, create otherwise.
19
+ map_save({ map_id, ...options }) {
20
+ if (map_id) return this.get('map_update', { map_id, ...options })
21
+ return this.get('map_create')
22
+ }
23
+
24
+ // Update the layer if pk is passed, create otherwise.
25
+ datalayer_save({ map_id, pk }, ...options) {
26
+ if (pk) return this.get('datalayer_update', { map_id, pk }, ...options)
27
+ return this.get('datalayer_create', { map_id, pk }, ...options)
28
+ }
29
+ }
@@ -0,0 +1,336 @@
1
+ L.U.AutoComplete = L.Class.extend({
2
+ options: {
3
+ placeholder: 'Start typing...',
4
+ emptyMessage: 'No result',
5
+ allowFree: true,
6
+ minChar: 2,
7
+ maxResults: 5,
8
+ },
9
+
10
+ CACHE: '',
11
+ RESULTS: [],
12
+
13
+ initialize: function (el, options) {
14
+ this.el = el
15
+ const ui = new L.U.UI(document.querySelector('header'))
16
+ this.xhr = new L.U.Xhr(ui)
17
+ L.setOptions(this, options)
18
+ let CURRENT = null
19
+ try {
20
+ Object.defineProperty(this, 'CURRENT', {
21
+ get: function () {
22
+ return CURRENT
23
+ },
24
+ set: function (index) {
25
+ if (typeof index === 'object') {
26
+ index = this.resultToIndex(index)
27
+ }
28
+ CURRENT = index
29
+ },
30
+ })
31
+ } catch (e) {
32
+ // Hello IE8
33
+ }
34
+ return this
35
+ },
36
+
37
+ createInput: function () {
38
+ this.input = L.DomUtil.element(
39
+ 'input',
40
+ {
41
+ type: 'text',
42
+ placeholder: this.options.placeholder,
43
+ autocomplete: 'off',
44
+ className: this.options.className,
45
+ },
46
+ this.el
47
+ )
48
+ L.DomEvent.on(this.input, 'keydown', this.onKeyDown, this)
49
+ L.DomEvent.on(this.input, 'keyup', this.onKeyUp, this)
50
+ L.DomEvent.on(this.input, 'blur', this.onBlur, this)
51
+ },
52
+
53
+ createContainer: function () {
54
+ this.container = L.DomUtil.element(
55
+ 'ul',
56
+ { className: 'umap-autocomplete' },
57
+ document.body
58
+ )
59
+ },
60
+
61
+ resizeContainer: function () {
62
+ const l = this.getLeft(this.input)
63
+ const t = this.getTop(this.input) + this.input.offsetHeight
64
+ this.container.style.left = `${l}px`
65
+ this.container.style.top = `${t}px`
66
+ const width = this.options.width ? this.options.width : this.input.offsetWidth - 2
67
+ this.container.style.width = `${width}px`
68
+ },
69
+
70
+ onKeyDown: function (e) {
71
+ switch (e.keyCode) {
72
+ case L.U.Keys.TAB:
73
+ if (this.CURRENT !== null) this.setChoice()
74
+ L.DomEvent.stop(e)
75
+ break
76
+ case L.U.Keys.ENTER:
77
+ L.DomEvent.stop(e)
78
+ this.setChoice()
79
+ break
80
+ case L.U.Keys.ESC:
81
+ L.DomEvent.stop(e)
82
+ this.hide()
83
+ break
84
+ case L.U.Keys.DOWN:
85
+ if (this.RESULTS.length > 0) {
86
+ if (this.CURRENT !== null && this.CURRENT < this.RESULTS.length - 1) {
87
+ // what if one result?
88
+ this.CURRENT++
89
+ this.highlight()
90
+ } else if (this.CURRENT === null) {
91
+ this.CURRENT = 0
92
+ this.highlight()
93
+ }
94
+ }
95
+ break
96
+ case L.U.Keys.UP:
97
+ if (this.CURRENT !== null) {
98
+ L.DomEvent.stop(e)
99
+ }
100
+ if (this.RESULTS.length > 0) {
101
+ if (this.CURRENT > 0) {
102
+ this.CURRENT--
103
+ this.highlight()
104
+ } else if (this.CURRENT === 0) {
105
+ this.CURRENT = null
106
+ this.highlight()
107
+ }
108
+ }
109
+ break
110
+ }
111
+ },
112
+
113
+ onKeyUp: function (e) {
114
+ const special = [
115
+ L.U.Keys.TAB,
116
+ L.U.Keys.ENTER,
117
+ L.U.Keys.LEFT,
118
+ L.U.Keys.RIGHT,
119
+ L.U.Keys.DOWN,
120
+ L.U.Keys.UP,
121
+ L.U.Keys.APPLE,
122
+ L.U.Keys.SHIFT,
123
+ L.U.Keys.ALT,
124
+ L.U.Keys.CTRL,
125
+ ]
126
+ if (special.indexOf(e.keyCode) === -1) {
127
+ this.search()
128
+ }
129
+ },
130
+
131
+ onBlur: function () {
132
+ setTimeout(() => this.hide(), 100)
133
+ },
134
+
135
+ clear: function () {
136
+ this.RESULTS = []
137
+ this.CURRENT = null
138
+ this.CACHE = ''
139
+ this.container.innerHTML = ''
140
+ },
141
+
142
+ hide: function () {
143
+ this.clear()
144
+ this.container.style.display = 'none'
145
+ this.input.value = ''
146
+ },
147
+
148
+ setChoice: function (choice) {
149
+ choice = choice || this.RESULTS[this.CURRENT]
150
+ if (choice) {
151
+ this.input.value = choice.item.label
152
+ this.options.on_select(choice)
153
+ this.displaySelected(choice)
154
+ this.hide()
155
+ if (this.options.callback) {
156
+ L.Util.bind(this.options.callback, this)(choice)
157
+ }
158
+ }
159
+ },
160
+
161
+ search: function () {
162
+ const val = this.input.value
163
+ if (val.length < this.options.minChar) {
164
+ this.clear()
165
+ return
166
+ }
167
+ if (`${val}` === `${this.CACHE}`) return
168
+ else this.CACHE = val
169
+ this._do_search(
170
+ val,
171
+ function (data) {
172
+ this.handleResults(data.data)
173
+ },
174
+ this
175
+ )
176
+ },
177
+
178
+ createResult: function (item) {
179
+ const el = L.DomUtil.element('li', {}, this.container)
180
+ el.textContent = item.label
181
+ const result = {
182
+ item: item,
183
+ el: el,
184
+ }
185
+ L.DomEvent.on(
186
+ el,
187
+ 'mouseover',
188
+ function () {
189
+ this.CURRENT = result
190
+ this.highlight()
191
+ },
192
+ this
193
+ )
194
+ L.DomEvent.on(
195
+ el,
196
+ 'mousedown',
197
+ function () {
198
+ this.setChoice()
199
+ },
200
+ this
201
+ )
202
+ return result
203
+ },
204
+
205
+ resultToIndex: function (result) {
206
+ let out = null
207
+ this.forEach(this.RESULTS, (item, index) => {
208
+ if (item.item.value == result.item.value) {
209
+ out = index
210
+ return
211
+ }
212
+ })
213
+ return out
214
+ },
215
+
216
+ handleResults: function (data) {
217
+ this.clear()
218
+ this.container.style.display = 'block'
219
+ this.resizeContainer()
220
+ this.forEach(data, (item) => {
221
+ this.RESULTS.push(this.createResult(item))
222
+ })
223
+ this.CURRENT = 0
224
+ this.highlight()
225
+ //TODO manage no results
226
+ },
227
+
228
+ highlight: function () {
229
+ this.forEach(this.RESULTS, (result, index) => {
230
+ if (index === this.CURRENT) L.DomUtil.addClass(result.el, 'on')
231
+ else L.DomUtil.removeClass(result.el, 'on')
232
+ })
233
+ },
234
+
235
+ getLeft: function (el) {
236
+ let tmp = el.offsetLeft
237
+ el = el.offsetParent
238
+ while (el) {
239
+ tmp += el.offsetLeft
240
+ el = el.offsetParent
241
+ }
242
+ return tmp
243
+ },
244
+
245
+ getTop: function (el) {
246
+ let tmp = el.offsetTop
247
+ el = el.offsetParent
248
+ while (el) {
249
+ tmp += el.offsetTop
250
+ el = el.offsetParent
251
+ }
252
+ return tmp
253
+ },
254
+
255
+ forEach: function (els, callback) {
256
+ Array.prototype.forEach.call(els, callback)
257
+ },
258
+ })
259
+
260
+ L.U.AutoComplete.Ajax = L.U.AutoComplete.extend({
261
+ initialize: function (el, options) {
262
+ L.U.AutoComplete.prototype.initialize.call(this, el, options)
263
+ if (!this.el) return this
264
+ this.createInput()
265
+ this.createContainer()
266
+ this.selected_container = this.initSelectedContainer()
267
+ },
268
+
269
+ optionToResult: function (option) {
270
+ return {
271
+ value: option.value,
272
+ label: option.innerHTML,
273
+ }
274
+ },
275
+
276
+ _do_search: function (val, callback, context) {
277
+ val = val.toLowerCase()
278
+ this.xhr.get(`/agnocomplete/AutocompleteUser/?q=${encodeURIComponent(val)}`, {
279
+ callback: callback,
280
+ context: context || this,
281
+ })
282
+ },
283
+ })
284
+
285
+ L.U.AutoComplete.Ajax.SelectMultiple = L.U.AutoComplete.Ajax.extend({
286
+ initSelectedContainer: function () {
287
+ return L.DomUtil.after(
288
+ this.input,
289
+ L.DomUtil.element('ul', { className: 'umap-multiresult' })
290
+ )
291
+ },
292
+
293
+ displaySelected: function (result) {
294
+ const result_el = L.DomUtil.element('li', {}, this.selected_container)
295
+ result_el.textContent = result.item.label
296
+ const close = L.DomUtil.element('span', { className: 'close' }, result_el)
297
+ close.textContent = '×'
298
+ L.DomEvent.on(
299
+ close,
300
+ 'click',
301
+ function () {
302
+ this.selected_container.removeChild(result_el)
303
+ this.options.on_unselect(result)
304
+ },
305
+ this
306
+ )
307
+ this.hide()
308
+ },
309
+ })
310
+
311
+ L.U.AutoComplete.Ajax.Select = L.U.AutoComplete.Ajax.extend({
312
+ initSelectedContainer: function () {
313
+ return L.DomUtil.after(
314
+ this.input,
315
+ L.DomUtil.element('div', { className: 'umap-singleresult' })
316
+ )
317
+ },
318
+
319
+ displaySelected: function (result) {
320
+ const result_el = L.DomUtil.element('div', {}, this.selected_container)
321
+ result_el.textContent = result.item.label
322
+ const close = L.DomUtil.element('span', { className: 'close' }, result_el)
323
+ close.textContent = '×'
324
+ this.input.style.display = 'none'
325
+ L.DomEvent.on(
326
+ close,
327
+ 'click',
328
+ function () {
329
+ this.selected_container.innerHTML = ''
330
+ this.input.style.display = 'block'
331
+ },
332
+ this
333
+ )
334
+ this.hide()
335
+ },
336
+ })