├── .npmignore ├── .gitignore ├── dist ├── images │ ├── leaflet-search │ │ ├── imagesloader.gif │ │ └── imagessearch-icon.png │ ├── leaflet-minimap │ │ └── dist │ │ │ ├── imagestoggle.png │ │ │ └── imagestoggle.svg │ ├── leaflet.fullscreenicon-fullscreen.png │ ├── leaflet.fullscreenicon-fullscreen-2x.png │ ├── leaflet-pegman │ │ └── maps.gstatic.com │ │ │ ├── api-3cb_scout5.png │ │ │ ├── pegman_v3runway-1x.png │ │ │ └── pegman_v3runway-2x.png │ ├── leaflet.locatecontrollocation-arrow-solid.svg │ ├── leaflet.locatecontrolspinner-solid.svg │ └── leaflet.fullscreenicon-fullscreen.svg ├── locales │ ├── kn.js │ ├── en.js │ ├── en-AU.js │ ├── en-GB.js │ ├── de.js │ ├── gl.js │ ├── tl.js │ ├── fil.js │ ├── da.js │ ├── it.js │ ├── nl.js │ ├── no.js │ ├── sv.js │ ├── eu.js │ ├── hr.js │ ├── id.js │ ├── it-IT.js │ ├── pt-PT.js │ ├── pt.js │ ├── ca.js │ ├── pl.js │ ├── pt-BR.js │ ├── lv.js │ ├── sl.js │ ├── es.js │ ├── fi.js │ ├── fr.js │ ├── ro.js │ ├── hu.js │ ├── sk.js │ ├── zh-CN.js │ ├── zh-TW.js │ ├── vi.js │ ├── lt.js │ ├── tr.js │ ├── cs.js │ ├── ko.js │ ├── ja.js │ ├── mr.js │ ├── ar.js │ ├── th.js │ ├── gu.js │ ├── bn.js │ ├── iw.js │ ├── fa.js │ ├── ml.js │ ├── sr.js │ ├── hi.js │ ├── te.js │ ├── ru.js │ ├── uk.js │ ├── el.js │ ├── bg.js │ └── ta.js └── leaflet-ui.css ├── test ├── index.html └── multiple-maps.html ├── package.json ├── README.md ├── src ├── leaflet-ui.css └── leaflet-ui.js └── LICENSE /.npmignore: -------------------------------------------------------------------------------- 1 | /examples 2 | .jshintrc 3 | .gitattributes 4 | _config.yml 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | src/**/*.min.js 4 | src/**/*.min.css 5 | build/**/*.min.js 6 | -------------------------------------------------------------------------------- /dist/images/leaflet-search/imagesloader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raruto/leaflet-ui/HEAD/dist/images/leaflet-search/imagesloader.gif -------------------------------------------------------------------------------- /dist/images/leaflet-minimap/dist/imagestoggle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raruto/leaflet-ui/HEAD/dist/images/leaflet-minimap/dist/imagestoggle.png -------------------------------------------------------------------------------- /dist/images/leaflet-search/imagessearch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raruto/leaflet-ui/HEAD/dist/images/leaflet-search/imagessearch-icon.png -------------------------------------------------------------------------------- /dist/images/leaflet.fullscreenicon-fullscreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raruto/leaflet-ui/HEAD/dist/images/leaflet.fullscreenicon-fullscreen.png -------------------------------------------------------------------------------- /dist/images/leaflet.fullscreenicon-fullscreen-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raruto/leaflet-ui/HEAD/dist/images/leaflet.fullscreenicon-fullscreen-2x.png -------------------------------------------------------------------------------- /dist/images/leaflet-pegman/maps.gstatic.com/api-3cb_scout5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raruto/leaflet-ui/HEAD/dist/images/leaflet-pegman/maps.gstatic.com/api-3cb_scout5.png -------------------------------------------------------------------------------- /dist/images/leaflet-pegman/maps.gstatic.com/pegman_v3runway-1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raruto/leaflet-ui/HEAD/dist/images/leaflet-pegman/maps.gstatic.com/pegman_v3runway-1x.png -------------------------------------------------------------------------------- /dist/images/leaflet-pegman/maps.gstatic.com/pegman_v3runway-2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Raruto/leaflet-ui/HEAD/dist/images/leaflet-pegman/maps.gstatic.com/pegman_v3runway-2x.png -------------------------------------------------------------------------------- /dist/locales/kn.js: -------------------------------------------------------------------------------- 1 | //Kannada 2 | export default { 3 | touch: "Use two fingers to move the map", 4 | scroll: "Use Ctrl + scroll to zoom the map", 5 | scrollMac: "Use ⌘ + scroll to zoom the map" 6 | }; -------------------------------------------------------------------------------- /dist/locales/en.js: -------------------------------------------------------------------------------- 1 | //English 2 | export default { 3 | touch: "Use two fingers to move the map", 4 | scroll: "Use ctrl + scroll to zoom the map", 5 | scrollMac: "Use \u2318 + scroll to zoom the map" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/en-AU.js: -------------------------------------------------------------------------------- 1 | //English (Australian) 2 | export default { 3 | touch: "Use two fingers to move the map", 4 | scroll: "Use ctrl + scroll to zoom the map", 5 | scrollMac: "Use \u2318 + scroll to zoom the map" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/en-GB.js: -------------------------------------------------------------------------------- 1 | //English (Great Britain) 2 | export default { 3 | touch: "Use two fingers to move the map", 4 | scroll: "Use ctrl + scroll to zoom the map", 5 | scrollMac: "Use \u2318 + scroll to zoom the map" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/de.js: -------------------------------------------------------------------------------- 1 | //German 2 | export default { 3 | touch: "Verschieben der Karte mit zwei Fingern", 4 | scroll: "Verwende Strg + Scroll zum Zoomen der Karte", 5 | scrollMac: "Verwende \u2318 + Scroll zum Zoomen der Karte" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/gl.js: -------------------------------------------------------------------------------- 1 | //Galician 2 | export default { 3 | touch: "Utiliza dous dedos para mover o mapa", 4 | scroll: "Preme Ctrl mentres te desprazas para ampliar o mapa", 5 | scrollMac: "Preme \u2318 e despr\u00e1zate para ampliar o mapa" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/tl.js: -------------------------------------------------------------------------------- 1 | //Tagalog 2 | export default { 3 | touch: "Gumamit ng dalawang daliri upang iusog ang mapa", 4 | scroll: "Gamitin ang ctrl + scroll upang i-zoom ang mapa", 5 | scrollMac: "Gamitin ang \u2318 + scroll upang i-zoom ang mapa" 6 | }; -------------------------------------------------------------------------------- /dist/locales/fil.js: -------------------------------------------------------------------------------- 1 | //Filipino 2 | export default { 3 | touch: "Gumamit ng dalawang daliri upang iusog ang mapa", 4 | scroll: "Gamitin ang ctrl + scroll upang i-zoom ang mapa", 5 | scrollMac: "Gamitin ang \u2318 + scroll upang i-zoom ang mapa" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/da.js: -------------------------------------------------------------------------------- 1 | //Danish 2 | export default { 3 | touch: "Brug to fingre til at flytte kortet", 4 | scroll: "Brug ctrl + rullefunktionen til at zoome ind og ud p\u00e5 kortet", 5 | scrollMac: "Brug \u2318 + rullefunktionen til at zoome ind og ud p\u00e5 kortet" 6 | }; -------------------------------------------------------------------------------- /dist/locales/it.js: -------------------------------------------------------------------------------- 1 | //Italian 2 | export default { 3 | touch: "Utilizza due dita per spostare la mappa", 4 | scroll: "Utilizza CTRL + scorrimento per eseguire lo zoom della mappa", 5 | scrollMac: "Utilizza \u2318 + scorrimento per eseguire lo zoom della mappa" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/nl.js: -------------------------------------------------------------------------------- 1 | //Dutch 2 | export default { 3 | touch: "Gebruik twee vingers om de kaart te verplaatsen", 4 | scroll: "Gebruik Ctrl + scrollen om in- en uit te zoomen op de kaart", 5 | scrollMac: "Gebruik \u2318 + scrollen om in en uit te zoomen op de kaart" 6 | }; -------------------------------------------------------------------------------- /dist/locales/no.js: -------------------------------------------------------------------------------- 1 | //Norwegian 2 | export default { 3 | touch: "Bruk to fingre for \u00e5 flytte kartet", 4 | scroll: "Hold ctrl-tasten inne og rull for \u00e5 zoome p\u00e5 kartet", 5 | scrollMac: "Hold inne \u2318-tasten og rull for \u00e5 zoome p\u00e5 kartet" 6 | }; -------------------------------------------------------------------------------- /dist/locales/sv.js: -------------------------------------------------------------------------------- 1 | //Swedish 2 | export default { 3 | touch: "Anv\u00e4nd tv\u00e5 fingrar f\u00f6r att flytta kartan", 4 | scroll: "Anv\u00e4nd ctrl + rulla f\u00f6r att zooma kartan", 5 | scrollMac: "Anv\u00e4nd \u2318 + rulla f\u00f6r att zooma p\u00e5 kartan" 6 | }; -------------------------------------------------------------------------------- /dist/locales/eu.js: -------------------------------------------------------------------------------- 1 | //Basque 2 | export default { 3 | touch: "Erabili bi hatz mapa mugitzeko", 4 | scroll: "Mapan zooma aplikatzeko, sakatu Ktrl eta egin gora edo behera", 5 | scrollMac: "Eduki sakatuta \u2318 eta egin gora eta behera mapa handitu eta txikitzeko" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/hr.js: -------------------------------------------------------------------------------- 1 | //Croatian 2 | export default { 3 | touch: "Pomi\u010dite kartu pomo\u0107u dva prsta", 4 | scroll: "Upotrijebite Ctrl i kliza\u010d mi\u0161a da biste zumirali kartu", 5 | scrollMac: "Upotrijebite gumb \u2318 dok se pomi\u010dete za zumiranje karte" 6 | }; -------------------------------------------------------------------------------- /dist/locales/id.js: -------------------------------------------------------------------------------- 1 | //Indonesian 2 | export default { 3 | touch: "Gunakan dua jari untuk menggerakkan peta", 4 | scroll: "Gunakan ctrl + scroll untuk memperbesar atau memperkecil peta", 5 | scrollMac: "Gunakan \u2318 + scroll untuk memperbesar atau memperkecil peta" 6 | }; -------------------------------------------------------------------------------- /dist/locales/it-IT.js: -------------------------------------------------------------------------------- 1 | //Italian 2 | export default { 3 | touch: "Utilizza due dita per spostare la mappa", 4 | scroll: "Utilizza CTRL + scorrimento per eseguire lo zoom della mappa", 5 | scrollMac: "Utilizza \u2318 + scorrimento per eseguire lo zoom della mappa" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/pt-PT.js: -------------------------------------------------------------------------------- 1 | //Portuguese (Portugal) 2 | export default { 3 | touch: "Utilize dois dedos para mover o mapa", 4 | scroll: "Utilizar ctrl + deslocar para aumentar/diminuir zoom do mapa", 5 | scrollMac: "Utilize \u2318 + deslocar para aumentar/diminuir o zoom do mapa" 6 | }; -------------------------------------------------------------------------------- /dist/locales/pt.js: -------------------------------------------------------------------------------- 1 | //Portuguese 2 | export default { 3 | touch: "Use dois dedos para mover o mapa", 4 | scroll: "Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa", 5 | scrollMac: "Use \u2318 e role a tela simultaneamente para aplicar zoom no mapa" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/ca.js: -------------------------------------------------------------------------------- 1 | //Catalan 2 | export default { 3 | touch: "Fes servir dos dits per moure el mapa", 4 | scroll: "Prem la tecla Control mentre et desplaces per apropar i allunyar el mapa", 5 | scrollMac: "Prem la tecla \u2318 mentre et desplaces per apropar i allunyar el mapa" 6 | }; -------------------------------------------------------------------------------- /dist/locales/pl.js: -------------------------------------------------------------------------------- 1 | //Polish 2 | export default { 3 | touch: "Przesu\u0144 map\u0119 dwoma palcami", 4 | scroll: "Naci\u015bnij CTRL i przewi\u0144, by przybli\u017cy\u0107 map\u0119", 5 | scrollMac: "Naci\u015bnij\u00a0\u2318 i przewi\u0144, by przybli\u017cy\u0107 map\u0119" 6 | }; -------------------------------------------------------------------------------- /dist/locales/pt-BR.js: -------------------------------------------------------------------------------- 1 | //Portuguese (Brazil) 2 | export default { 3 | touch: "Use dois dedos para mover o mapa", 4 | scroll: "Pressione Ctrl e role a tela simultaneamente para aplicar zoom no mapa", 5 | scrollMac: "Use \u2318 e role a tela simultaneamente para aplicar zoom no mapa" 6 | }; -------------------------------------------------------------------------------- /dist/locales/lv.js: -------------------------------------------------------------------------------- 1 | //Latvian 2 | export default { 3 | touch: "Lai p\u0101rvietotu karti, b\u012bdiet to ar diviem pirkstiem", 4 | scroll: "Kartes t\u0101lummai\u0146ai izmantojiet ctrl + ritin\u0101\u0161anu", 5 | scrollMac: "Lai veiktu kartes t\u0101lummai\u0146u, izmantojiet \u2318 + ritin\u0101\u0161anu" 6 | }; -------------------------------------------------------------------------------- /dist/locales/sl.js: -------------------------------------------------------------------------------- 1 | //Slovenian 2 | export default { 3 | touch: "Premaknite zemljevid z dvema prstoma", 4 | scroll: "Zemljevid pove\u010date tako, da dr\u017eite tipko Ctrl in vrtite kolesce na mi\u0161ki", 5 | scrollMac: "Uporabite \u2318 + funkcijo pomika, da pove\u010date ali pomanj\u0161ate zemljevid" 6 | }; -------------------------------------------------------------------------------- /dist/locales/es.js: -------------------------------------------------------------------------------- 1 | //Spanish 2 | export default { 3 | touch: "Para mover el mapa, utiliza dos dedos", 4 | scroll: "Mant\u00e9n pulsada la tecla Ctrl mientras te desplazas para acercar o alejar el mapa", 5 | scrollMac: "Mant\u00e9n pulsada la tecla \u2318 mientras te desplazas para acercar o alejar el mapa" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/fi.js: -------------------------------------------------------------------------------- 1 | //Finnish 2 | export default { 3 | touch: "Siirr\u00e4 karttaa kahdella sormella.", 4 | scroll: "Zoomaa karttaa painamalla Ctrl-painiketta ja vieritt\u00e4m\u00e4ll\u00e4.", 5 | scrollMac: "Zoomaa karttaa pit\u00e4m\u00e4ll\u00e4 painike \u2318 painettuna ja vieritt\u00e4m\u00e4ll\u00e4." 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/fr.js: -------------------------------------------------------------------------------- 1 | //French 2 | export default { 3 | touch: "Utilisez deux\u00a0doigts pour d\u00e9placer la carte", 4 | scroll: "Vous pouvez zoomer sur la carte \u00e0 l'aide de CTRL + Molette de d\u00e9filement", 5 | scrollMac: "Vous pouvez zoomer sur la carte \u00e0 l'aide de \u2318 + Molette de d\u00e9filement" 6 | }; -------------------------------------------------------------------------------- /dist/locales/ro.js: -------------------------------------------------------------------------------- 1 | //Romanian 2 | export default { 3 | touch: "Folosi\u021bi dou\u0103 degete pentru a deplasa harta", 4 | scroll: "Ap\u0103sa\u021bi tasta ctrl \u0219i derula\u021bi simultan pentru a m\u0103ri harta", 5 | scrollMac: "Folosi\u021bi \u2318 \u0219i derula\u021bi pentru a m\u0103ri/mic\u0219ora harta" 6 | }; -------------------------------------------------------------------------------- /dist/locales/hu.js: -------------------------------------------------------------------------------- 1 | //Hungarian 2 | export default { 3 | touch: "K\u00e9t ujjal mozgassa a t\u00e9rk\u00e9pet", 4 | scroll: "A t\u00e9rk\u00e9p a ctrl + g\u00f6rget\u00e9s haszn\u00e1lat\u00e1val nagy\u00edthat\u00f3", 5 | scrollMac: "A t\u00e9rk\u00e9p a \u2318 + g\u00f6rget\u00e9s haszn\u00e1lat\u00e1val nagy\u00edthat\u00f3" 6 | }; -------------------------------------------------------------------------------- /dist/locales/sk.js: -------------------------------------------------------------------------------- 1 | //Slovak 2 | export default { 3 | touch: "Mapu m\u00f4\u017eete posun\u00fa\u0165 dvoma prstami", 4 | scroll: "Ak chcete pribl\u00ed\u017ei\u0165 mapu, stla\u010dte kl\u00e1ves ctrl a\u00a0pos\u00favajte", 5 | scrollMac: "Ak chcete pribl\u00ed\u017ei\u0165 mapu, stla\u010dte kl\u00e1ves \u2318 a\u00a0pos\u00favajte kolieskom my\u0161i" 6 | }; -------------------------------------------------------------------------------- /dist/locales/zh-CN.js: -------------------------------------------------------------------------------- 1 | //Chinese (Simplified) 2 | export default { 3 | touch: "\u4f7f\u7528\u53cc\u6307\u79fb\u52a8\u5730\u56fe", 4 | scroll: "\u6309\u4f4f Ctrl \u5e76\u6eda\u52a8\u9f20\u6807\u6eda\u8f6e\u624d\u53ef\u7f29\u653e\u5730\u56fe", 5 | scrollMac: "\u6309\u4f4f \u2318 \u5e76\u6eda\u52a8\u9f20\u6807\u6eda\u8f6e\u624d\u53ef\u7f29\u653e\u5730\u56fe" 6 | }; -------------------------------------------------------------------------------- /dist/locales/zh-TW.js: -------------------------------------------------------------------------------- 1 | //Chinese (Traditional) 2 | export default { 3 | touch: "\u540c\u6642\u4ee5\u5169\u6307\u79fb\u52d5\u5730\u5716", 4 | scroll: "\u6309\u4f4f ctrl \u9375\u52a0\u4e0a\u6372\u52d5\u6ed1\u9f20\u53ef\u4ee5\u7e2e\u653e\u5730\u5716", 5 | scrollMac: "\u6309 \u2318 \u52a0\u4e0a\u6efe\u52d5\u6372\u8ef8\u53ef\u4ee5\u7e2e\u653e\u5730\u5716" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/vi.js: -------------------------------------------------------------------------------- 1 | //Vietnamese 2 | export default { 3 | touch: "S\u1eed d\u1ee5ng hai ng\u00f3n tay \u0111\u1ec3 di chuy\u1ec3n b\u1ea3n \u0111\u1ed3", 4 | scroll: "S\u1eed d\u1ee5ng ctrl + cu\u1ed9n \u0111\u1ec3 thu ph\u00f3ng b\u1ea3n \u0111\u1ed3", 5 | scrollMac: "S\u1eed d\u1ee5ng \u2318 + cu\u1ed9n \u0111\u1ec3 thu ph\u00f3ng b\u1ea3n \u0111\u1ed3" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/lt.js: -------------------------------------------------------------------------------- 1 | //Lithuanian 2 | export default { 3 | touch: "Perkelkite \u017eem\u0117lap\u012f dviem pir\u0161tais", 4 | scroll: "Slinkite nuspaud\u0119 klavi\u0161\u0105 \u201eCtrl\u201c, kad pakeistum\u0117te \u017eem\u0117lapio mastel\u012f", 5 | scrollMac: "Paspauskite klavi\u0161\u0105 \u2318 ir slinkite, kad priartintum\u0117te \u017eem\u0117lap\u012f" 6 | }; -------------------------------------------------------------------------------- /dist/locales/tr.js: -------------------------------------------------------------------------------- 1 | //Turkish 2 | export default { 3 | touch: "Haritada gezinmek i\u00e7in iki parma\u011f\u0131n\u0131z\u0131 kullan\u0131n", 4 | scroll: "Haritay\u0131 yak\u0131nla\u015ft\u0131rmak i\u00e7in ctrl + kayd\u0131rma kombinasyonunu kullan\u0131n", 5 | scrollMac: "Haritay\u0131 yak\u0131nla\u015ft\u0131rmak i\u00e7in \u2318 tu\u015funa bas\u0131p ekran\u0131 kayd\u0131r\u0131n" 6 | }; -------------------------------------------------------------------------------- /dist/locales/cs.js: -------------------------------------------------------------------------------- 1 | //Czech 2 | export default { 3 | touch: "K\u00a0posunut\u00ed mapy pou\u017eijte dva prsty", 4 | scroll: "Velikost zobrazen\u00ed mapy zm\u011b\u0148te podr\u017een\u00edm kl\u00e1vesy Ctrl a\u00a0posouv\u00e1n\u00edm kole\u010dka my\u0161i", 5 | scrollMac: "Velikost zobrazen\u00ed mapy zm\u011bn\u00edte podr\u017een\u00edm kl\u00e1vesy \u2318 a\u00a0posunut\u00edm kole\u010dka my\u0161i / touchpadu" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/ko.js: -------------------------------------------------------------------------------- 1 | //Korean 2 | export default { 3 | touch: "\uc9c0\ub3c4\ub97c \uc6c0\uc9c1\uc774\ub824\uba74 \ub450 \uc190\uac00\ub77d\uc744 \uc0ac\uc6a9\ud558\uc138\uc694.", 4 | scroll: "\uc9c0\ub3c4\ub97c \ud655\ub300/\ucd95\uc18c\ud558\ub824\uba74 Ctrl\uc744 \ub204\ub978 \ucc44 \uc2a4\ud06c\ub864\ud558\uc138\uc694.", 5 | scrollMac: "\uc9c0\ub3c4\ub97c \ud655\ub300\ud558\ub824\uba74 \u2318 + \uc2a4\ud06c\ub864 \uc0ac\uc6a9" 6 | }; -------------------------------------------------------------------------------- /dist/images/leaflet.locatecontrollocation-arrow-solid.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/locales/ja.js: -------------------------------------------------------------------------------- 1 | //Japanese 2 | export default { 3 | touch: "\u5730\u56f3\u3092\u79fb\u52d5\u3055\u305b\u308b\u306b\u306f\u6307 2 \u672c\u3067\u64cd\u4f5c\u3057\u307e\u3059", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/locales/mr.js: -------------------------------------------------------------------------------- 1 | //Marathi 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/locales/ar.js: -------------------------------------------------------------------------------- 1 | //Arabic 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/locales/th.js: -------------------------------------------------------------------------------- 1 | //Thai 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/locales/gu.js: -------------------------------------------------------------------------------- 1 | 2 | //Gujarati 3 | export default { 4 | 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", 5 | 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", 6 | 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" 7 | }; -------------------------------------------------------------------------------- /dist/locales/bn.js: -------------------------------------------------------------------------------- 1 | //Bengali 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/iw.js: -------------------------------------------------------------------------------- 1 | //Hebrew 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/locales/fa.js: -------------------------------------------------------------------------------- 1 | //Farsi 2 | export default { 3 | 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.", 4 | 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", 5 | 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." 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/ml.js: -------------------------------------------------------------------------------- 1 | //Malayalam 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/locales/sr.js: -------------------------------------------------------------------------------- 1 | //Serbian 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/images/leaflet.locatecontrolspinner-solid.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/locales/hi.js: -------------------------------------------------------------------------------- 1 | //Hindi 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/locales/te.js: -------------------------------------------------------------------------------- 1 | //Telugu 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/locales/ru.js: -------------------------------------------------------------------------------- 1 | //Russian 2 | export default { 3 | 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", 4 | 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.", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/images/leaflet.fullscreenicon-fullscreen.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /dist/locales/uk.js: -------------------------------------------------------------------------------- 1 | //Ukrainian 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/locales/el.js: -------------------------------------------------------------------------------- 1 | //Greek 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; 7 | -------------------------------------------------------------------------------- /dist/locales/bg.js: -------------------------------------------------------------------------------- 1 | //Bulgarian 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/locales/ta.js: -------------------------------------------------------------------------------- 1 | //Tamil 2 | export default { 3 | 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", 4 | 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", 5 | 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" 6 | }; -------------------------------------------------------------------------------- /dist/images/leaflet-minimap/dist/imagestoggle.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | leaflet-ui 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 28 | 29 | 30 | 31 | 32 |
33 | 34 | 61 | 62 | View on Github 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "leaflet-ui", 3 | "version": "0.6.0", 4 | "description": "Leaflet presets for common user interface customizations", 5 | "main": "dist/leaflet-ui.js", 6 | "module": "src/leaflet-ui.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1", 9 | "build": "rollup -c build/rollup.config.js", 10 | "watch": "rollup -c build/rollup.config.js --watch", 11 | "dev": "npm run watch", 12 | "version": "npm run build && git add -A dist" 13 | }, 14 | "repository": { 15 | "type": "git", 16 | "url": "https://github.com/Raruto/leaflet-ui.git" 17 | }, 18 | "keywords": [ 19 | "leaflet", 20 | "map", 21 | "default-ui", 22 | "controls", 23 | "layers" 24 | ], 25 | "author": "Raruto", 26 | "license": "GPL-3.0", 27 | "bugs": { 28 | "url": "https://github.com/Raruto/leaflet-ui/issues" 29 | }, 30 | "homepage": "https://github.com/Raruto/leaflet-ui#readme", 31 | "devDependencies": { 32 | "postcss-copy": "^7.1.0", 33 | "postcss-import": "^12.0.1", 34 | "rollup": "^2.0.6", 35 | "rollup-plugin-commonjs": "^10.1.0", 36 | "rollup-plugin-copy": "^3.4.0", 37 | "rollup-plugin-git-version": "^0.3.1", 38 | "rollup-plugin-node-resolve": "^5.2.0", 39 | "rollup-plugin-postcss": "^2.4.1", 40 | "rollup-plugin-terser": "^7.0.2" 41 | }, 42 | "peerDependencies": { 43 | "leaflet": "^1.7.1" 44 | }, 45 | "dependencies": { 46 | "@raruto/leaflet-edit-osm": "0.0.2", 47 | "@raruto/leaflet-gesture-handling": "^1.4.3", 48 | "leaflet-control-layers-inline": "0.0.7", 49 | "leaflet-easyprint": "^2.1.9", 50 | "leaflet-i18n": "^0.3.1", 51 | "leaflet-loading": "^0.1.24", 52 | "leaflet-minimap": "^3.6.1", 53 | "leaflet-pegman": "^0.1.6", 54 | "leaflet-pointable": "^0.0.4", 55 | "leaflet-rotate": "^0.1.4", 56 | "leaflet-search": "^3.0.2", 57 | "leaflet.control.resizer": "^0.0.1", 58 | "leaflet.fullscreen": "^2.4.0", 59 | "leaflet.gridlayer.googlemutant": "^0.13.5", 60 | "leaflet.locatecontrol": "^0.76.1", 61 | "leaflet.visualclick": "^1.1.4" 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # leaflet-ui 2 | 3 | [![NPM version](https://img.shields.io/npm/v/leaflet-ui.svg?color=red)](https://www.npmjs.com/package/leaflet-ui) 4 | [![License](https://img.shields.io/badge/license-GPL%203-blue.svg?style=flat)](LICENSE) 5 | 6 | Leaflet presets for common user interface customizations 7 | 8 | _For a working example see [demo](https://raruto.github.io/leaflet-ui/examples/leaflet-ui.html)_ 9 | 10 |

11 | Leaflet default UI 12 |

13 | 14 | 15 | * * * 16 | 17 | ## How to use 18 | 19 | 1. **include CSS & JavaScript** 20 | ```html 21 | 22 | ... 23 | 24 | 25 | 26 | 27 | 28 | ... 29 | 30 | ``` 31 | 2. **choose a div container used for the slippy map** 32 | ```html 33 | 34 | ... 35 |
36 | ... 37 | 38 | ``` 39 | 3. **create your first simple “leaflet-ui” slippy map** 40 | ```html 41 | 66 | ``` 67 | 68 | * * * 69 | 70 | **Compatibile with:** leaflet@1.6.0 71 | 72 | * * * 73 | 74 | **Contributors:** [Raruto](https://github.com/Raruto/leaflet-ui) 75 | -------------------------------------------------------------------------------- /src/leaflet-ui.css: -------------------------------------------------------------------------------- 1 | @import url("../node_modules/leaflet-pegman/leaflet-pegman.css"); 2 | @import url("../node_modules/leaflet.locatecontrol/dist/L.Control.Locate.min.css"); 3 | @import url("../node_modules/leaflet.fullscreen/Control.FullScreen.css"); 4 | @import url("../node_modules/@raruto/leaflet-gesture-handling/dist/leaflet-gesture-handling.css"); 5 | @import url("../node_modules/@raruto/leaflet-edit-osm/leaflet-edit-osm.css"); 6 | @import url("../node_modules/leaflet-control-layers-inline/leaflet-control-layers-inline.css"); 7 | @import url("../node_modules/leaflet-minimap/dist/Control.MiniMap.min.css"); 8 | @import url("../node_modules/leaflet-loading/src/Control.Loading.css"); 9 | @import url("../node_modules/leaflet-search/dist/leaflet-search.min.css"); 10 | @import url("../node_modules/leaflet.control.resizer/L.Control.Resizer.css"); 11 | @import url("../node_modules/leaflet.visualclick/dist/L.VisualClick.css"); 12 | 13 | .leaflet-control-locate a .leaflet-control-locate-location-arrow { 14 | mask-image: url(https://unpkg.com/@raruto/leaflet-elevation@0.3.9/images/elevation-locate.png); 15 | } 16 | 17 | .leaflet-control-minimap.leaflet-control { 18 | cursor: pointer; 19 | } 20 | 21 | .leaflet-control-layers-inline .leaflet-control-layers-base span { 22 | line-height: 1; 23 | } 24 | 25 | .leaflet-control-zoom~.leaflet-control-scale.leaflet-control { 26 | clear: both; 27 | margin: 0; 28 | } 29 | 30 | .leaflet-control-scale-line { 31 | line-height: 1; 32 | } 33 | 34 | .leaflet-control-scale~.leaflet-control-attribution.leaflet-control { 35 | clear: none; 36 | } 37 | 38 | .leaflet-right .leaflet-control-search { 39 | float: right; 40 | margin-left: 0; 41 | margin-top: 0; 42 | } 43 | 44 | .leaflet-control-search .search-input { 45 | width: 215px; 46 | } 47 | 48 | .leaflet-control-search .search-tooltip { 49 | width: 260px; 50 | } 51 | 52 | .leaflet-container:not(.leaflet-touch) .leaflet-control-search .search-button { 53 | width: 26px; 54 | height: 26px; 55 | background-position: 2.5px 2.5px; 56 | } 57 | 58 | .leaflet-container:not(.leaflet-touch) .leaflet-control-search { 59 | border: none; 60 | box-shadow: 0 1px 5px rgba(0,0,0,0.65); 61 | } 62 | 63 | .leaflet-container:not(.leaflet-touch) .leaflet-control-search.search-exp .search-button { 64 | margin: 4px 0 0 0; 65 | } 66 | 67 | .leaflet-control-easyPrint .leaflet-control-easyPrint-button-export { 68 | background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUxMiA1MTI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8cGF0aCBkPSJNMTI4LDMyaDI1NnY2NEgxMjhWMzJ6IE00ODAsMTI4SDMyYy0xNy42LDAtMzIsMTQuNC0zMiwzMnYxNjBjMCwxNy42LDE0LjM5OCwzMiwzMiwzMmg5NnYxMjhoMjU2VjM1Mmg5NiAgIGMxNy42LDAsMzItMTQuNCwzMi0zMlYxNjBDNTEyLDE0Mi40LDQ5Ny42LDEyOCw0ODAsMTI4eiBNMzUyLDQ0OEgxNjBWMjg4aDE5MlY0NDh6IE00ODcuMTk5LDE3NmMwLDEyLjgxMy0xMC4zODcsMjMuMi0yMy4xOTcsMjMuMiAgIGMtMTIuODEyLDAtMjMuMjAxLTEwLjM4Ny0yMy4yMDEtMjMuMnMxMC4zODktMjMuMiwyMy4xOTktMjMuMkM0NzYuODE0LDE1Mi44LDQ4Ny4xOTksMTYzLjE4Nyw0ODcuMTk5LDE3NnoiIGZpbGw9IiMwMDAwMDAiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K); 69 | background-size: 16px 16px; 70 | cursor: pointer; 71 | } 72 | 73 | .leaflet-control-resizer-opaque, 74 | .leaflet-control-resizer-transparent:hover, 75 | .leaflet-control-resizer-transparent-fakedhover { 76 | background-color: #fff; 77 | border: 2px solid rgba(0, 0, 0, 0.2); 78 | background-clip: padding-box; 79 | } 80 | 81 | .leaflet-control-resizer-s, 82 | .leaflet-control-resizer-se { 83 | border-bottom: none !important; 84 | } 85 | 86 | .leaflet-control-resizer-e, 87 | .leaflet-control-resizer-se { 88 | border-right: none !important; 89 | } 90 | 91 | .leaflet-control-resizer-opaque::after, 92 | .leaflet-control-resizer-transparent:hover::after, 93 | .leaflet-control-resizer-transparent-fakedhover::after { 94 | border-width: 2px; 95 | } 96 | 97 | .leaflet-control-resizer-corner-e, 98 | .leaflet-control-resizer-corner-s, 99 | .leaflet-control-resizer-corner-se { 100 | pointer-events: none; 101 | } 102 | -------------------------------------------------------------------------------- /test/multiple-maps.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | leaflet-ui 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 30 | 31 | 32 | 33 | 34 |
35 |
36 |
37 | 38 | 145 | 146 | 147 | 191 | 192 | View on Github 193 | 194 | 195 | 196 | -------------------------------------------------------------------------------- /dist/leaflet-ui.css: -------------------------------------------------------------------------------- 1 | .pano-canvas{position:absolute!important;width:100%;height:100%;top:0;right:0;bottom:0;left:0;margin:0;padding:0;z-index:1000;display:none}.pegman-control{width:30px;height:30px;background-color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:grab}.pegman-control.dragging{cursor:grabbing}.pegman-control .pegman-button{position:relative;width:100%;height:100%;background-image:url(images/leaflet-pegman/maps.gstatic.com/api-3cb_scout5.png);background-position:-145px -23px;background-repeat:no-repeat}.pegman-control:hover .pegman-button{background-position:-145px -75px}.pegman-control.active .pegman-button,.pegman-control.dragging .pegman-button{background-position:-145px -50px}.pegman-control.active .pegman-button:before{position:absolute;width:100%;height:100%;content:" ";display:block;z-index:-1;opacity:.5;background:linear-gradient(#d1d1d1,#f5f5f5,#fbfbfb)}.pegman-control.streetview-layer-active{background:linear-gradient(#d1d1d1,#f5f5f5,#fbfbfb);background-clip:padding-box}.pegman{position:absolute;z-index:9999999;display:block;width:100%;height:100%;opacity:0}.pegman:before{position:relative;z-index:5;display:block;width:19px;height:32px;content:" ";background-image:url(images/leaflet-pegman/maps.gstatic.com/api-3cb_scout5.png);background-repeat:no-repeat;background-position:-112px -4px}.pegman:after{position:absolute;width:22px;height:22px;content:" ";bottom:-18px;left:50%;margin-left:-11px;z-index:4;display:block;overflow:visible;visibility:visible;border:1px dotted rgba(51,51,51,.9);border-radius:30px;background-color:rgba(105,185,70,.7);box-shadow:3px 10px 25px rgba(105,185,70,.9)}.pegman.active{opacity:1!important}.pegman.active.left:before{background-position:-119px -55px}.pegman.active.right:before{background-position:-114px -158px}.pegman.active.bottom:before,.pegman.active.top:before{background-position:-112px -4px}.pegman.dropped{opacity:1}.pegman.dropped:before{background-position:-112px -4px}.pegman-marker{background:transparent url(images/leaflet-pegman/maps.gstatic.com/api-3cb_scout5.png) no-repeat scroll 0 -364px}.pegman-marker:not(.leaflet-drag-target){transition:transform .2s linear}.leaflet-left .pegman-control:hover .pegman-button{transform:scaleX(-1)}.leaflet-pegman-v3-default .pegman-control{width:40px;height:40px}.leaflet-pegman-v3-default .pegman-control .pegman-button{background-image:url(images/leaflet-pegman/maps.gstatic.com/pegman_v3runway-2x.png);background-position:-3px -55px;background-size:45px}.leaflet-pegman-v3-default .pegman-control.streetview-layer-active .pegman-button{background-position:-3px -7px}.leaflet-pegman-v3-default .pegman-control:hover .pegman-button{background-position:-3px -152px}.leaflet-pegman-v3-default .pegman-control.dragging .pegman-button{background-position:-3px -104px}.leaflet-pegman-v3-small .pegman-control{width:30px;height:30px}.leaflet-pegman-v3-small .pegman-control .pegman-button{background-image:url(images/leaflet-pegman/maps.gstatic.com/pegman_v3runway-1x.png);background-position:2px -27px;background-size:25px}.leaflet-pegman-v3-small .pegman-control.streetview-layer-active .pegman-button{background-position:2px 0}.leaflet-pegman-v3-small .pegman-control:hover .pegman-button{background-position:2px -79px}.leaflet-pegman-v3-small .pegman-control.dragging .pegman-button{background-position:2px -53px}.leaflet-container:not(.leaflet-touch).leaflet-pegman-v3-small .pegman-control{width:26px;height:26px;box-shadow:0 1px 5px rgba(0,0,0,.65)}.leaflet-container:not(.leaflet-touch).leaflet-pegman-v3-small .pegman-control .pegman-button{background-position:0 -29px}.leaflet-container:not(.leaflet-touch).leaflet-pegman-v3-small .pegman-control:hover .pegman-button{background-position:0 -81px}.leaflet-container:not(.leaflet-touch).leaflet-pegman-v3-default .pegman-control{width:36px;height:36px;box-shadow:0 1px 5px rgba(0,0,0,.65)}.leaflet-container:not(.leaflet-touch).leaflet-pegman-v3-default .pegman-control .pegman-button{background-position:-3px -53px;background-size:42px}.leaflet-container:not(.leaflet-touch).leaflet-pegman-v3-default .pegman-control:hover .pegman-button{background-position:-3px -143px}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{-webkit-mask-image:url(images/leaflet.locatecontrollocation-arrow-solid.svg);mask-image:url(images/leaflet.locatecontrollocation-arrow-solid.svg)}.leaflet-control-locate a .leaflet-control-locate-location-arrow,.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-color:#000;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}.leaflet-control-locate a .leaflet-control-locate-spinner{-webkit-mask-image:url(images/leaflet.locatecontrolspinner-solid.svg);mask-image:url(images/leaflet.locatecontrolspinner-solid.svg);animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-color:#2074b6}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-color:#fc8428}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{animation:leaflet-control-locate-throb 4s ease infinite}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;transform:scale(.8)}to{stroke-width:1}}@keyframes leaflet-control-locate-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fullscreen-icon{background-image:url(images/leaflet.fullscreenicon-fullscreen.svg);background-size:26px 52px}.fullscreen-icon.leaflet-fullscreen-on{background-position:0 -26px}.leaflet-touch .fullscreen-icon{background-position:2px 2px}.leaflet-touch .fullscreen-icon.leaflet-fullscreen-on{background-position:2px -24px}.leaflet-container:-webkit-full-screen{width:100%!important;height:100%!important;z-index:99999}.leaflet-container:-ms-fullscreen{width:100%!important;height:100%!important;z-index:99999}.leaflet-container:full-screen,.leaflet-container:fullscreen,.leaflet-pseudo-fullscreen{width:100%!important;height:100%!important;z-index:99999}.leaflet-pseudo-fullscreen{position:fixed!important;top:0!important;left:0!important}.leaflet-gesture-handling:after{color:#fff;font-family:Roboto,Arial,sans-serif;font-size:22px;justify-content:center;display:flex;align-items:center;padding:15px;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:1001;pointer-events:none;text-align:center;transition:opacity .8s ease-in-out;opacity:0;content:""}.leaflet-gesture-handling-warning:after{transition-duration:.3s;opacity:1}.leaflet-gesture-handling-touch:after{content:attr(data-gesture-handling-touch-content)}.leaflet-gesture-handling-scroll:after{content:attr(data-gesture-handling-scroll-content)}.leaflet-edit-osm.leaflet-control a{padding-right:5px}.leaflet-edit-osm.leaflet-control-attribution.leaflet-control{clear:both}.leaflet-edit-osm~.leaflet-control-attribution.leaflet-control{clear:none}.leaflet-control-layers-inline{margin:0;padding:0}.leaflet-control-layers-inline.leaflet-control-layers{border:transparent;background-color:transparent}.leaflet-control-layers-inline .leaflet-control-layers-base{margin:0;padding:0}.leaflet-control-layers-inline .leaflet-control-layers-base input{display:none}.leaflet-control-layers-inline .leaflet-control-layers-base span{display:inline-block;padding:9.5px;font-size:15px;font-weight:600}.leaflet-control-layers-inline .leaflet-control-layers-base label{display:inline-block;cursor:pointer;box-shadow:0 1px 4px -1px rgba(0,0,0,.3);background-color:#fff;background-clip:padding-box;border:2px solid rgba(0,0,0,.2);border-right:none;border-left:none}.leaflet-control-layers-inline .leaflet-control-layers-base label:hover{background-color:#f4f4f4}.leaflet-control-layers-inline .leaflet-control-layers-base label:first-of-type{border-left:2px solid rgba(0,0,0,.2);border-top-left-radius:4px;border-bottom-left-radius:4px}.leaflet-control-layers-inline .leaflet-control-layers-base label:last-of-type{border-right:2px solid rgba(0,0,0,.2);border-top-right-radius:4px;border-bottom-right-radius:4px}.leaflet-control-layers-inline .leaflet-control-layers-base input+span{color:#565656}.leaflet-control-layers-inline .leaflet-control-layers-base input:checked+span{font-weight:700;color:inherit}.leaflet-container:not(.leaflet-touch) .leaflet-control-layers-inline .leaflet-control-layers-base span{padding:8px;font-size:14px}.leaflet-container:not(.leaflet-touch) .leaflet-control-layers-inline .leaflet-control-layers-base label{border:none}.leaflet-control-minimap{border:solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.65);border-radius:3px;background:#f8f8f9;transition:all .6s}.leaflet-control-minimap a{background-color:#fff;background-repeat:no-repeat;z-index:99999;transition:all .6s}.leaflet-control-minimap a.minimized-bottomright{-webkit-transform:rotate(180deg);transform:rotate(180deg);border-radius:0}.leaflet-control-minimap a.minimized-topleft{-webkit-transform:rotate(0deg);transform:rotate(0deg);border-radius:0}.leaflet-control-minimap a.minimized-bottomleft{-webkit-transform:rotate(270deg);transform:rotate(270deg);border-radius:0}.leaflet-control-minimap a.minimized-topright{-webkit-transform:rotate(90deg);transform:rotate(90deg);border-radius:0}.leaflet-control-minimap-toggle-display{background-image:url(images/leaflet-minimap/dist/imagestoggle.svg);background-size:cover;position:absolute;border-radius:3px 0 0}.leaflet-oldie .leaflet-control-minimap-toggle-display{background-image:url(images/leaflet-minimap/dist/imagestoggle.png)}.leaflet-control-minimap-toggle-display-bottomright{bottom:0;right:0}.leaflet-control-minimap-toggle-display-topleft{top:0;left:0;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.leaflet-control-minimap-toggle-display-bottomleft{bottom:0;left:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.leaflet-control-minimap-toggle-display-topright{top:0;right:0;-webkit-transform:rotate(270deg);transform:rotate(270deg)}.leaflet-oldie .leaflet-control-minimap{border:1px solid #999}.leaflet-oldie .leaflet-control-minimap a{background-color:#fff}.leaflet-oldie .leaflet-control-minimap a.minimized{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2)}.leaflet-control-loading:empty{background-image:url(data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH+GkNyZWF0ZWQgd2l0aCBhamF4bG9hZC5pbmZvACH5BAAKAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAAFdyAgAgIJIeWoAkRCCMdBkKtIHIngyMKsErPBYbADpkSCwhDmQCBethRB6Vj4kFCkQPG4IlWDgrNRIwnO4UKBXDufzQvDMaoSDBgFb886MiQadgNABAokfCwzBA8LCg0Egl8jAggGAA1kBIA1BAYzlyILczULC2UhACH5BAAKAAEALAAAAAAQABAAAAV2ICACAmlAZTmOREEIyUEQjLKKxPHADhEvqxlgcGgkGI1DYSVAIAWMx+lwSKkICJ0QsHi9RgKBwnVTiRQQgwF4I4UFDQQEwi6/3YSGWRRmjhEETAJfIgMFCnAKM0KDV4EEEAQLiF18TAYNXDaSe3x6mjidN1s3IQAh+QQACgACACwAAAAAEAAQAAAFeCAgAgLZDGU5jgRECEUiCI+yioSDwDJyLKsXoHFQxBSHAoAAFBhqtMJg8DgQBgfrEsJAEAg4YhZIEiwgKtHiMBgtpg3wbUZXGO7kOb1MUKRFMysCChAoggJCIg0GC2aNe4gqQldfL4l/Ag1AXySJgn5LcoE3QXI3IQAh+QQACgADACwAAAAAEAAQAAAFdiAgAgLZNGU5joQhCEjxIssqEo8bC9BRjy9Ag7GILQ4QEoE0gBAEBcOpcBA0DoxSK/e8LRIHn+i1cK0IyKdg0VAoljYIg+GgnRrwVS/8IAkICyosBIQpBAMoKy9dImxPhS+GKkFrkX+TigtLlIyKXUF+NjagNiEAIfkEAAoABAAsAAAAABAAEAAABWwgIAICaRhlOY4EIgjH8R7LKhKHGwsMvb4AAy3WODBIBBKCsYA9TjuhDNDKEVSERezQEL0WrhXucRUQGuik7bFlngzqVW9LMl9XWvLdjFaJtDFqZ1cEZUB0dUgvL3dgP4WJZn4jkomWNpSTIyEAIfkEAAoABQAsAAAAABAAEAAABX4gIAICuSxlOY6CIgiD8RrEKgqGOwxwUrMlAoSwIzAGpJpgoSDAGifDY5kopBYDlEpAQBwevxfBtRIUGi8xwWkDNBCIwmC9Vq0aiQQDQuK+VgQPDXV9hCJjBwcFYU5pLwwHXQcMKSmNLQcIAExlbH8JBwttaX0ABAcNbWVbKyEAIfkEAAoABgAsAAAAABAAEAAABXkgIAICSRBlOY7CIghN8zbEKsKoIjdFzZaEgUBHKChMJtRwcWpAWoWnifm6ESAMhO8lQK0EEAV3rFopIBCEcGwDKAqPh4HUrY4ICHH1dSoTFgcHUiZjBhAJB2AHDykpKAwHAwdzf19KkASIPl9cDgcnDkdtNwiMJCshACH5BAAKAAcALAAAAAAQABAAAAV3ICACAkkQZTmOAiosiyAoxCq+KPxCNVsSMRgBsiClWrLTSWFoIQZHl6pleBh6suxKMIhlvzbAwkBWfFWrBQTxNLq2RG2yhSUkDs2b63AYDAoJXAcFRwADeAkJDX0AQCsEfAQMDAIPBz0rCgcxky0JRWE1AmwpKyEAIfkEAAoACAAsAAAAABAAEAAABXkgIAICKZzkqJ4nQZxLqZKv4NqNLKK2/Q4Ek4lFXChsg5ypJjs1II3gEDUSRInEGYAw6B6zM4JhrDAtEosVkLUtHA7RHaHAGJQEjsODcEg0FBAFVgkQJQ1pAwcDDw8KcFtSInwJAowCCA6RIwqZAgkPNgVpWndjdyohACH5BAAKAAkALAAAAAAQABAAAAV5ICACAimc5KieLEuUKvm2xAKLqDCfC2GaO9eL0LABWTiBYmA06W6kHgvCqEJiAIJiu3gcvgUsscHUERm+kaCxyxa+zRPk0SgJEgfIvbAdIAQLCAYlCj4DBw0IBQsMCjIqBAcPAooCBg9pKgsJLwUFOhCZKyQDA3YqIQAh+QQACgAKACwAAAAAEAAQAAAFdSAgAgIpnOSonmxbqiThCrJKEHFbo8JxDDOZYFFb+A41E4H4OhkOipXwBElYITDAckFEOBgMQ3arkMkUBdxIUGZpEb7kaQBRlASPg0FQQHAbEEMGDSVEAA1QBhAED1E0NgwFAooCDWljaQIQCE5qMHcNhCkjIQAh+QQACgALACwAAAAAEAAQAAAFeSAgAgIpnOSoLgxxvqgKLEcCC65KEAByKK8cSpA4DAiHQ/DkKhGKh4ZCtCyZGo6F6iYYPAqFgYy02xkSaLEMV34tELyRYNEsCQyHlvWkGCzsPgMCEAY7Cg04Uk48LAsDhRA8MVQPEF0GAgqYYwSRlycNcWskCkApIyEAOwAAAAAAAAAAAA==);background-repeat:no-repeat}.leaflet-control-layer-container,.leaflet-control-loading,.leaflet-control-zoom a.leaflet-control-loading,.leaflet-control-zoomslider a.leaflet-control-loading{display:none}.leaflet-control-layer-container.is-loading,.leaflet-control-loading.is-loading,.leaflet-control-zoom a.leaflet-control-loading.is-loading,.leaflet-control-zoomslider a.leaflet-control-loading.is-loading{display:block}.leaflet-bar-part-bottom{border-bottom:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.leaflet-container .leaflet-control-search{position:relative;float:left;background:#fff;color:#1978cf;border:2px solid rgba(0,0,0,.2);background-clip:padding-box;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:hsla(0,0%,100%,.8);z-index:1000;margin-left:10px;margin-top:10px}.leaflet-control-search.search-exp{background:#fff;border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-control-search .search-input{display:block;float:left;background:#fff;border:1px solid #666;border-radius:2px;height:22px;padding:0 20px 0 2px;margin:4px 0 4px 4px}.leaflet-control-search.search-load .search-input{background:url(images/leaflet-search/imagesloader.gif) no-repeat 100% #fff}.leaflet-control-search.search-load .search-cancel{visibility:hidden}.leaflet-control-search .search-cancel{display:block;width:22px;height:22px;position:absolute;right:28px;margin:6px 0;background:url(images/leaflet-search/imagessearch-icon.png) no-repeat 0 -46px;text-decoration:none;filter:alpha(opacity=80);opacity:.8}.leaflet-control-search .search-cancel:hover{filter:alpha(opacity=100);opacity:1}.leaflet-control-search .search-cancel span{display:none;font-size:18px;line-height:20px;color:#ccc;font-weight:700}.leaflet-control-search .search-cancel:hover span{color:#aaa}.leaflet-control-search .search-button{display:block;float:left;width:30px;height:30px;background:url(images/leaflet-search/imagessearch-icon.png) no-repeat 4px 4px #fff;border-radius:4px}.leaflet-control-search .search-button:hover{background:url(images/leaflet-search/imagessearch-icon.png) no-repeat 4px -20px #fafafa}.leaflet-control-search .search-tooltip{position:absolute;top:100%;left:0;float:left;list-style:none;padding-left:0;min-width:120px;max-height:122px;box-shadow:1px 1px 6px rgba(0,0,0,.4);background-color:rgba(0,0,0,.25);z-index:1010;overflow-y:auto;overflow-x:hidden;cursor:pointer}.leaflet-control-search .search-tip{margin:2px;padding:2px 4px;display:block;color:#000;background:#eee;border-radius:.25em;text-decoration:none;white-space:nowrap;vertical-align:center}.leaflet-control-search .search-button:hover{background-color:#f4f4f4}.leaflet-control-search .search-tip-select,.leaflet-control-search .search-tip:hover{background-color:#fff}.leaflet-control-search .search-alert{cursor:pointer;clear:both;font-size:.75em;margin-bottom:5px;padding:0 .25em;color:#e00;font-weight:700;border-radius:.25em}.leaflet-control-resizer-corner-e,.leaflet-control-resizer-corner-s,.leaflet-control-resizer-corner-se{z-index:1000;position:absolute}.leaflet-control-resizer-corner-e{right:0;height:100%}.leaflet-control-resizer-corner-s{bottom:0;width:100%}.leaflet-control-resizer-corner-se{right:0;bottom:0}.leaflet-control-resizer-transparent{background-color:transparent;user-select:none;transition:.5s}.leaflet-control-resizer-transparent:after{border-color:transparent;transition:.5s}.leaflet-control-resizer-opaque,.leaflet-control-resizer-transparent-fakedhover,.leaflet-control-resizer-transparent:hover{background-color:rgba(255,250,170,.8)}.leaflet-control-resizer-opaque:after,.leaflet-control-resizer-transparent-fakedhover:after,.leaflet-control-resizer-transparent:hover:after{border-color:rgba(85,85,85,.9)}.leaflet-control-resizer-e{width:25px;height:50px;border-top-left-radius:25px;border-bottom-left-radius:25px;cursor:e-resize;right:0;top:50%;transform:translateY(-50%)}.leaflet-control-resizer-s{width:50px;height:25px;border-top-left-radius:25px;border-top-right-radius:25px;cursor:s-resize;left:50%;bottom:0;transform:translateX(-50%)}.leaflet-control-resizer-se{width:35px;height:35px;border-top-left-radius:35px;cursor:se-resize;right:0;bottom:0;position:absolute}.leaflet-control-resizer-e:after,.leaflet-control-resizer-s:after,.leaflet-control-resizer-se:after{content:"";position:absolute;z-index:999;border-width:1px;bottom:20%;right:20%}.leaflet-control-resizer-e:after,.leaflet-control-resizer-s:after{width:60%;height:60%}.leaflet-control-resizer-se:after{width:40%;height:40%}.leaflet-control-resizer-e:after,.leaflet-control-resizer-se:after{border-right-style:solid}.leaflet-control-resizer-s:after,.leaflet-control-resizer-se:after{border-bottom-style:solid}.leaflet-visualclick-icon{border-radius:100%;pointer-events:none}.leaflet-visualclick-icon:after{height:60px;width:60px;margin-left:-30px;margin-top:-30px;-webkit-animation:visualclick-pulsate .7s ease-out;animation:visualclick-pulsate .7s ease-out;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-delay:0s;animation-delay:0s}.leaflet-visualclick-icon-touch:after,.leaflet-visualclick-icon:after{content:"";border-radius:100%;position:absolute;pointer-events:none;box-shadow:inset 0 0 25px -1px #e1e3e4,0 0 10px -1px #c5c5c5;opacity:0}.leaflet-visualclick-icon-touch:after{height:140px;width:140px;margin-left:-70px;margin-top:-70px;-webkit-animation:visualclick-pulsate-touch .7s ease-out;animation:visualclick-pulsate-touch .7s ease-out;-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-delay:0s;animation-delay:0s}@-webkit-keyframes visualclick-pulsate{0%{-webkit-transform:scale(.5);transform:scale(.5);opacity:1}to{-webkit-transform:scale(1.3);transform:scale(1.3);opacity:0}}@keyframes visualclick-pulsate{0%{-webkit-transform:scale(.5);transform:scale(.5);opacity:1}to{-webkit-transform:scale(1.3);transform:scale(1.3);opacity:0}}@-webkit-keyframes visualclick-pulsate-touch{0%{-webkit-transform:scale(1);transform:scale(1);opacity:.8}to{-webkit-transform:scale(.2);transform:scale(.2);opacity:0}}@keyframes visualclick-pulsate-touch{0%{-webkit-transform:scale(1);transform:scale(1);opacity:.8}to{-webkit-transform:scale(.2);transform:scale(.2);opacity:0}}.leaflet-pane.leaflet-ie10-visual-click-pane-pane{z-index:300}.leaflet-control-locate a .leaflet-control-locate-location-arrow{mask-image:url(https://unpkg.com/@raruto/leaflet-elevation@0.3.9/images/elevation-locate.png)}.leaflet-control-minimap.leaflet-control{cursor:pointer}.leaflet-control-layers-inline .leaflet-control-layers-base span{line-height:1}.leaflet-control-zoom~.leaflet-control-scale.leaflet-control{clear:both;margin:0}.leaflet-control-scale-line{line-height:1}.leaflet-control-scale~.leaflet-control-attribution.leaflet-control{clear:none}.leaflet-right .leaflet-control-search{float:right;margin-left:0;margin-top:0}.leaflet-control-search .search-input{width:215px}.leaflet-control-search .search-tooltip{width:260px}.leaflet-container:not(.leaflet-touch) .leaflet-control-search .search-button{width:26px;height:26px;background-position:2.5px 2.5px}.leaflet-container:not(.leaflet-touch) .leaflet-control-search{border:none;box-shadow:0 1px 5px rgba(0,0,0,.65)}.leaflet-container:not(.leaflet-touch) .leaflet-control-search.search-exp .search-button{margin:4px 0 0}.leaflet-control-easyPrint .leaflet-control-easyPrint-button-export{background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUxMiA1MTI7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8cGF0aCBkPSJNMTI4LDMyaDI1NnY2NEgxMjhWMzJ6IE00ODAsMTI4SDMyYy0xNy42LDAtMzIsMTQuNC0zMiwzMnYxNjBjMCwxNy42LDE0LjM5OCwzMiwzMiwzMmg5NnYxMjhoMjU2VjM1Mmg5NiAgIGMxNy42LDAsMzItMTQuNCwzMi0zMlYxNjBDNTEyLDE0Mi40LDQ5Ny42LDEyOCw0ODAsMTI4eiBNMzUyLDQ0OEgxNjBWMjg4aDE5MlY0NDh6IE00ODcuMTk5LDE3NmMwLDEyLjgxMy0xMC4zODcsMjMuMi0yMy4xOTcsMjMuMiAgIGMtMTIuODEyLDAtMjMuMjAxLTEwLjM4Ny0yMy4yMDEtMjMuMnMxMC4zODktMjMuMiwyMy4xOTktMjMuMkM0NzYuODE0LDE1Mi44LDQ4Ny4xOTksMTYzLjE4Nyw0ODcuMTk5LDE3NnoiIGZpbGw9IiMwMDAwMDAiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K);background-size:16px 16px;cursor:pointer}.leaflet-control-resizer-opaque,.leaflet-control-resizer-transparent-fakedhover,.leaflet-control-resizer-transparent:hover{background-color:#fff;border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-control-resizer-s,.leaflet-control-resizer-se{border-bottom:none!important}.leaflet-control-resizer-e,.leaflet-control-resizer-se{border-right:none!important}.leaflet-control-resizer-opaque:after,.leaflet-control-resizer-transparent-fakedhover:after,.leaflet-control-resizer-transparent:hover:after{border-width:2px}.leaflet-control-resizer-corner-e,.leaflet-control-resizer-corner-s,.leaflet-control-resizer-corner-se{pointer-events:none} -------------------------------------------------------------------------------- /src/leaflet-ui.js: -------------------------------------------------------------------------------- 1 | import { version } from '../package.json'; 2 | import 'leaflet-i18n'; 3 | import 'leaflet-rotate'; 4 | import 'leaflet.locatecontrol'; 5 | import 'leaflet.fullscreen'; 6 | import 'leaflet-pegman'; 7 | import '@raruto/leaflet-gesture-handling'; 8 | import '@raruto/leaflet-edit-osm'; 9 | import 'leaflet-control-layers-inline'; 10 | import 'leaflet-minimap'; 11 | import 'leaflet-loading'; 12 | import 'leaflet-search'; 13 | import 'leaflet-easyprint'; 14 | import 'leaflet.control.resizer'; 15 | import 'leaflet.visualclick'; 16 | 17 | /* Temporary fix for empty values evaluated as false (leaflet-i18n v0.3.1) */ 18 | (function(){ 19 | let proto = L.i18n.bind({}); 20 | L.i18n = L._ = (string, data) => { 21 | if (L.locale && L.locales[L.locale] && L.locales[L.locale][string] == "") { 22 | L.locales[L.locale][string] = "\u200B"; 23 | } 24 | return proto.call(null, string, data); 25 | }; 26 | })(); 27 | 28 | (function() { 29 | 30 | const currentScript = document.currentScript; 31 | const currentVersion = version.split("+")[0].trim(); 32 | 33 | let lazyLoader = { 34 | 35 | baseURL: 'https://unpkg.com/', 36 | 37 | // Save a reference to any lazy loaded scripts to prevent multiple loading (multiple-maps) 38 | scripts: {}, 39 | 40 | // Sequentially download multiple scripts. 41 | loadSyncScripts: function(urls) { 42 | return urls.reduce((prev, curr) => prev.then(() => lazyLoader.loadAsyncScripts(curr)), Promise.resolve()); 43 | }, 44 | 45 | // Parallel download multiple scripts. 46 | loadAsyncScripts: function(urls) { 47 | return Promise.all(urls.map((url) => lazyLoader.loadScript(url))); 48 | }, 49 | 50 | // Dynamically load a single script. 51 | loadScript: function(url) { 52 | lazyLoader.scripts[url] = 53 | lazyLoader.scripts[url] 54 | ? lazyLoader.scripts[url] 55 | : new Promise((resolve, reject) => { 56 | 57 | let type = url.split('.').pop().split('?')[0]; 58 | let tag = type == 'css' ? 'link' : 'script'; 59 | let script = document.createElement(tag); 60 | let head = document.head; 61 | let root_script = (head.contains(currentScript) ? currentScript : head.lastChild) || head; 62 | let prev_tag = lazyLoader["prev_" + tag] || (tag == 'script' && lazyLoader.prev_link ? lazyLoader.prev_link : root_script); 63 | let base_url = (url.indexOf(".") === 0 || url.indexOf("/") === 0 || url.indexOf('http://') === 0 || url.indexOf('https://') === 0) ? '' : lazyLoader.baseURL; 64 | 65 | if (type == 'css') { 66 | script.rel = 'stylesheet'; 67 | } 68 | 69 | script.addEventListener('load', resolve, { once: true }); 70 | script.setAttribute(type == 'css' ? 'href' : 'src', base_url + url); 71 | 72 | if (prev_tag.parentNode && prev_tag.nextSibling) 73 | prev_tag.parentNode.insertBefore(script, prev_tag.nextSibling); 74 | else 75 | head.appendChild(script); 76 | 77 | lazyLoader["prev_" + tag] = script; 78 | 79 | }); 80 | return lazyLoader.scripts[url]; 81 | }, 82 | 83 | }; 84 | 85 | // You can ovveride them by passing one of the following to leaflet map constructor. 86 | let default_options = { 87 | mapTypes: { 88 | atlas: { 89 | name: 'Atlas', 90 | url: 'https://{s}.tile.thunderforest.com/mobile-atlas/{z}/{x}/{y}.png', 91 | options: { 92 | maxZoom: 24, 93 | maxNativeZoom: 22, 94 | attribution: 'Map data: © OpenStreetMap | Map style: © Thunderforest', 95 | // apikey: '', 96 | }, 97 | }, 98 | streets: { 99 | name: 'Streets', 100 | url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', 101 | options: { 102 | maxZoom: 24, 103 | maxNativeZoom: 19, 104 | attribution: 'Map data: © OpenStreetMap', 105 | }, 106 | }, 107 | cycle: { 108 | name: 'Cycle', 109 | url: 'https://{s}.tile.thunderforest.com/cycle/{z}/{x}/{y}.png', 110 | options: { 111 | maxZoom: 24, 112 | maxNativeZoom: 22, 113 | attribution: 'Map data: © OpenStreetMap | Map style: © Thunderforest', 114 | // apikey: '', 115 | }, 116 | }, 117 | terrain: { 118 | name: 'Terrain', 119 | url: 'https://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png', 120 | options: { 121 | maxZoom: 24, 122 | maxNativeZoom: 22, 123 | attribution: 'Map data: © OpenStreetMap | Map style: © Thunderforest', 124 | // apikey: '', 125 | }, 126 | }, 127 | satellite: { 128 | name: 'Satellite', 129 | url: 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', 130 | options: { 131 | maxZoom: 24, 132 | maxNativeZoom: 18, 133 | attribution: 'Map data: © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community' 134 | }, 135 | }, 136 | topo: { 137 | name: 'Topo', 138 | url: 'https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', 139 | options: { 140 | maxZoom: 24, 141 | maxNativeZoom: 17, 142 | attribution: 'Map data: © OpenStreetMap, SRTM | Map style: © OpenTopoMap (CC-BY-SA)', 143 | }, 144 | }, 145 | }, 146 | zoomControl: { 147 | position: 'bottomright' 148 | }, 149 | rotateControl: { 150 | position: 'bottomright', 151 | }, 152 | scaleControl: { 153 | width: 200, 154 | position: 'bottomright', 155 | imperial: false, 156 | }, 157 | pegmanControl: { 158 | position: 'bottomright', 159 | theme: "leaflet-pegman-v3-small", 160 | }, 161 | locateControl: { 162 | position: "bottomright" 163 | }, 164 | fullscreenControl: { 165 | position: 'topright', 166 | title: 'Enter Fullscreen', 167 | titleCancel: 'Exit Fullscreen', 168 | forceSeparateButton: true, 169 | }, 170 | layersControl: { 171 | inline: true, 172 | position: 'topleft' 173 | }, 174 | minimapControl: { 175 | position: 'bottomleft', 176 | toggleDisplay: false, 177 | toggleMapTypes: true, // Automatically switch between "satellite" and "roads" layers. 178 | width: 75, 179 | height: 75, 180 | aimingRectOptions: { 181 | color: '#000000', 182 | weight: 1, 183 | opacity: 0, 184 | fillOpacity: 0, 185 | }, 186 | shadowRectOptions: { 187 | color: '#000000', 188 | weight: 1, 189 | opacity: 0, 190 | fillOpacity: 0, 191 | }, 192 | mapOptions: { 193 | mapTypeId: 'satellite', 194 | gestureHandling: false, 195 | searchControl: false, 196 | loadingControl: false, 197 | _isMiniMap: true, 198 | rotateControl: false 199 | } 200 | }, 201 | editInOSMControl: { 202 | position: "bottomright" 203 | }, 204 | loadingControl: { 205 | separate: true, 206 | position: 'bottomright' 207 | }, 208 | searchControl: { 209 | url: 'https://nominatim.openstreetmap.org/search?format=json&accept-language={querylang}&q={s}', 210 | querylang: 'en-US', 211 | detectUserLang: true, 212 | jsonpParam: 'json_callback', 213 | propertyName: 'display_name', 214 | propertyLoc: ['lat', 'lon'], 215 | markerLocation: true, 216 | autoType: false, 217 | autoCollapse: true, 218 | firstTipSubmit: true, 219 | minLength: 1, 220 | zoom: 10, 221 | position: "bottomright", 222 | }, 223 | printControl: { 224 | position: 'bottomright', 225 | hideControlContainer: true, 226 | exportOnly: true, 227 | sizeModes: [ /*'Current',*/ 'A4Portrait', 'A4Landscape'], 228 | //tileWait: 1200, 229 | }, 230 | resizerControl: { 231 | direction: 's' 232 | }, 233 | disableDefaultUI: false, 234 | // TODO: pluginsBaseURL: 'https://unpkg.com/', 235 | plugins: [ 236 | // "@raruto/leaflet-elevation@0.4.5/leaflet-elevation.css", 237 | // "@raruto/leaflet-elevation@0.4.5/leaflet-elevation.js", 238 | // "leaflet-kmz@0.3.1/dist/leaflet-kmz.js", 239 | // "leaflet-transparency@0.0.5/leaflet-transparency.min.js" 240 | ], 241 | _isMiniMap: false, // used to prevent infinite loops when loading the minimap control. 242 | }; 243 | 244 | // See "default_options" for a complete list of allowed values. 245 | L.Map.mergeOptions({ 246 | mapTypeId: 'streets', 247 | mapTypeIds: ['streets', 'terrain', 'satellite', 'topo'], 248 | mapTypes: undefined, 249 | gestureHandling: true, 250 | visualClick: true, 251 | zoomControl: true, 252 | scaleControl: true, 253 | pegmanControl: true, 254 | locateControl: true, 255 | fullscreenControl: true, 256 | layersControl: true, 257 | minimapControl: true, 258 | editInOSMControl: true, 259 | loadingControl: true, 260 | searchControl: true, 261 | printControl: false, 262 | resizerControl: false, 263 | disableDefaultUI: false, 264 | includeLeafletCSS: true, 265 | includeLeafletUICSS: true, 266 | apiKeys: undefined, // eg. { thunderforest: "", google: "", ... } 267 | _isMiniMap: false, // used to prevent infinite loops when loading the minimap control. 268 | }); 269 | 270 | // Customize leaflet Map default aspect. 271 | L.Map.addInitHook(function() { 272 | disableDefaultUI.call(this); 273 | if (this.options._isMiniMap) { 274 | return; // prevent infinite loops when loading the minimap control. 275 | } 276 | if (!this.options.disableDefaultUI) { 277 | setDefaultOptions.call(this); 278 | initMap.call(this); 279 | } 280 | }); 281 | 282 | // Disable leaflet map default controls. 283 | function disableDefaultUI() { 284 | if (this.zoomControl) this.zoomControl.remove(); 285 | if (this.rotateControl) this.rotateControl.remove(); 286 | if (this.fullscreenControl && this.options.fullscreenControl && !this.options.zoomControl) this.fullscreenControl.remove(); 287 | if (this.searchControl && this.options.searchControl) this.searchControl.remove(); 288 | if (this.attributionControl) this.attributionControl.remove(); 289 | } 290 | 291 | // Deep merge "default_options" and do some sanity check. 292 | function setDefaultOptions() { 293 | let opts = this.options; 294 | 295 | // Recursive merge leaflet map options. 296 | for (let i in default_options) { 297 | if (opts[i] === true || typeof opts[i] === "undefined") { 298 | opts[i] = default_options[i]; 299 | } else if (typeof this.options[i] === "object" && opts[i] instanceof Array === false) { 300 | opts[i] = deepMerge(default_options[i], opts[i]); 301 | } 302 | } 303 | 304 | // Set deafult tile providers Api Keys (if any). 305 | if (opts.apiKeys) { 306 | if (opts.apiKeys.thunderforest) { 307 | opts.mapTypes.atlas.options.apikey = opts.apiKeys.thunderforest; 308 | opts.mapTypes.terrain.options.apikey = opts.apiKeys.thunderforest; 309 | opts.mapTypes.cycle.options.apikey = opts.apiKeys.thunderforest; 310 | } 311 | if (opts.apiKeys.google) { 312 | opts.pegmanControl.apiKey = opts.apiKeys.google; 313 | } 314 | } 315 | // Append Api Keys (query string). 316 | for (let k of ['atlas', 'terrain', 'cycle']) { 317 | if (opts.mapTypes[k].options.apikey && opts.mapTypes[k].url.indexOf('apikey=') === -1) { 318 | opts.mapTypes[k].url += (opts.mapTypes[k].url.indexOf('?') === -1 ? '?' : '&') + 'apikey={apikey}'; 319 | } 320 | } 321 | // Fix default mapTypeId if missing in mapTypeIds array. 322 | if (opts.mapTypeIds.includes(opts.mapTypeId) === false && opts.mapTypeIds.length > 0) { 323 | opts.mapTypeId = opts.mapTypeIds[0]; 324 | } 325 | // Auto detect user "querylang" value when using search control. 326 | if (opts.searchControl && opts.searchControl.detectUserLang) { 327 | opts.searchControl.querylang = window.navigator.languages ? window.navigator.languages[0] : (window.navigator.userLanguage || window.navigator.language); 328 | } 329 | // Replace default "querylang" value when using search control. 330 | if (opts.searchControl && opts.searchControl.querylang) { 331 | opts.searchControl.url = opts.searchControl.url.replace('{querylang}', opts.searchControl.querylang); 332 | } 333 | // Avoid missing center/zoom values when using minimap control. 334 | if (opts.minimapControl && !opts.center && !opts.zoom) { 335 | this.setView([0, 0], 0); 336 | } 337 | } 338 | // Initialize default leaflet map controls and layers. 339 | function initMap() { 340 | let controls = {}, 341 | layers = {}, 342 | baseMaps = {}, 343 | opts = this.options; 344 | 345 | // Gesture Handling. 346 | if (opts.gestureHandling) { 347 | this.gestureHandling.enable(); 348 | } 349 | 350 | // Load all user selected layers. 351 | for (let i in opts.mapTypeIds) { 352 | let id = opts.mapTypeIds[i]; 353 | if (opts.mapTypes[id]) { 354 | baseMaps[opts.mapTypes[id].name] = layers[id] = new L.TileLayer(opts.mapTypes[id].url, opts.mapTypes[id].options); 355 | layers[id].mapTypeId = id; // save mapTypeId for easy access. 356 | } 357 | } 358 | 359 | // Keep a reference of previous mapTypeId 360 | this._lastMapTypeId = opts.mapTypeId; 361 | this._prevMapTypeId = opts.mapTypeId; 362 | this.on('baselayerchange', function(e) { 363 | if (e && e.layer && e.layer.mapTypeId) { 364 | this._prevMapTypeId = this._lastMapTypeId; 365 | this._lastMapTypeId = e.layer.mapTypeId; 366 | } 367 | }); 368 | 369 | // Keep default baselayers to the lower level 370 | this.on('baselayerchange', function(e) { 371 | if (e && e.layer && e.layer.mapTypeId && e.layer.bringToBack) e.layer.bringToBack(); 372 | }); 373 | 374 | // Layers Control. 375 | if (opts.layersControl) { 376 | controls.layers = new L.Control.Layers(baseMaps, null, opts.layersControl); 377 | this.on('zoomend', autoToggleSatelliteLayer, this); 378 | } 379 | 380 | // Attribution Control. 381 | if (opts.attributionControl && this.attributionControl) { 382 | this.attributionControl.addTo(this); 383 | controls.attribution = this.attributionControl; 384 | this.on('baselayerchange', L.bind(updateLeafletAttribution, this, this.attributionControl.options.prefix)); 385 | } 386 | 387 | // Edit in OSM link. 388 | if (opts.editInOSMControl) { 389 | controls.editInOSM = new L.Control.EditInOSM(opts.editInOSMControl); 390 | } 391 | 392 | // Scale Control. 393 | if (opts.scaleControl) { 394 | controls.scale = new L.Control.Scale(opts.scaleControl); 395 | } 396 | 397 | // Zoom Control. 398 | if (opts.zoomControl && this.zoomControl) { 399 | this.zoomControl.setPosition(opts.zoomControl.position); 400 | this.zoomControl.addTo(this); 401 | controls.zoom = this.zoomControl; 402 | } 403 | 404 | // Rotate Control. 405 | if (opts.rotateControl && this.rotateControl) { 406 | this.rotateControl.setPosition(opts.rotateControl.position); 407 | this.rotateControl.addTo(this); 408 | controls.rotate = this.rotateControl; 409 | } 410 | 411 | // Pegman Control. 412 | if (opts.pegmanControl) { 413 | controls.pegman = new L.Control.Pegman(opts.pegmanControl); 414 | } 415 | 416 | // Locate Control. 417 | if (opts.locateControl) { 418 | controls.locate = new L.Control.Locate(opts.locateControl); 419 | } 420 | 421 | // Search Control. 422 | if (opts.searchControl) { 423 | controls.search = this.searchControl = new L.Control.Search(opts.searchControl); 424 | } 425 | 426 | // Print Control. 427 | if (opts.printControl) { 428 | controls.print = new L.Control.EasyPrint(opts.printControl); 429 | } 430 | 431 | // Loading Control. 432 | if (opts.loadingControl) { 433 | controls.loading = new L.Control.Loading(opts.loadingControl); 434 | } 435 | 436 | // Fullscreen Control. 437 | if (opts.fullscreenControl) { 438 | controls.fullscreen = this.fullscreenControl = new L.Control.FullScreen(opts.fullscreenControl); 439 | } 440 | 441 | // Minimap Control. 442 | if (opts.minimapControl) { 443 | let miniMapTypeId = opts.minimapControl.mapOptions.mapTypeId; 444 | let miniMapLayer = opts.mapTypes[miniMapTypeId]; 445 | if (miniMapLayer) { 446 | miniMapLayer = new L.TileLayer(miniMapLayer.url, miniMapLayer.options); 447 | miniMapLayer.mapTypeId = miniMapTypeId; // save mapTypeId for easy access. 448 | controls.minimap = new L.Control.MiniMap(miniMapLayer, opts.minimapControl); 449 | controls.minimap._mainMapBaseLayers = baseMaps; // save baseMaps for easy access. 450 | } 451 | } 452 | 453 | // Resizer Control. 454 | if (opts.resizerControl) { 455 | controls.resizer = new L.Control.Resizer(opts.resizerControl); 456 | } 457 | 458 | // Load all user selected controls. 459 | for (let i in controls) { 460 | if (controls[i].addTo) { 461 | controls[i].addTo(this); 462 | } 463 | } 464 | this.controls = controls; // save controls for easy access. 465 | 466 | // Fire idle event. 467 | this.whenReady(function() { 468 | this.fire('idle'); 469 | // Prevent adding multiple default base layers when using multiple maps. 470 | if (opts.mapTypeId) { 471 | let baseLayer = opts.mapTypes[opts.mapTypeId]; 472 | if (baseLayer && baseMaps[baseLayer.name]) { 473 | opts.layers = opts.layers.filter(item => item._leaflet_id !== baseMaps[baseLayer.name]._leaflet_id); 474 | let layer = baseMaps[baseLayer.name]; 475 | if (layer.setZIndex) layer.setZIndex(0); 476 | else if (layer.bringToBack) layer.bringToBack(); 477 | } 478 | } 479 | }, this); 480 | 481 | // Set default base layer. 482 | if (opts.mapTypeId) { 483 | let baseLayer = opts.mapTypes[opts.mapTypeId]; 484 | if (baseLayer && baseMaps[baseLayer.name]) { 485 | opts.layers.unshift(baseMaps[baseLayer.name]); // Add to the array of layers that will be automatically loaded within the map initially. 486 | } 487 | } 488 | 489 | // Load custom plugins. 490 | if (opts.plugins) { 491 | let core_plugins = []; 492 | 493 | if (opts.includeLeafletUICSS) { 494 | core_plugins.unshift("leaflet-ui@" + currentVersion + "/dist/leaflet-ui.css"); 495 | } 496 | if (!window.L) { 497 | core_plugins.unshift("leaflet@1.3.4/dist/leaflet.css"); 498 | core_plugins.unshift("leaflet@1.3.4/dist/leaflet.js"); 499 | } else if (opts.includeLeafletCSS && L.version) { 500 | let core_css_url = "leaflet@" + L.version + "/dist/leaflet.css"; 501 | let core_css_exists = false; 502 | for (let i = 0; i < document.styleSheets.length; i++) { 503 | if (document.styleSheets[i].href && document.styleSheets[i].href.indexOf(core_css_url) > 0) { 504 | core_css_exists = true; 505 | break; 506 | } 507 | } 508 | if (!core_css_exists) { 509 | core_plugins.unshift(core_css_url); 510 | } 511 | } 512 | 513 | // Lazy load initHooks 514 | if (this._initHooks) { 515 | let initHooks = this._initHooks.length; 516 | this.once('plugins_loaded', function() { 517 | if (initHooks < this._initHooks.length) 518 | for (let i = initHooks, len = this._initHooks.length; i < len; i++) { 519 | this._initHooks[i].call(this); 520 | } 521 | this.fire('initHooks_called'); 522 | }); 523 | } 524 | 525 | lazyLoader.loadSyncScripts([core_plugins, opts.plugins]).then(() => this.fire('plugins_loaded')); 526 | } 527 | } 528 | 529 | // Conditionally show leaflet attribution when showing GoogleMutant tiles 530 | function updateLeafletAttribution(defaultAttribution, e) { 531 | if (e && e.layer) { 532 | this.attributionControl.setPrefix((L.GridLayer.GoogleMutant && e.layer instanceof L.GridLayer.GoogleMutant) ? false : defaultAttribution); 533 | } 534 | } 535 | 536 | // Automatically show satellite layer at higher zoom levels 537 | function autoToggleSatelliteLayer(e) { 538 | let zoom = this.getZoom(); 539 | let control = this.controls.layers; 540 | let inputs = control._layerControlInputs; 541 | 542 | for (let i in inputs) { 543 | let input = inputs[i]; 544 | let layer = control._getLayer(input.layerId).layer; 545 | let mapTypeId = layer.mapTypeId; 546 | if (mapTypeId == "satellite") { 547 | if (zoom >= 18 && !layer._map && !layer._isAutoToggled) { 548 | layer._isAutoToggled = true; 549 | input.click(); 550 | break; 551 | } else if (zoom < 18 && layer._map && layer._isAutoToggled) { 552 | for (let j in inputs) { 553 | let input = inputs[j]; 554 | let layer = control._getLayer(input.layerId).layer; 555 | let mapTypeId = layer.mapTypeId; 556 | if (mapTypeId == this._prevMapTypeId) { 557 | input.click(); 558 | break; 559 | } 560 | } 561 | layer._isAutoToggled = false; 562 | break; 563 | } else if (zoom < 18 && !layer._map && layer._isAutoToggled) { 564 | layer._isAutoToggled = false; 565 | break; 566 | } 567 | } 568 | } 569 | 570 | } 571 | 572 | let minimapProto = L.Control.MiniMap.prototype; 573 | let onAddMinimapProto = minimapProto.onAdd; 574 | 575 | // Customize MiniMap default core behavior. 576 | L.Control.MiniMap.include({ 577 | onAdd: function(map) { 578 | let container = onAddMinimapProto.call(this, map); 579 | 580 | // Disable mouse handlers 581 | if (this._miniMap) { 582 | this._miniMap.doubleClickZoom.disable(); 583 | this._miniMap.touchZoom.disable(); 584 | this._miniMap.scrollWheelZoom.disable(); 585 | } 586 | // Automatically switch between "satellite" and "roads" layers. 587 | if (this.options.toggleMapTypes) { 588 | L.DomEvent.on(map, 'baselayerchange', this._handleMainMapTypeChange, this); 589 | L.DomEvent.on(this._container, 'click', this._handleMiniMapTypeToggle, this); 590 | } 591 | return container; 592 | }, 593 | _handleMainMapTypeChange: function(e) { 594 | if (!this._handligMiniMapTypeToggle) { 595 | if (e && e.layer) { 596 | let minimap = this, 597 | mainmap = this._mainMap, 598 | miniMapTypeId = minimap._layer.mapTypeId, 599 | mainMapTypeId = e.layer.mapTypeId; 600 | 601 | 602 | if (mainmap.options.mapTypeIds.length > 0 && inArray(mainmap.options.mapTypeIds, mainMapTypeId)) { 603 | if (mainMapTypeId != miniMapTypeId) { 604 | minimap._lastMapTypeId = mainMapTypeId; 605 | } 606 | 607 | let mapTypeId, 608 | miniMapLayer; 609 | 610 | if (mainMapTypeId == "satellite" && miniMapTypeId == "satellite") { 611 | mapTypeId = minimap._lastMapTypeId; 612 | } else if (mainMapTypeId != "satellite" && miniMapTypeId != "satellite") { 613 | mapTypeId = "satellite"; 614 | } 615 | miniMapLayer = mainmap.options.mapTypes[mapTypeId]; 616 | 617 | if (miniMapLayer) { 618 | miniMapLayer = new L.TileLayer(miniMapLayer.url, miniMapLayer.options); 619 | miniMapLayer.mapTypeId = mapTypeId; // save mapTypeId for easy access. 620 | minimap._lastMapTypeId = miniMapTypeId; 621 | minimap.changeLayer(miniMapLayer); 622 | } 623 | 624 | } 625 | } 626 | } 627 | }, 628 | _handleMiniMapTypeToggle: function() { 629 | this._handligMiniMapTypeToggle = true; 630 | if (this._layer && this._mainMapBaseLayers) { 631 | let minimap = this, 632 | mainmap = this._mainMap, 633 | miniMapTypeId = this._layer.mapTypeId, 634 | mainMapTypeId; 635 | for (let i in this._mainMapBaseLayers) { 636 | if (mainmap.hasLayer(this._mainMapBaseLayers[i]) && miniMapTypeId != this._mainMapBaseLayers[i].mapTypeId) { 637 | mainMapTypeId = this._mainMapBaseLayers[i].mapTypeId; 638 | break; 639 | } 640 | } 641 | 642 | if (mainmap.options.mapTypeIds.length > 0 && inArray(mainmap.options.mapTypeIds, miniMapTypeId)) { 643 | let mapTypeId, 644 | miniMapLayer; 645 | 646 | mapTypeId = minimap._lastMapTypeId || mainmap.options.mapTypeId; 647 | 648 | if (minimap._lastMapTypeId != "satellite" && miniMapTypeId != "satellite") { 649 | mapTypeId = "satellite"; 650 | } 651 | 652 | miniMapLayer = mainmap.options.mapTypes[mapTypeId]; 653 | 654 | if (miniMapLayer) { 655 | miniMapLayer = new L.TileLayer(miniMapLayer.url, miniMapLayer.options); 656 | miniMapLayer.mapTypeId = mapTypeId; // save mapTypeId for easy access. 657 | minimap._lastMapTypeId = miniMapTypeId; 658 | 659 | minimap.changeLayer(miniMapLayer); 660 | 661 | for (let i in this._mainMapBaseLayers) { 662 | this._mainMapBaseLayers[i].remove(); 663 | if (minimap._lastMapTypeId == this._mainMapBaseLayers[i].mapTypeId) { 664 | this._mainMapBaseLayers[i].addTo(mainmap); 665 | } 666 | } 667 | 668 | } 669 | } 670 | this._handligMiniMapTypeToggle = false; 671 | } 672 | }, 673 | }); 674 | 675 | // Check if an array contains any element from another one. 676 | function inArray(array, items) { 677 | return array.some(r => items.includes(r)); 678 | } 679 | 680 | // Simple object check. 681 | function isObject(item) { 682 | return (item && typeof item === 'object' && !Array.isArray(item)); 683 | } 684 | 685 | // Deep merge two objects (note: circular references not supported). 686 | function deepMerge(target, ...sources) { 687 | if (!sources.length) return target; 688 | const source = sources.shift(); 689 | if (isObject(target) && isObject(source)) { 690 | for (const key in source) { 691 | if (isObject(source[key])) { 692 | if (!target[key]) Object.assign(target, { 693 | [key]: {} 694 | }); 695 | deepMerge(target[key], source[key]); 696 | } else { 697 | Object.assign(target, { 698 | [key]: source[key] 699 | }); 700 | } 701 | } 702 | } 703 | return deepMerge(target, ...sources); 704 | } 705 | 706 | })(); 707 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------