3845 |
idir |
1 |
(function (global, factory) {
|
|
|
2 |
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
|
3 |
typeof define === 'function' && define.amd ? define('leafletGestureHandling', ['exports'], factory) :
|
|
|
4 |
(factory((global.leafletGestureHandling = {})));
|
|
|
5 |
}(this, (function (exports) { 'use strict';
|
|
|
6 |
|
|
|
7 |
var LanguageContent = {
|
|
|
8 |
//Arabic
|
|
|
9 |
ar: {
|
|
|
10 |
touch: "\u0627\u0633\u062a\u062e\u062f\u0645 \u0625\u0635\u0628\u0639\u064a\u0646 \u0644\u062a\u062d\u0631\u064a\u0643 \u0627\u0644\u062e\u0631\u064a\u0637\u0629",
|
|
|
11 |
scroll: "\u200f\u0627\u0633\u062a\u062e\u062f\u0645 ctrl + scroll \u0644\u062a\u0635\u063a\u064a\u0631/\u062a\u0643\u0628\u064a\u0631 \u0627\u0644\u062e\u0631\u064a\u0637\u0629",
|
|
|
12 |
scrollMac: "\u064a\u0645\u0643\u0646\u0643 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u2318 + \u0627\u0644\u062a\u0645\u0631\u064a\u0631 \u0644\u062a\u0643\u0628\u064a\u0631/\u062a\u0635\u063a\u064a\u0631 \u0627\u0644\u062e\u0631\u064a\u0637\u0629"
|
|
|
13 |
},
|
|
|
14 |
//Bulgarian
|
|
|
15 |
bg: {
|
|
|
16 |
touch: "\u0418\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0439\u0442\u0435 \u0434\u0432\u0430 \u043f\u0440\u044a\u0441\u0442\u0430, \u0437\u0430 \u0434\u0430 \u043f\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u043a\u0430\u0440\u0442\u0430\u0442\u0430",
|
|
|
17 |
scroll: "\u0417\u0430\u0434\u0440\u044a\u0436\u0442\u0435 \u0431\u0443\u0442\u043e\u043d\u0430 Ctrl \u043d\u0430\u0442\u0438\u0441\u043d\u0430\u0442, \u0434\u043e\u043a\u0430\u0442\u043e \u043f\u0440\u0435\u0432\u044a\u0440\u0442\u0430\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043f\u0440\u043e\u043c\u0435\u043d\u0438\u0442\u0435 \u043c\u0430\u0449\u0430\u0431\u0430 \u043d\u0430 \u043a\u0430\u0440\u0442\u0430\u0442\u0430",
|
|
|
18 |
scrollMac: "\u0417\u0430\u0434\u0440\u044a\u0436\u0442\u0435 \u0431\u0443\u0442\u043e\u043d\u0430 \u2318 \u043d\u0430\u0442\u0438\u0441\u043d\u0430\u0442, \u0434\u043e\u043a\u0430\u0442\u043e \u043f\u0440\u0435\u0432\u044a\u0440\u0442\u0430\u0442\u0435, \u0437\u0430 \u0434\u0430 \u043f\u0440\u043e\u043c\u0435\u043d\u0438\u0442\u0435 \u043c\u0430\u0449\u0430\u0431\u0430 \u043d\u0430 \u043a\u0430\u0440\u0442\u0430\u0442\u0430"
|
|
|
19 |
},
|
|
|
20 |
//Bengali
|
|
|
21 |
bn: {
|
|
|
22 |
touch: "\u09ae\u09be\u09a8\u099a\u09bf\u09a4\u09cd\u09b0\u099f\u09bf\u0995\u09c7 \u09b8\u09b0\u09be\u09a4\u09c7 \u09a6\u09c1\u099f\u09bf \u0986\u0999\u09cd\u0997\u09c1\u09b2 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c1\u09a8",
|
|
|
23 |
scroll: "\u09ae\u09cd\u09af\u09be\u09aa \u099c\u09c1\u09ae \u0995\u09b0\u09a4\u09c7 ctrl + scroll \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c1\u09a8",
|
|
|
24 |
scrollMac: "\u09ae\u09cd\u09af\u09be\u09aa\u09c7 \u099c\u09c1\u09ae \u0995\u09b0\u09a4\u09c7 \u2318 \u09ac\u09cb\u09a4\u09be\u09ae \u099f\u09bf\u09aa\u09c7 \u09b8\u09cd\u0995\u09cd\u09b0\u09b2 \u0995\u09b0\u09c1\u09a8"
|
|
|
25 |
},
|
|
|
26 |
//Catalan
|
|
|
27 |
ca: {
|
|
|
28 |
touch: "Fes servir dos dits per moure el mapa",
|
|
|
29 |
scroll: "Prem la tecla Control mentre et desplaces per apropar i allunyar el mapa",
|
|
|
30 |
scrollMac: "Prem la tecla \u2318 mentre et desplaces per apropar i allunyar el mapa"
|
|
|
31 |
},
|
|
|
32 |
//Czech
|
|
|
33 |
cs: {
|
|
|
34 |
touch: "K\u00a0posunut\u00ed mapy pou\u017eijte dva prsty",
|
|
|
35 |
scroll: "Velikost zobrazen\u00ed mapy zm\u011b\u0148te podr\u017een\u00edm kl\u00e1vesy Ctrl a\u00a0posouv\u00e1n\u00edm kole\u010dka my\u0161i",
|
|
|
36 |
scrollMac: "Velikost zobrazen\u00ed mapy zm\u011bn\u00edte podr\u017een\u00edm kl\u00e1vesy \u2318 a\u00a0posunut\u00edm kole\u010dka my\u0161i / touchpadu"
|
|
|
37 |
},
|
|
|
38 |
//Danish
|
|
|
39 |
da: {
|
|
|
40 |
touch: "Brug to fingre til at flytte kortet",
|
|
|
41 |
scroll: "Brug ctrl + rullefunktionen til at zoome ind og ud p\u00e5 kortet",
|
|
|
42 |
scrollMac: "Brug \u2318 + rullefunktionen til at zoome ind og ud p\u00e5 kortet"
|
|
|
43 |
},
|
|
|
44 |
//German
|
|
|
45 |
de: {
|
|
|
46 |
touch: "Verschieben der Karte mit zwei Fingern",
|
|
|
47 |
scroll: "Verwende Strg+Scrollen zum Zoomen der Karte",
|
|
|
48 |
scrollMac: "\u2318"
|
|
|
49 |
},
|
|
|
50 |
//Greek
|
|
|
51 |
el: {
|
|
|
52 |
touch: "\u03a7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03c4\u03b5 \u03b4\u03cd\u03bf \u03b4\u03ac\u03c7\u03c4\u03c5\u03bb\u03b1 \u03b3\u03b9\u03b1 \u03bc\u03b5\u03c4\u03b1\u03ba\u03af\u03bd\u03b7\u03c3\u03b7 \u03c3\u03c4\u03bf\u03bd \u03c7\u03ac\u03c1\u03c4\u03b7",
|
|
|
53 |
scroll: "\u03a7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03c4\u03b5 \u03c4\u03bf \u03c0\u03bb\u03ae\u03ba\u03c4\u03c1\u03bf Ctrl \u03ba\u03b1\u03b9 \u03ba\u03cd\u03bb\u03b9\u03c3\u03b7, \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03bc\u03b5\u03b3\u03b5\u03b8\u03cd\u03bd\u03b5\u03c4\u03b5 \u03c4\u03bf\u03bd \u03c7\u03ac\u03c1\u03c4\u03b7",
|
|
|
54 |
scrollMac: "\u03a7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03c4\u03b5 \u03c4\u03bf \u03c0\u03bb\u03ae\u03ba\u03c4\u03c1\u03bf \u2318 + \u03ba\u03cd\u03bb\u03b9\u03c3\u03b7 \u03b3\u03b9\u03b1 \u03b5\u03c3\u03c4\u03af\u03b1\u03c3\u03b7 \u03c3\u03c4\u03bf\u03bd \u03c7\u03ac\u03c1\u03c4\u03b7"
|
|
|
55 |
},
|
|
|
56 |
//English
|
|
|
57 |
en: {
|
|
|
58 |
touch: "Use two fingers to move the map",
|
|
|
59 |
scroll: "Use ctrl + scroll to zoom the map",
|
|
|
60 |
scrollMac: "Use \u2318 + scroll to zoom the map"
|
|
|
61 |
},
|
|
|
62 |
//English (Australian)
|
|
|
63 |
"en-AU": {
|
|
|
64 |
touch: "Use two fingers to move the map",
|
|
|
65 |
scroll: "Use ctrl + scroll to zoom the map",
|
|
|
66 |
scrollMac: "Use \u2318 + scroll to zoom the map"
|
|
|
67 |
},
|
|
|
68 |
//English (Great Britain)
|
|
|
69 |
"en-GB": {
|
|
|
70 |
touch: "Use two fingers to move the map",
|
|
|
71 |
scroll: "Use ctrl + scroll to zoom the map",
|
|
|
72 |
scrollMac: "Use \u2318 + scroll to zoom the map"
|
|
|
73 |
},
|
|
|
74 |
//Spanish
|
|
|
75 |
es: {
|
|
|
76 |
touch: "Para mover el mapa, utiliza dos dedos",
|
|
|
77 |
scroll: "Mant\u00e9n pulsada la tecla Ctrl mientras te desplazas para acercar o alejar el mapa",
|
|
|
78 |
scrollMac: "Mant\u00e9n pulsada la tecla \u2318 mientras te desplazas para acercar o alejar el mapa"
|
|
|
79 |
},
|
|
|
80 |
//Basque
|
|
|
81 |
eu: {
|
|
|
82 |
touch: "Erabili bi hatz mapa mugitzeko",
|
|
|
83 |
scroll: "Mapan zooma aplikatzeko, sakatu Ktrl eta egin gora edo behera",
|
|
|
84 |
scrollMac: "Eduki sakatuta \u2318 eta egin gora eta behera mapa handitu eta txikitzeko"
|
|
|
85 |
},
|
|
|
86 |
//Farsi
|
|
|
87 |
fa: {
|
|
|
88 |
touch: "\u0628\u0631\u0627\u06cc \u062d\u0631\u06a9\u062a \u062f\u0627\u062f\u0646 \u0646\u0642\u0634\u0647 \u0627\u0632 \u062f\u0648 \u0627\u0646\u06af\u0634\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.",
|
|
|
89 |
scroll: "\u200f\u0628\u0631\u0627\u06cc \u0628\u0632\u0631\u06af\u200c\u0646\u0645\u0627\u06cc\u06cc \u0646\u0642\u0634\u0647 \u0627\u0632 ctrl + scroll \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f",
|
|
|
90 |
scrollMac: "\u0628\u0631\u0627\u06cc \u0628\u0632\u0631\u06af\u200c\u0646\u0645\u0627\u06cc\u06cc \u0646\u0642\u0634\u0647\u060c \u0627\u0632 \u2318 + \u067e\u06cc\u0645\u0627\u06cc\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f."
|
|
|
91 |
},
|
|
|
92 |
//Finnish
|
|
|
93 |
fi: {
|
|
|
94 |
touch: "Siirr\u00e4 karttaa kahdella sormella.",
|
|
|
95 |
scroll: "Zoomaa karttaa painamalla Ctrl-painiketta ja vieritt\u00e4m\u00e4ll\u00e4.",
|
|
|
96 |
scrollMac: "Zoomaa karttaa pit\u00e4m\u00e4ll\u00e4 painike \u2318 painettuna ja vieritt\u00e4m\u00e4ll\u00e4."
|
|
|
97 |
},
|
|
|
98 |
//Filipino
|
|
|
99 |
fil: {
|
|
|
100 |
touch: "Gumamit ng dalawang daliri upang iusog ang mapa",
|
|
|
101 |
scroll: "Gamitin ang ctrl + scroll upang i-zoom ang mapa",
|
|
|
102 |
scrollMac: "Gamitin ang \u2318 + scroll upang i-zoom ang mapa"
|
|
|
103 |
},
|
|
|
104 |
//French
|
|
|
105 |
fr: {
|
|
|
106 |
touch: "Utilisez deux\u00a0doigts pour d\u00e9placer la carte",
|
|
|
107 |
scroll: "Vous pouvez zoomer sur la carte \u00e0 l'aide de CTRL+Molette de d\u00e9filement",
|
|
|
108 |
scrollMac: "Vous pouvez zoomer sur la carte \u00e0 l'aide de \u2318+Molette de d\u00e9filement"
|
|
|
109 |
},
|
|
|
110 |
//Galician
|
|
|
111 |
gl: {
|
|
|
112 |
touch: "Utiliza dous dedos para mover o mapa",
|
|
|
113 |
scroll: "Preme Ctrl mentres te desprazas para ampliar o mapa",
|
|
|
114 |
scrollMac: "Preme \u2318 e despr\u00e1zate para ampliar o mapa"
|
|
|
115 |
},
|
|
|
116 |
//Gujarati
|
|
|
117 |
gu: {
|
|
|
118 |
touch: "\u0aa8\u0a95\u0ab6\u0acb \u0a96\u0ab8\u0ac7\u0aa1\u0ab5\u0abe \u0aac\u0ac7 \u0a86\u0a82\u0a97\u0ab3\u0ac0\u0a93\u0aa8\u0acb \u0a89\u0aaa\u0aaf\u0acb\u0a97 \u0a95\u0ab0\u0acb",
|
|
|
119 |
scroll: "\u0aa8\u0a95\u0ab6\u0abe\u0aa8\u0ac7 \u0a9d\u0ac2\u0aae \u0a95\u0ab0\u0ab5\u0abe \u0aae\u0abe\u0a9f\u0ac7 ctrl + \u0ab8\u0acd\u0a95\u0acd\u0ab0\u0acb\u0ab2\u0aa8\u0acb \u0a89\u0aaa\u0aaf\u0acb\u0a97 \u0a95\u0ab0\u0acb",
|
|
|
120 |
scrollMac: "\u0aa8\u0a95\u0ab6\u0abe\u0aa8\u0ac7 \u0a9d\u0ac2\u0aae \u0a95\u0ab0\u0ab5\u0abe \u2318 + \u0ab8\u0acd\u0a95\u0acd\u0ab0\u0acb\u0ab2\u0aa8\u0acb \u0a89\u0aaa\u0aaf\u0acb\u0a97 \u0a95\u0ab0\u0acb"
|
|
|
121 |
},
|
|
|
122 |
//Hindi
|
|
|
123 |
hi: {
|
|
|
124 |
touch: "\u092e\u0948\u092a \u090f\u0915 \u091c\u0917\u0939 \u0938\u0947 \u0926\u0942\u0938\u0930\u0940 \u091c\u0917\u0939 \u0932\u0947 \u091c\u093e\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0926\u094b \u0909\u0902\u0917\u0932\u093f\u092f\u094b\u0902 \u0915\u093e \u0907\u0938\u094d\u0924\u0947\u092e\u093e\u0932 \u0915\u0930\u0947\u0902",
|
|
|
125 |
scroll: "\u092e\u0948\u092a \u0915\u094b \u091c\u093c\u0942\u092e \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f ctrl + \u0938\u094d\u0915\u094d\u0930\u094b\u0932 \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0947\u0902",
|
|
|
126 |
scrollMac: "\u092e\u0948\u092a \u0915\u094b \u091c\u093c\u0942\u092e \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u2318 + \u0938\u094d\u0915\u094d\u0930\u094b\u0932 \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u0930\u0947\u0902"
|
|
|
127 |
},
|
|
|
128 |
//Croatian
|
|
|
129 |
hr: {
|
|
|
130 |
touch: "Pomi\u010dite kartu pomo\u0107u dva prsta",
|
|
|
131 |
scroll: "Upotrijebite Ctrl i kliza\u010d mi\u0161a da biste zumirali kartu",
|
|
|
132 |
scrollMac: "Upotrijebite gumb \u2318 dok se pomi\u010dete za zumiranje karte"
|
|
|
133 |
},
|
|
|
134 |
//Hungarian
|
|
|
135 |
hu: {
|
|
|
136 |
touch: "K\u00e9t ujjal mozgassa a t\u00e9rk\u00e9pet",
|
|
|
137 |
scroll: "A t\u00e9rk\u00e9p a ctrl + g\u00f6rget\u00e9s haszn\u00e1lat\u00e1val nagy\u00edthat\u00f3",
|
|
|
138 |
scrollMac: "A t\u00e9rk\u00e9p a \u2318 + g\u00f6rget\u00e9s haszn\u00e1lat\u00e1val nagy\u00edthat\u00f3"
|
|
|
139 |
},
|
|
|
140 |
//Indonesian
|
|
|
141 |
id: {
|
|
|
142 |
touch: "Gunakan dua jari untuk menggerakkan peta",
|
|
|
143 |
scroll: "Gunakan ctrl + scroll untuk memperbesar atau memperkecil peta",
|
|
|
144 |
scrollMac: "Gunakan \u2318 + scroll untuk memperbesar atau memperkecil peta"
|
|
|
145 |
},
|
|
|
146 |
//Italian
|
|
|
147 |
it: {
|
|
|
148 |
touch: "Utilizza due dita per spostare la mappa",
|
|
|
149 |
scroll: "Utilizza CTRL + scorrimento per eseguire lo zoom della mappa",
|
|
|
150 |
scrollMac: "Utilizza \u2318 + scorrimento per eseguire lo zoom della mappa"
|
|
|
151 |
},
|
|
|
152 |
//Hebrew
|
|
|
153 |
iw: {
|
|
|
154 |
touch: "\u05d4\u05d6\u05d6 \u05d0\u05ea \u05d4\u05de\u05e4\u05d4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea \u05e9\u05ea\u05d9 \u05d0\u05e6\u05d1\u05e2\u05d5\u05ea",
|
|
|
155 |
scroll: "\u200f\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e9\u05e0\u05d5\u05ea \u05d0\u05ea \u05de\u05e8\u05d7\u05e7 \u05d4\u05ea\u05e6\u05d5\u05d2\u05d4 \u05d1\u05de\u05e4\u05d4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea \u05de\u05e7\u05e9 ctrl \u05d5\u05d2\u05dc\u05d9\u05dc\u05d4",
|
|
|
156 |
scrollMac: "\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e9\u05e0\u05d5\u05ea \u05d0\u05ea \u05de\u05e8\u05d7\u05e7 \u05d4\u05ea\u05e6\u05d5\u05d2\u05d4 \u05d1\u05de\u05e4\u05d4 \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea \u05de\u05e7\u05e9 \u2318 \u05d5\u05d2\u05dc\u05d9\u05dc\u05d4"
|
|
|
157 |
},
|
|
|
158 |
//Japanese
|
|
|
159 |
ja: {
|
|
|
160 |
touch: "\u5730\u56f3\u3092\u79fb\u52d5\u3055\u305b\u308b\u306b\u306f\u6307 2 \u672c\u3067\u64cd\u4f5c\u3057\u307e\u3059",
|
|
|
161 |
scroll: "\u5730\u56f3\u3092\u30ba\u30fc\u30e0\u3059\u308b\u306b\u306f\u3001Ctrl \u30ad\u30fc\u3092\u62bc\u3057\u306a\u304c\u3089\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044",
|
|
|
162 |
scrollMac: "\u5730\u56f3\u3092\u30ba\u30fc\u30e0\u3059\u308b\u306b\u306f\u3001\u2318 \u30ad\u30fc\u3092\u62bc\u3057\u306a\u304c\u3089\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044"
|
|
|
163 |
},
|
|
|
164 |
//Kannada
|
|
|
165 |
kn: {
|
|
|
166 |
touch: "Use two fingers to move the map",
|
|
|
167 |
scroll: "Use Ctrl + scroll to zoom the map",
|
|
|
168 |
scrollMac: "Use ⌘ + scroll to zoom the map"
|
|
|
169 |
},
|
|
|
170 |
//Korean
|
|
|
171 |
ko: {
|
|
|
172 |
touch: "\uc9c0\ub3c4\ub97c \uc6c0\uc9c1\uc774\ub824\uba74 \ub450 \uc190\uac00\ub77d\uc744 \uc0ac\uc6a9\ud558\uc138\uc694.",
|
|
|
173 |
scroll: "\uc9c0\ub3c4\ub97c \ud655\ub300/\ucd95\uc18c\ud558\ub824\uba74 Ctrl\uc744 \ub204\ub978 \ucc44 \uc2a4\ud06c\ub864\ud558\uc138\uc694.",
|
|
|
174 |
scrollMac: "\uc9c0\ub3c4\ub97c \ud655\ub300\ud558\ub824\uba74 \u2318 + \uc2a4\ud06c\ub864 \uc0ac\uc6a9"
|
|
|
175 |
},
|
|
|
176 |
//Lithuanian
|
|
|
177 |
lt: {
|
|
|
178 |
touch: "Perkelkite \u017eem\u0117lap\u012f dviem pir\u0161tais",
|
|
|
179 |
scroll: "Slinkite nuspaud\u0119 klavi\u0161\u0105 \u201eCtrl\u201c, kad pakeistum\u0117te \u017eem\u0117lapio mastel\u012f",
|
|
|
180 |
scrollMac: "Paspauskite klavi\u0161\u0105 \u2318 ir slinkite, kad priartintum\u0117te \u017eem\u0117lap\u012f"
|
|
|
181 |
},
|
|
|
182 |
//Latvian
|
|
|
183 |
lv: {
|
|
|
184 |
touch: "Lai p\u0101rvietotu karti, b\u012bdiet to ar diviem pirkstiem",
|
|
|
185 |
scroll: "Kartes t\u0101lummai\u0146ai izmantojiet ctrl + ritin\u0101\u0161anu",
|
|
|
186 |
scrollMac: "Lai veiktu kartes t\u0101lummai\u0146u, izmantojiet \u2318 + ritin\u0101\u0161anu"
|
|
|
187 |
},
|
|
|
188 |
//Malayalam
|
|
|
189 |
ml: {
|
|
|
190 |
touch: "\u0d2e\u0d3e\u0d2a\u0d4d\u0d2a\u0d4d \u0d28\u0d40\u0d15\u0d4d\u0d15\u0d3e\u0d7b \u0d30\u0d23\u0d4d\u0d1f\u0d4d \u0d35\u0d3f\u0d30\u0d32\u0d41\u0d15\u0d7e \u0d09\u0d2a\u0d2f\u0d4b\u0d17\u0d3f\u0d15\u0d4d\u0d15\u0d41\u0d15",
|
|
|
191 |
scroll: "\u0d15\u0d7a\u0d1f\u0d4d\u0d30\u0d4b\u0d7e + \u0d38\u0d4d\u200c\u0d15\u0d4d\u0d30\u0d4b\u0d7e \u0d09\u0d2a\u0d2f\u0d4b\u0d17\u0d3f\u0d1a\u0d4d\u0d1a\u0d4d \u200c\u0d2e\u0d3e\u0d2a\u0d4d\u0d2a\u0d4d \u200c\u0d38\u0d42\u0d02 \u0d1a\u0d46\u0d2f\u0d4d\u0d2f\u0d41\u0d15",
|
|
|
192 |
scrollMac: "\u2318 + \u0d38\u0d4d\u200c\u0d15\u0d4d\u0d30\u0d4b\u0d7e \u0d09\u0d2a\u0d2f\u0d4b\u0d17\u0d3f\u0d1a\u0d4d\u0d1a\u0d4d \u200c\u0d2e\u0d3e\u0d2a\u0d4d\u0d2a\u0d4d \u200c\u0d38\u0d42\u0d02 \u0d1a\u0d46\u0d2f\u0d4d\u0d2f\u0d41\u0d15"
|
|
|
193 |
},
|
|
|
194 |
//Marathi
|
|
|
195 |
mr: {
|
|
|
196 |
touch: "\u0928\u0915\u093e\u0936\u093e \u0939\u0932\u0935\u093f\u0923\u094d\u092f\u093e\u0938\u093e\u0920\u0940 \u0926\u094b\u0928 \u092c\u094b\u091f\u0947 \u0935\u093e\u092a\u0930\u093e",
|
|
|
197 |
scroll: "\u0928\u0915\u093e\u0936\u093e \u091d\u0942\u092e \u0915\u0930\u0923\u094d\u092f\u093e\u0938\u093e\u0920\u0940 ctrl + scroll \u0935\u093e\u092a\u0930\u093e",
|
|
|
198 |
scrollMac: "\u0928\u0915\u093e\u0936\u093e\u0935\u0930 \u091d\u0942\u092e \u0915\u0930\u0923\u094d\u092f\u093e\u0938\u093e\u0920\u0940 \u2318 + \u0938\u094d\u0915\u094d\u0930\u094b\u0932 \u0935\u093e\u092a\u0930\u093e"
|
|
|
199 |
},
|
|
|
200 |
//Dutch
|
|
|
201 |
nl: {
|
|
|
202 |
touch: "Gebruik twee vingers om de kaart te verplaatsen",
|
|
|
203 |
scroll: "Gebruik Ctrl + scrollen om in- en uit te zoomen op de kaart",
|
|
|
204 |
scrollMac: "Gebruik \u2318 + scrollen om in en uit te zoomen op de kaart"
|
|
|
205 |
},
|
|
|
206 |
//Norwegian
|
|
|
207 |
no: {
|
|
|
208 |
touch: "Bruk to fingre for \u00e5 flytte kartet",
|
|
|
209 |
scroll: "Hold ctrl-tasten inne og rull for \u00e5 zoome p\u00e5 kartet",
|
|
|
210 |
scrollMac: "Hold inne \u2318-tasten og rull for \u00e5 zoome p\u00e5 kartet"
|
|
|
211 |
},
|
|
|
212 |
//Polish
|
|
|
213 |
pl: {
|
|
|
214 |
touch: "Przesu\u0144 map\u0119 dwoma palcami",
|
|
|
215 |
scroll: "Naci\u015bnij CTRL i przewi\u0144, by przybli\u017cy\u0107 map\u0119",
|
|
|
216 |
scrollMac: "Naci\u015bnij\u00a0\u2318 i przewi\u0144, by przybli\u017cy\u0107 map\u0119"
|
|
|
217 |
},
|
|
|
218 |
//Portuguese
|
|
|
219 |
pt: {
|
|
|
220 |
touch: "Use dois dedos para mover o mapa",
|
|
|
221 |
scroll: "Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",
|
|
|
222 |
scrollMac: "Use \u2318 e role a tela simultaneamente para aplicar zoom no mapa"
|
|
|
223 |
},
|
|
|
224 |
//Portuguese (Brazil)
|
|
|
225 |
"pt-BR": {
|
|
|
226 |
touch: "Use dois dedos para mover o mapa",
|
|
|
227 |
scroll: "Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa",
|
|
|
228 |
scrollMac: "Use \u2318 e role a tela simultaneamente para aplicar zoom no mapa"
|
|
|
229 |
},
|
|
|
230 |
//Portuguese (Portugal
|
|
|
231 |
"pt-PT": {
|
|
|
232 |
touch: "Utilize dois dedos para mover o mapa",
|
|
|
233 |
scroll: "Utilizar ctrl + deslocar para aumentar/diminuir zoom do mapa",
|
|
|
234 |
scrollMac: "Utilize \u2318 + deslocar para aumentar/diminuir o zoom do mapa"
|
|
|
235 |
},
|
|
|
236 |
//Romanian
|
|
|
237 |
ro: {
|
|
|
238 |
touch: "Folosi\u021bi dou\u0103 degete pentru a deplasa harta",
|
|
|
239 |
scroll: "Ap\u0103sa\u021bi tasta ctrl \u0219i derula\u021bi simultan pentru a m\u0103ri harta",
|
|
|
240 |
scrollMac: "Folosi\u021bi \u2318 \u0219i derula\u021bi pentru a m\u0103ri/mic\u0219ora harta"
|
|
|
241 |
},
|
|
|
242 |
//Russian
|
|
|
243 |
ru: {
|
|
|
244 |
touch: "\u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u0443, \u043f\u0440\u043e\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u043e \u043d\u0435\u0439 \u0434\u0432\u0443\u043c\u044f \u043f\u0430\u043b\u044c\u0446\u0430\u043c\u0438",
|
|
|
245 |
scroll: "\u0427\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043c\u0430\u0441\u0448\u0442\u0430\u0431, \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u043a\u0430\u0440\u0442\u0443, \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0443 Ctrl.",
|
|
|
246 |
scrollMac: "\u0427\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043c\u0430\u0441\u0448\u0442\u0430\u0431, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u2318\u00a0+ \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430"
|
|
|
247 |
},
|
|
|
248 |
//Slovak
|
|
|
249 |
sk: {
|
|
|
250 |
touch: "Mapu m\u00f4\u017eete posun\u00fa\u0165 dvoma prstami",
|
|
|
251 |
scroll: "Ak chcete pribl\u00ed\u017ei\u0165 mapu, stla\u010dte kl\u00e1ves ctrl a\u00a0pos\u00favajte",
|
|
|
252 |
scrollMac: "Ak chcete pribl\u00ed\u017ei\u0165 mapu, stla\u010dte kl\u00e1ves \u2318 a\u00a0pos\u00favajte kolieskom my\u0161i"
|
|
|
253 |
},
|
|
|
254 |
//Slovenian
|
|
|
255 |
sl: {
|
|
|
256 |
touch: "Premaknite zemljevid z dvema prstoma",
|
|
|
257 |
scroll: "Zemljevid pove\u010date tako, da dr\u017eite tipko Ctrl in vrtite kolesce na mi\u0161ki",
|
|
|
258 |
scrollMac: "Uporabite \u2318 + funkcijo pomika, da pove\u010date ali pomanj\u0161ate zemljevid"
|
|
|
259 |
},
|
|
|
260 |
//Serbian
|
|
|
261 |
sr: {
|
|
|
262 |
touch: "\u041c\u0430\u043f\u0443 \u043f\u043e\u043c\u0435\u0440\u0430\u0458\u0442\u0435 \u043f\u043e\u043c\u043e\u045b\u0443 \u0434\u0432\u0430 \u043f\u0440\u0441\u0442\u0430",
|
|
|
263 |
scroll: "\u041f\u0440\u0438\u0442\u0438\u0441\u043d\u0438\u0442\u0435 ctrl \u0442\u0430\u0441\u0442\u0435\u0440 \u0434\u043e\u043a \u043f\u043e\u043c\u0435\u0440\u0430\u0442\u0435 \u0434\u0430 \u0431\u0438\u0441\u0442\u0435 \u0437\u0443\u043c\u0438\u0440\u0430\u043b\u0438 \u043c\u0430\u043f\u0443",
|
|
|
264 |
scrollMac: "\u041f\u0440\u0438\u0442\u0438\u0441\u043d\u0438\u0442\u0435 \u0442\u0430\u0441\u0442\u0435\u0440 \u2318 \u0434\u043e\u043a \u043f\u043e\u043c\u0435\u0440\u0430\u0442\u0435 \u0434\u0430 \u0431\u0438\u0441\u0442\u0435 \u0437\u0443\u043c\u0438\u0440\u0430\u043b\u0438 \u043c\u0430\u043f\u0443"
|
|
|
265 |
},
|
|
|
266 |
//Swedish
|
|
|
267 |
sv: {
|
|
|
268 |
touch: "Anv\u00e4nd tv\u00e5 fingrar f\u00f6r att flytta kartan",
|
|
|
269 |
scroll: "Anv\u00e4nd ctrl + rulla f\u00f6r att zooma kartan",
|
|
|
270 |
scrollMac: "Anv\u00e4nd \u2318 + rulla f\u00f6r att zooma p\u00e5 kartan"
|
|
|
271 |
},
|
|
|
272 |
//Tamil
|
|
|
273 |
ta: {
|
|
|
274 |
touch: "\u0bae\u0bc7\u0baa\u0bcd\u0baa\u0bc8 \u0ba8\u0b95\u0bb0\u0bcd\u0ba4\u0bcd\u0ba4 \u0b87\u0bb0\u0ba3\u0bcd\u0b9f\u0bc1 \u0bb5\u0bbf\u0bb0\u0bb2\u0bcd\u0b95\u0bb3\u0bc8\u0baa\u0bcd \u0baa\u0baf\u0ba9\u0bcd\u0baa\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4\u0bb5\u0bc1\u0bae\u0bcd",
|
|
|
275 |
scroll: "\u0bae\u0bc7\u0baa\u0bcd\u0baa\u0bc8 \u0baa\u0bc6\u0bb0\u0bbf\u0ba4\u0bbe\u0b95\u0bcd\u0b95\u0bbf/\u0b9a\u0bbf\u0bb1\u0bbf\u0ba4\u0bbe\u0b95\u0bcd\u0b95\u0bbf\u0baa\u0bcd \u0baa\u0bbe\u0bb0\u0bcd\u0b95\u0bcd\u0b95, ctrl \u0baa\u0b9f\u0bcd\u0b9f\u0ba9\u0bc8\u0baa\u0bcd \u0baa\u0bbf\u0b9f\u0bbf\u0ba4\u0bcd\u0ba4\u0baa\u0b9f\u0bbf, \u0bae\u0bc7\u0bb2\u0bc7/\u0b95\u0bc0\u0bb4\u0bc7 \u0bb8\u0bcd\u0b95\u0bcd\u0bb0\u0bbe\u0bb2\u0bcd \u0b9a\u0bc6\u0baf\u0bcd\u0baf\u0bb5\u0bc1\u0bae\u0bcd",
|
|
|
276 |
scrollMac: "\u0bae\u0bc7\u0baa\u0bcd\u0baa\u0bc8 \u0baa\u0bc6\u0bb0\u0bbf\u0ba4\u0bbe\u0b95\u0bcd\u0b95\u0bbf/\u0b9a\u0bbf\u0bb1\u0bbf\u0ba4\u0bbe\u0b95\u0bcd\u0b95\u0bbf\u0baa\u0bcd \u0baa\u0bbe\u0bb0\u0bcd\u0b95\u0bcd\u0b95, \u2318 \u0baa\u0b9f\u0bcd\u0b9f\u0ba9\u0bc8\u0baa\u0bcd \u0baa\u0bbf\u0b9f\u0bbf\u0ba4\u0bcd\u0ba4\u0baa\u0b9f\u0bbf, \u0bae\u0bc7\u0bb2\u0bc7/\u0b95\u0bc0\u0bb4\u0bc7 \u0bb8\u0bcd\u0b95\u0bcd\u0bb0\u0bbe\u0bb2\u0bcd \u0b9a\u0bc6\u0baf\u0bcd\u0baf\u0bb5\u0bc1\u0bae\u0bcd"
|
|
|
277 |
},
|
|
|
278 |
//Telugu
|
|
|
279 |
te: {
|
|
|
280 |
touch: "\u0c2e\u0c4d\u0c2f\u0c3e\u0c2a\u0c4d\u200c\u0c28\u0c3f \u0c24\u0c30\u0c32\u0c3f\u0c02\u0c1a\u0c21\u0c02 \u0c15\u0c4b\u0c38\u0c02 \u0c30\u0c46\u0c02\u0c21\u0c41 \u0c35\u0c47\u0c33\u0c4d\u0c32\u0c28\u0c41 \u0c09\u0c2a\u0c2f\u0c4b\u0c17\u0c3f\u0c02\u0c1a\u0c02\u0c21\u0c3f",
|
|
|
281 |
scroll: "\u0c2e\u0c4d\u0c2f\u0c3e\u0c2a\u0c4d\u200c\u0c28\u0c3f \u0c1c\u0c42\u0c2e\u0c4d \u0c1a\u0c47\u0c2f\u0c21\u0c3e\u0c28\u0c3f\u0c15\u0c3f ctrl \u0c2c\u0c1f\u0c28\u0c4d\u200c\u0c28\u0c41 \u0c28\u0c4a\u0c15\u0c4d\u0c15\u0c3f \u0c09\u0c02\u0c1a\u0c3f, \u0c38\u0c4d\u0c15\u0c4d\u0c30\u0c4b\u0c32\u0c4d \u0c1a\u0c47\u0c2f\u0c02\u0c21\u0c3f",
|
|
|
282 |
scrollMac: "\u0c2e\u0c4d\u0c2f\u0c3e\u0c2a\u0c4d \u0c1c\u0c42\u0c2e\u0c4d \u0c1a\u0c47\u0c2f\u0c3e\u0c32\u0c02\u0c1f\u0c47 \u2318 + \u0c38\u0c4d\u0c15\u0c4d\u0c30\u0c4b\u0c32\u0c4d \u0c09\u0c2a\u0c2f\u0c4b\u0c17\u0c3f\u0c02\u0c1a\u0c02\u0c21\u0c3f"
|
|
|
283 |
},
|
|
|
284 |
//Thai
|
|
|
285 |
th: {
|
|
|
286 |
touch: "\u0e43\u0e0a\u0e49 2 \u0e19\u0e34\u0e49\u0e27\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e41\u0e1c\u0e19\u0e17\u0e35\u0e48",
|
|
|
287 |
scroll: "\u0e01\u0e14 Ctrl \u0e04\u0e49\u0e32\u0e07\u0e44\u0e27\u0e49 \u0e41\u0e25\u0e49\u0e27\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e0b\u0e39\u0e21\u0e41\u0e1c\u0e19\u0e17\u0e35\u0e48",
|
|
|
288 |
scrollMac: "\u0e01\u0e14 \u2318 \u0e41\u0e25\u0e49\u0e27\u0e40\u0e25\u0e37\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e0b\u0e39\u0e21\u0e41\u0e1c\u0e19\u0e17\u0e35\u0e48"
|
|
|
289 |
},
|
|
|
290 |
//Tagalog
|
|
|
291 |
tl: {
|
|
|
292 |
touch: "Gumamit ng dalawang daliri upang iusog ang mapa",
|
|
|
293 |
scroll: "Gamitin ang ctrl + scroll upang i-zoom ang mapa",
|
|
|
294 |
scrollMac: "Gamitin ang \u2318 + scroll upang i-zoom ang mapa"
|
|
|
295 |
},
|
|
|
296 |
//Turkish
|
|
|
297 |
tr: {
|
|
|
298 |
touch: "Haritada gezinmek i\u00e7in iki parma\u011f\u0131n\u0131z\u0131 kullan\u0131n",
|
|
|
299 |
scroll: "Haritay\u0131 yak\u0131nla\u015ft\u0131rmak i\u00e7in ctrl + kayd\u0131rma kombinasyonunu kullan\u0131n",
|
|
|
300 |
scrollMac: "Haritay\u0131 yak\u0131nla\u015ft\u0131rmak i\u00e7in \u2318 tu\u015funa bas\u0131p ekran\u0131 kayd\u0131r\u0131n"
|
|
|
301 |
},
|
|
|
302 |
//Ukrainian
|
|
|
303 |
uk: {
|
|
|
304 |
touch: "\u041f\u0435\u0440\u0435\u043c\u0456\u0449\u0443\u0439\u0442\u0435 \u043a\u0430\u0440\u0442\u0443 \u0434\u0432\u043e\u043c\u0430 \u043f\u0430\u043b\u044c\u0446\u044f\u043c\u0438",
|
|
|
305 |
scroll: "\u0429\u043e\u0431 \u0437\u043c\u0456\u043d\u044e\u0432\u0430\u0442\u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431 \u043a\u0430\u0440\u0442\u0438, \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0443\u0439\u0442\u0435 \u043a\u043e\u043b\u0456\u0449\u0430\u0442\u043a\u043e \u043c\u0438\u0448\u0456, \u0443\u0442\u0440\u0438\u043c\u0443\u044e\u0447\u0438 \u043a\u043b\u0430\u0432\u0456\u0448\u0443 Ctrl",
|
|
|
306 |
scrollMac: "\u0429\u043e\u0431 \u0437\u043c\u0456\u043d\u0438\u0442\u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431 \u043a\u0430\u0440\u0442\u0438, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 \u2318 + \u043f\u0440\u043e\u043a\u0440\u0443\u0447\u0443\u0432\u0430\u043d\u043d\u044f"
|
|
|
307 |
},
|
|
|
308 |
//Vietnamese
|
|
|
309 |
vi: {
|
|
|
310 |
touch: "S\u1eed d\u1ee5ng hai ng\u00f3n tay \u0111\u1ec3 di chuy\u1ec3n b\u1ea3n \u0111\u1ed3",
|
|
|
311 |
scroll: "S\u1eed d\u1ee5ng ctrl + cu\u1ed9n \u0111\u1ec3 thu ph\u00f3ng b\u1ea3n \u0111\u1ed3",
|
|
|
312 |
scrollMac: "S\u1eed d\u1ee5ng \u2318 + cu\u1ed9n \u0111\u1ec3 thu ph\u00f3ng b\u1ea3n \u0111\u1ed3"
|
|
|
313 |
},
|
|
|
314 |
//Chinese (Simplified)
|
|
|
315 |
"zh-CN": {
|
|
|
316 |
touch: "\u4f7f\u7528\u53cc\u6307\u79fb\u52a8\u5730\u56fe",
|
|
|
317 |
scroll: "\u6309\u4f4f Ctrl \u5e76\u6eda\u52a8\u9f20\u6807\u6eda\u8f6e\u624d\u53ef\u7f29\u653e\u5730\u56fe",
|
|
|
318 |
scrollMac: "\u6309\u4f4f \u2318 \u5e76\u6eda\u52a8\u9f20\u6807\u6eda\u8f6e\u624d\u53ef\u7f29\u653e\u5730\u56fe"
|
|
|
319 |
},
|
|
|
320 |
//Chinese (Traditional)
|
|
|
321 |
"zh-TW": {
|
|
|
322 |
touch: "\u540c\u6642\u4ee5\u5169\u6307\u79fb\u52d5\u5730\u5716",
|
|
|
323 |
scroll: "\u6309\u4f4f ctrl \u9375\u52a0\u4e0a\u6372\u52d5\u6ed1\u9f20\u53ef\u4ee5\u7e2e\u653e\u5730\u5716",
|
|
|
324 |
scrollMac: "\u6309 \u2318 \u52a0\u4e0a\u6efe\u52d5\u6372\u8ef8\u53ef\u4ee5\u7e2e\u653e\u5730\u5716"
|
|
|
325 |
}
|
|
|
326 |
};
|
|
|
327 |
|
|
|
328 |
/*
|
|
|
329 |
* * Leaflet Gesture Handling **
|
|
|
330 |
* * Version 1.1.8
|
|
|
331 |
*/
|
|
|
332 |
|
|
|
333 |
L.Map.mergeOptions({
|
|
|
334 |
gestureHandlingOptions: {
|
|
|
335 |
text: {},
|
|
|
336 |
duration: 1000
|
|
|
337 |
}
|
|
|
338 |
});
|
|
|
339 |
|
|
|
340 |
var draggingMap = false;
|
|
|
341 |
|
|
|
342 |
var GestureHandling = L.Handler.extend({
|
|
|
343 |
addHooks: function () {
|
|
|
344 |
this._handleTouch = this._handleTouch.bind(this);
|
|
|
345 |
|
|
|
346 |
this._setupPluginOptions();
|
|
|
347 |
this._setLanguageContent();
|
|
|
348 |
this._disableInteractions();
|
|
|
349 |
|
|
|
350 |
//Uses native event listeners instead of L.DomEvent due to issues with Android touch events
|
|
|
351 |
//turning into pointer events
|
|
|
352 |
this._map._container.addEventListener("touchstart", this._handleTouch);
|
|
|
353 |
this._map._container.addEventListener("touchmove", this._handleTouch);
|
|
|
354 |
this._map._container.addEventListener("touchend", this._handleTouch);
|
|
|
355 |
this._map._container.addEventListener("touchcancel", this._handleTouch);
|
|
|
356 |
this._map._container.addEventListener("click", this._handleTouch);
|
|
|
357 |
|
|
|
358 |
L.DomEvent.on(this._map._container, "wheel", this._handleScroll, this);
|
|
|
359 |
L.DomEvent.on(this._map, "mouseover", this._handleMouseOver, this);
|
|
|
360 |
L.DomEvent.on(this._map, "mouseout", this._handleMouseOut, this);
|
|
|
361 |
|
|
|
362 |
// Listen to these events so will not disable dragging if the user moves the mouse out the boundary of the map container whilst actively dragging the map.
|
|
|
363 |
L.DomEvent.on(this._map, "movestart", this._handleDragging, this);
|
|
|
364 |
L.DomEvent.on(this._map, "move", this._handleDragging, this);
|
|
|
365 |
L.DomEvent.on(this._map, "moveend", this._handleDragging, this);
|
|
|
366 |
},
|
|
|
367 |
|
|
|
368 |
removeHooks: function () {
|
|
|
369 |
this._enableInteractions();
|
|
|
370 |
|
|
|
371 |
this._map._container.removeEventListener("touchstart", this._handleTouch);
|
|
|
372 |
this._map._container.removeEventListener("touchmove", this._handleTouch);
|
|
|
373 |
this._map._container.removeEventListener("touchend", this._handleTouch);
|
|
|
374 |
this._map._container.removeEventListener("touchcancel", this._handleTouch);
|
|
|
375 |
this._map._container.removeEventListener("click", this._handleTouch);
|
|
|
376 |
|
|
|
377 |
L.DomEvent.off(this._map._container, "wheel", this._handleScroll, this);
|
|
|
378 |
L.DomEvent.off(this._map, "mouseover", this._handleMouseOver, this);
|
|
|
379 |
L.DomEvent.off(this._map, "mouseout", this._handleMouseOut, this);
|
|
|
380 |
|
|
|
381 |
L.DomEvent.off(this._map, "movestart", this._handleDragging, this);
|
|
|
382 |
L.DomEvent.off(this._map, "move", this._handleDragging, this);
|
|
|
383 |
L.DomEvent.off(this._map, "moveend", this._handleDragging, this);
|
|
|
384 |
},
|
|
|
385 |
|
|
|
386 |
_handleDragging: function (e) {
|
|
|
387 |
if (e.type == "movestart" || e.type == "move") {
|
|
|
388 |
draggingMap = true;
|
|
|
389 |
} else if (e.type == "moveend") {
|
|
|
390 |
draggingMap = false;
|
|
|
391 |
}
|
|
|
392 |
},
|
|
|
393 |
|
|
|
394 |
_disableInteractions: function () {
|
|
|
395 |
this._map.dragging.disable();
|
|
|
396 |
this._map.scrollWheelZoom.disable();
|
|
|
397 |
if (this._map.tap) {
|
|
|
398 |
this._map.tap.disable();
|
|
|
399 |
}
|
|
|
400 |
},
|
|
|
401 |
|
|
|
402 |
_enableInteractions: function () {
|
|
|
403 |
this._map.dragging.enable();
|
|
|
404 |
this._map.scrollWheelZoom.enable();
|
|
|
405 |
if (this._map.tap) {
|
|
|
406 |
this._map.tap.enable();
|
|
|
407 |
}
|
|
|
408 |
},
|
|
|
409 |
|
|
|
410 |
_setupPluginOptions: function () {
|
|
|
411 |
//For backwards compatibility, merge gestureHandlingText into the new options object
|
|
|
412 |
if (this._map.options.gestureHandlingText) {
|
|
|
413 |
this._map.options.gestureHandlingOptions.text = this._map.options.gestureHandlingText;
|
|
|
414 |
}
|
|
|
415 |
},
|
|
|
416 |
|
|
|
417 |
_setLanguageContent: function () {
|
|
|
418 |
var languageContent;
|
|
|
419 |
//If user has supplied custom language, use that
|
|
|
420 |
if (this._map.options.gestureHandlingOptions && this._map.options.gestureHandlingOptions.text && this._map.options.gestureHandlingOptions.text.touch && this._map.options.gestureHandlingOptions.text.scroll && this._map.options.gestureHandlingOptions.text.scrollMac) {
|
|
|
421 |
languageContent = this._map.options.gestureHandlingOptions.text;
|
|
|
422 |
} else {
|
|
|
423 |
//Otherwise auto set it from the language files
|
|
|
424 |
|
|
|
425 |
//Determine their language e.g fr or en-US
|
|
|
426 |
var lang = this._getUserLanguage();
|
|
|
427 |
|
|
|
428 |
//If we couldn't find it default to en
|
|
|
429 |
if (!lang) {
|
|
|
430 |
lang = "en";
|
|
|
431 |
}
|
|
|
432 |
|
|
|
433 |
//Lookup the appropriate language content
|
|
|
434 |
if (LanguageContent[lang]) {
|
|
|
435 |
languageContent = LanguageContent[lang];
|
|
|
436 |
}
|
|
|
437 |
|
|
|
438 |
//If no result, try searching by the first part only. e.g en-US just use en.
|
|
|
439 |
if (!languageContent && lang.indexOf("-") !== -1) {
|
|
|
440 |
lang = lang.split("-")[0];
|
|
|
441 |
languageContent = LanguageContent[lang];
|
|
|
442 |
}
|
|
|
443 |
|
|
|
444 |
if (!languageContent) {
|
|
|
445 |
// If still nothing, default to English
|
|
|
446 |
// console.log("No lang found for", lang);
|
|
|
447 |
lang = "en";
|
|
|
448 |
languageContent = LanguageContent[lang];
|
|
|
449 |
}
|
|
|
450 |
}
|
|
|
451 |
|
|
|
452 |
//TEST
|
|
|
453 |
// languageContent = LanguageContent["bg"];
|
|
|
454 |
|
|
|
455 |
//Check if they're on a mac for display of command instead of ctrl
|
|
|
456 |
var mac = false;
|
|
|
457 |
if (navigator.platform.toUpperCase().indexOf("MAC") >= 0) {
|
|
|
458 |
mac = true;
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
var scrollContent = languageContent.scroll;
|
|
|
462 |
if (mac) {
|
|
|
463 |
scrollContent = languageContent.scrollMac;
|
|
|
464 |
}
|
|
|
465 |
|
|
|
466 |
this._map._container.setAttribute("data-gesture-handling-touch-content", languageContent.touch);
|
|
|
467 |
this._map._container.setAttribute("data-gesture-handling-scroll-content", scrollContent);
|
|
|
468 |
},
|
|
|
469 |
|
|
|
470 |
_getUserLanguage: function () {
|
|
|
471 |
var lang = navigator.languages ? navigator.languages[0] : navigator.language || navigator.userLanguage;
|
|
|
472 |
return lang;
|
|
|
473 |
},
|
|
|
474 |
|
|
|
475 |
_handleTouch: function (e) {
|
|
|
476 |
//Disregard touch events on the minimap if present
|
|
|
477 |
var ignoreList = ["leaflet-control-minimap", "leaflet-interactive", "leaflet-popup-content", "leaflet-popup-content-wrapper", "leaflet-popup-close-button", "leaflet-control-zoom-in", "leaflet-control-zoom-out"];
|
|
|
478 |
|
|
|
479 |
var ignoreElement = false;
|
|
|
480 |
for (var i = 0; i < ignoreList.length; i++) {
|
|
|
481 |
if (L.DomUtil.hasClass(e.target, ignoreList[i])) {
|
|
|
482 |
ignoreElement = true;
|
|
|
483 |
}
|
|
|
484 |
}
|
|
|
485 |
|
|
|
486 |
if (ignoreElement) {
|
|
|
487 |
if (L.DomUtil.hasClass(e.target, "leaflet-interactive") && e.type === "touchmove" && e.touches.length === 1) {
|
|
|
488 |
L.DomUtil.addClass(this._map._container, "leaflet-gesture-handling-touch-warning");
|
|
|
489 |
this._disableInteractions();
|
|
|
490 |
} else {
|
|
|
491 |
L.DomUtil.removeClass(this._map._container, "leaflet-gesture-handling-touch-warning");
|
|
|
492 |
}
|
|
|
493 |
return;
|
|
|
494 |
}
|
|
|
495 |
// screenLog(e.type+' '+e.touches.length);
|
|
|
496 |
if (e.type !== "touchmove" && e.type !== "touchstart") {
|
|
|
497 |
L.DomUtil.removeClass(this._map._container, "leaflet-gesture-handling-touch-warning");
|
|
|
498 |
return;
|
|
|
499 |
}
|
|
|
500 |
if (e.touches.length === 1) {
|
|
|
501 |
L.DomUtil.addClass(this._map._container, "leaflet-gesture-handling-touch-warning");
|
|
|
502 |
this._disableInteractions();
|
|
|
503 |
} else {
|
|
|
504 |
this._enableInteractions();
|
|
|
505 |
L.DomUtil.removeClass(this._map._container, "leaflet-gesture-handling-touch-warning");
|
|
|
506 |
}
|
|
|
507 |
},
|
|
|
508 |
|
|
|
509 |
_isScrolling: false,
|
|
|
510 |
|
|
|
511 |
_handleScroll: function (e) {
|
|
|
512 |
if (e.metaKey || e.ctrlKey) {
|
|
|
513 |
e.preventDefault();
|
|
|
514 |
L.DomUtil.removeClass(this._map._container, "leaflet-gesture-handling-scroll-warning");
|
|
|
515 |
this._map.scrollWheelZoom.enable();
|
|
|
516 |
} else {
|
|
|
517 |
L.DomUtil.addClass(this._map._container, "leaflet-gesture-handling-scroll-warning");
|
|
|
518 |
this._map.scrollWheelZoom.disable();
|
|
|
519 |
|
|
|
520 |
clearTimeout(this._isScrolling);
|
|
|
521 |
|
|
|
522 |
// Set a timeout to run after scrolling ends
|
|
|
523 |
this._isScrolling = setTimeout(function () {
|
|
|
524 |
// Run the callback
|
|
|
525 |
var warnings = document.getElementsByClassName("leaflet-gesture-handling-scroll-warning");
|
|
|
526 |
for (var i = 0; i < warnings.length; i++) {
|
|
|
527 |
L.DomUtil.removeClass(warnings[i], "leaflet-gesture-handling-scroll-warning");
|
|
|
528 |
}
|
|
|
529 |
}, this._map.options.gestureHandlingOptions.duration);
|
|
|
530 |
}
|
|
|
531 |
},
|
|
|
532 |
|
|
|
533 |
_handleMouseOver: function (e) {
|
|
|
534 |
this._enableInteractions();
|
|
|
535 |
},
|
|
|
536 |
|
|
|
537 |
_handleMouseOut: function (e) {
|
|
|
538 |
if (!draggingMap) {
|
|
|
539 |
this._disableInteractions();
|
|
|
540 |
}
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
});
|
|
|
544 |
|
|
|
545 |
L.Map.addInitHook("addHandler", "gestureHandling", GestureHandling);
|
|
|
546 |
|
|
|
547 |
exports.GestureHandling = GestureHandling;
|
|
|
548 |
exports.default = GestureHandling;
|
|
|
549 |
|
|
|
550 |
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
551 |
|
|
|
552 |
})));
|