├── .gitignore ├── LICENSE ├── README.md ├── _config.yml ├── _includes ├── labs.json.html └── leaflet.html ├── _labs ├── Trieste - L.Stock - School.yml ├── _labs │ └── legambiente-altapadovana.yml ├── aberdeen.yml ├── amsterdam.yml ├── arnhem.yml ├── berlin.yml ├── bourgoinj.yml ├── bratislava.yml ├── brussels.yml ├── brussels2.yml ├── budapest.yml ├── cape-town.yml ├── cardiff.yml ├── centraline_dal_basso.yml ├── charlottesville.yml ├── chartres.yml ├── cottbus.yml ├── delft.yml ├── diemen.yml ├── dnipro.yml ├── eastbourne.yml ├── foix.yml ├── gloucester.yml ├── grenoble.yml ├── groningen_onze_lucht.yml ├── krasnodar.yml ├── lansingerland.yml ├── le-havre.yml ├── lille.yml ├── madrid.yml ├── malaga.yml ├── mendoza.yml ├── minsk.yml ├── miskolc.yml ├── montorio_veronese.yml ├── moscow.yml ├── offtopic_lab.yml ├── paris.yml ├── parma.yml ├── prague.yml ├── rennes1.yml ├── rennes2.yml ├── rouen.yml ├── saint-maur36.yml ├── saint-petersburg.yml ├── sheffield.yml ├── sofia.yml ├── sterlitamak.yml ├── stuttgart.yml ├── toulouse.yml ├── trento.yml ├── treviso.yml ├── trieste.yml ├── valenciennes.yml ├── vannes.yml ├── verona.yml ├── vichy.yml ├── warsaw.yml ├── zeist.yml └── zuidplas.yml ├── _layouts ├── json.html └── map-iframe.html ├── _site ├── img │ └── lab_marker.png └── index.html ├── img ├── facebook.svg ├── github.svg ├── gitlab.svg ├── instagram.svg ├── lab_marker.png ├── mastodon.svg ├── mattermost.svg ├── meetup.svg ├── signal.svg ├── telegram.svg └── twitter.svg ├── index.html ├── labs.json.html └── search ├── back.png ├── leaflet-search-geocoder.js ├── leaflet-search.css ├── leaflet-search.jpg ├── leaflet-search.js ├── leaflet-search.mobile.css ├── loader.gif ├── search-icon-mobile.png └── search-icon.png /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | _site/ 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Luftdaten-local-labs 2 | 3 | These are the source files for the map of local Luftdaten.info labs and contacts. 4 | 5 | ## Setup 6 | Install Ruby and GEM: 7 | https://jekyllrb.com/docs/installation/#guides 8 | 9 | Create Gemfile: 10 | ``` 11 | bundle init 12 | ``` 13 | 14 | inside the Gemfile add this line 15 | ``` 16 | gem "jekyll" 17 | ``` 18 | 19 | Then get the dependencies: 20 | ``` 21 | gem install bundler 22 | bundler install 23 | ``` 24 | 25 | You can now build and serve the site: 26 | ``` 27 | bundler exec jekyll serve 28 | ``` 29 | 30 | ## Add new lab 31 | 32 | Go to the folder _labs, create a copy of stuttgart.yml. Rename it (name of city as filename prefered) and make your changes. 33 | 34 | ### Icons used 35 | Simple icons: 36 | https://github.com/simple-icons/simple-icons 37 | https://simpleicons.org/ 38 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | # Config file for luftdaten.info lab map 2 | 3 | title: "Local Labs and contacts" 4 | collections: 5 | labs: 6 | -------------------------------------------------------------------------------- /_includes/labs.json.html: -------------------------------------------------------------------------------- 1 | [{% for lab in site.labs %} 2 | { {% if lab.lat and lab.long %} 3 | "lat": {{ lab.lat }}, 4 | "lon": {{ lab.long }}, 5 | "title": "{{ lab.title }}", 6 | "text": "{{ lab.title }}

{% if lab.meetings %}{% if lab.meetings_title %}{{ lab.meetings_title }}{% else %}Meetings:{% endif %}
{% for meeting in lab.meetings %}{{ meeting.text }}
{% endfor %}
{% endif %}{% if lab.contacts %}{% if lab.contacts_title %}{{ lab.contacts_title }}
{% else %}Contacts:
{% endif %}
{% for contact in lab.contacts %}{{ contact.name }}
{% endfor %}
{% endif %}{% if lab.website %}Website
{{ lab.website }}
{% endif %}"{% endif%}, 7 | "meetings_title": "{% if lab.meetings_title %}{{ lab.meetings_title }}{% else %}Meetings{% endif %}", 8 | "meetings":[{% for meeting in lab.meetings %} 9 | { "text": "{{ meeting.text }}"}{% if forloop.last == false %},{% endif %}{% endfor %} 10 | ] 11 | {% if lab.contacts %},"contacts_title": {% if lab.contacts_title %}"{{ lab.contacts_title }}"{% else %}"Contacts"{% endif %}, 12 | "contacts":[ 13 | {% for contact in lab.contacts %}{ "name": "{{ contact.name }}", "url": "{{ contact.url }}" }{% if forloop.last == false %}, {% endif %}{% endfor %} 14 | ]{% endif %} 15 | {% if lab.website %},"website": "{{ lab.website }}" 16 | {% endif %}{% if lab.facebook %},"facebook": "{{ lab.facebook }}" 17 | {% endif %}{% if lab.facebook_group %},"facebook_group": "{{ lab.facebook_group }}" 18 | {% endif %}{% if lab.facebook_page %},"facebook_page": "{{ lab.facebook_page }}" 19 | {% endif %}{% if lab.github %},"github": "{{ lab.github }}" 20 | {% endif %}{% if lab.gitlab %},"gitlab": "{{ lab.gitlab }}" 21 | {% endif %}{% if lab.mastodon %},"mastodon": "{{ lab.mastodon }}" 22 | {% endif %}{% if lab.meetup %},"meetup": "{{ lab.meetup }}" 23 | {% endif %}{% if lab.instagram %},"instagram": "{{ lab.instagram }}" 24 | {% endif %}{% if lab.telegram %},"telegram": "{{ lab.telegram }}" 25 | {% endif %}{% if lab.telegram_group %},"telegram_group": "{{ lab.telegram_group }}" 26 | {% endif %}{% if lab.twitter %},"twitter": "{{ lab.twitter }}" 27 | {% endif %} }{% if forloop.last == false %},{% endif %} 28 | {% endfor %}] 29 | -------------------------------------------------------------------------------- /_includes/leaflet.html: -------------------------------------------------------------------------------- 1 | 6 | 131 | -------------------------------------------------------------------------------- /_labs/Trieste - L.Stock - School.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: Scuola "Lionello Stock" 3 | title: Laboratorio della Scuola secondaria di I° 'Lionello Stock' di Trieste 4 | Partner: Legambiente Trieste 5 | lat: 45.63881 6 | long: 13.76406 7 | 8 | meetings_title: Montaggio e registrazione di centraline per il monitoraggio delle polveri sottili 9 | contacts_title: Attività di educazione ambientale,Gemellaggio di scuole che aderiscono al progetto Luftdaten 10 | 11 | meetings: 12 | - text: Il laboratorio scolastico si rinnova annualmente; le classi terze trasmettono alle seconde le esperienze maturate nel montaggio e nella gestione delle centraline nel corso del precedente anno scolastico 13 | - text: Il laboratorio potrà svolgere la stessa attività anche nei confronti di altre scuole della città di Trieste 14 | - text: Il laboratorio è aperto alla collaborazione con altre scuole che hanno adottato le centraline 15 | 16 | contacts: 17 | - name: Mario Mearelli 18 | url: mailto:mearelli@gmail.com 19 | - name: Bruna Bonechi 20 | url: mailto:bruna.bonechi@campielisi.edu.it 21 | 22 | website: https://campielisi.edu.it 23 | facebook: https://www.facebook.com/legambiente.trieste/ 24 | facebook_page: https://www.facebook.com/p/IC-ai-Campi-Elisi-Trieste-100063833003705/ 25 | -------------------------------------------------------------------------------- /_labs/_labs/legambiente-altapadovana.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: legambiente-altapadovana 3 | title: Legambiente Altapadovana 4 | lat: 45.64 5 | long: 11.756 6 | 7 | # translations for titles 8 | meetings_title: Incontri 9 | contacts_title: Contatti 10 | 11 | # multiple contacts possible 12 | # - name: name of contact 13 | # url: email address or url of contact form 14 | contacts: 15 | - name: Legambiente Altapadovana 16 | url: mailto: altapadovana@legambienteveneto.it 17 | 18 | # leave empty if non-existent 19 | # Twitter and Telegram: account name without @ sign 20 | website: https://sites.google.com/view/legambientealtapadovana 21 | facebook: 22 | facebook_group: 23 | facebook_page: LegambienteAltaPadovana 24 | instagram: legambiente_altapadovana 25 | -------------------------------------------------------------------------------- /_labs/aberdeen.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: aberdeen 3 | title: Air Aberdeen 4 | lat: 57.148041 5 | long: -2.101436 6 | 7 | meetings_title: Meetings 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: bi-monthly, ONE Tech Hub, Schoolhill, Aberdeen AB10 1FR 12 | 13 | contacts: 14 | - name: info@airaberdeen.org 15 | url: mailto:info@airaberdeen.org 16 | 17 | website: https://airaberdeen.org 18 | 19 | twitter: airaberdeen 20 | -------------------------------------------------------------------------------- /_labs/amsterdam.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: amsterdam 3 | title: Sensemakers Amsterdam 4 | lat: 52.375745 5 | long: 4.908288 6 | 7 | # translations for titles 8 | meetings_title: Meetings 9 | contacts_title: Contacts 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: We have do-it-yourself and lecture meetings. One of our project is the Airsense project for urban air quality. 14 | - text: For meetings and venues see meetup. 15 | - text: For Airsense project info see github. 16 | 17 | # multiple contacts possible 18 | # - name: name of contact 19 | # url: email address or url of contact form 20 | contacts: 21 | - name: Sensemakers (meetings) 22 | url: mailto:SensemakersAMS@protonmail.com 23 | - name: Edwin Wisse (Airsense project) 24 | url: mailto:edwin@wisze.net 25 | 26 | # leave empty if non-existent 27 | # Twitter and Telegram: account name without @ sign 28 | website: https://www.sensemakersams.org/ 29 | facebook: 30 | facebook_group: 31 | facebook_page: 32 | github: sensemakersamsterdam 33 | gitlab: 34 | instagram: 35 | mastodon: 36 | meetup: sensemakersams 37 | telegram: 38 | telegram_group: 39 | twitter: SensemakersA 40 | -------------------------------------------------------------------------------- /_labs/arnhem.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: arnhem 3 | title: Natuur en milieu Gelderland 4 | lat: 51.98234939575195 5 | long: 5.899249076843262 6 | 7 | # translations for titles 8 | meetings_title: Meetings 9 | contacts_title: Contacts 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Contact us if you want to participate in a do-it-yourself workshop or want more information about local air quality. 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: Marieke Gorkink 20 | url: mailto:m.gorkink@natuurenmilieugelderland.nl 21 | 22 | # leave empty if non-existent 23 | # Twitter and Telegram: account name without @ sign 24 | website: https://www.natuurenmilieugelderland.nl/schoneluchtarnhem 25 | facebook: 26 | facebook_group: 27 | facebook_page: 28 | github: 29 | gitlab: 30 | instagram: 31 | mastodon: 32 | meetup: 33 | telegram: 34 | telegram_group: 35 | twitter: 36 | -------------------------------------------------------------------------------- /_labs/berlin.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: berlin 3 | title: Motionlab Berlin 4 | lat: 52.4937782 5 | long: 13.4483546 6 | 7 | # translations for titles 8 | meetings_title: Meetings 9 | contacts_title: Kontakte 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Every 2. Monday in a month E-Meetup 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: motionlab 20 | url: mailto:info@motionlab.berlin 21 | 22 | # leave empty if non-existent 23 | # Twitter and Telegram: account name without @ sign 24 | website: https://motionlab.berlin 25 | facebook: 26 | facebook_group: 27 | facebook_page: https://www.facebook.com/motionlabberlin/ 28 | github: 29 | gitlab: 30 | instagram: https://www.instagram.com/motionlabberlin/ 31 | linkedin: https://www.linkedin.com/company/motionlab-berlin 32 | mastodon: 33 | meetup: https://www.meetup.com/motionlab/events/fnstjrybcjblb/ 34 | telegram: 35 | telegram_group: 36 | twitter: 37 | -------------------------------------------------------------------------------- /_labs/bourgoinj.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: bourgoinj 3 | title: Collectif Nord Is'Air 4 | lat: 45.587754 5 | long: 5.276368 6 | 7 | meetings_title: Rencontres 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: Rencontres mensuelles au local UFC-Que Choisir de Bourgoin-Jallieu (27, rue Bovier-Lapierre 38300 Bourgoin-Jallieu) 12 | 13 | contacts: 14 | - name: Bruno Jacquet 15 | url: mailto:contactnordisair@gmail.com 16 | -------------------------------------------------------------------------------- /_labs/bratislava.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: bratislava 3 | title: Cyklokoalícia Bratislava 4 | lat: 48.1461510 5 | long: 17.0983737 6 | 7 | contacts_title: Kontakt 8 | 9 | contacts: 10 | - name: info@cyklokoalicia.sk 11 | url: mailto:info@cyklokoalicia.sk 12 | - name: Kontaktný formulár 13 | url: https://cyklokoalicia.sk/kontakt/ 14 | 15 | website: https://vzduch.cyklokoalicia.sk/public/ 16 | -------------------------------------------------------------------------------- /_labs/brussels.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: civic_lab_brussels 3 | title: Civic Lab Brussels 4 | lat: 50.85563 5 | long: 4.32116 6 | 7 | meetings: 8 | - text: first tuesday of the month 9 | 10 | contacts: 11 | - name: Rik Drabs 12 | url: mailto:influencair2017@gmail.com 13 | 14 | website: https://www.meetup.com/nl-NL/civic-lab-brussels/ 15 | 16 | -------------------------------------------------------------------------------- /_labs/brussels2.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: brussels_les_chercheurs_d\'air 3 | title: Les chercheurs d'air 4 | lat: 50.871701 5 | long: 4.331662 6 | 7 | meetings: 8 | - text: weekly in Brussels 9 | 10 | contacts: 11 | - name: Pierre Dornier 12 | url: mailto:pierre@leschercheursdair.org 13 | 14 | website: https://www.leschercheursdair.be/ 15 | 16 | facebook_page: leschercheursdairbruxelles 17 | twitter: chercheursdair_ 18 | -------------------------------------------------------------------------------- /_labs/budapest.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: szallopor_budapest 3 | title: Segítünk megépíteni a saját mérőműszered 4 | lat: 47.5151 5 | long: 19.0359 6 | 7 | meetings: 8 | - text: as announced on the website below 9 | 10 | contacts: 11 | - name: Koller Csaba 12 | url: mailto:csaba.koller@enum.hu 13 | 14 | website: http://levego.enum.hu/ 15 | -------------------------------------------------------------------------------- /_labs/cape-town.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: cape-town 3 | title: Air Cape Town 4 | lat: -33.976499 5 | long: 18.466334 6 | 7 | meetings_title: Meetings 8 | contacts_title: Contacts 9 | 10 | meetings: 11 | - text: Every 2nd Thursday at the Codebridge Newlands Community Evenings 12 | 13 | contacts: 14 | - name: Reuben Honigwachs 15 | url: mailto:reuben@air-cape-town.org.za 16 | 17 | website: http://air-cape-town.org.za/ 18 | 19 | twitter: codebridge 20 | meetup: Codebridge 21 | -------------------------------------------------------------------------------- /_labs/cardiff.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: cardiff 3 | title: Cardiff Labs 4 | lat: 51.50187 5 | long: -3.19316 6 | 7 | # translations for titles 8 | meetings_title: Meetings 9 | contacts_title: Contact 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Covid inhibited OpenAir.WALES 14 | 15 | contacts: 16 | - name: dicktonyboy 17 | url: mailto:richard@wenner.org 18 | 19 | # leave empty if non-existent 20 | # Twitter and Telegram: account name without @ sign 21 | website: http://openair.wales 22 | facebook: 23 | facebook_group: 24 | facebook_page: 25 | github: 26 | gitlab: 27 | instagram: 28 | mastodon: 29 | meetup: 30 | telegram: 31 | telegram_group: 32 | twitter: 33 | -------------------------------------------------------------------------------- /_labs/centraline_dal_basso.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: centraline_dal_basso 3 | title: Centraline dal Basso 4 | lat: 44.796666 5 | long: 10.332272 6 | 7 | meetings_title: Incontri 8 | contacts_title: Contatto 9 | 10 | meetings: 11 | 12 | contacts: 13 | - name: info@centralinedalbasso.org 14 | url: mailto:info@centralinedalbasso.org 15 | 16 | website: http://centralinedalbasso.org/ 17 | 18 | facebook_page: Centralinedalbasso 19 | -------------------------------------------------------------------------------- /_labs/charlottesville.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: charlottesville 3 | title: CCI/librelab 4 | lat: 38.029306 5 | long: -78.476678 6 | 7 | # translations for titles 8 | meetings_title: Meetings 9 | contacts_title: Contact 10 | 11 | meetings: 12 | - text: We have monthly meetings at the CCI on Free and Open Source-based environmental monitoring 13 | - text: You can find more information in our website (https://cci.smartcville.com) 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: Lucas Ames 20 | url: mailto:lucas@smartcville.com 21 | 22 | # leave empty if non-existent 23 | # Twitter and Telegram: account name without @ sign 24 | website: https://cci.smartcville.com 25 | facebook: 26 | facebook_group: 27 | facebook_page: 28 | github: 29 | gitlab: 30 | instagram: 31 | mastodon: 32 | meetup: 33 | telegram: 34 | telegram_group: 35 | twitter: 36 | 37 | -------------------------------------------------------------------------------- /_labs/chartres.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: betamachine 3 | title: BetaMachine HS 4 | lat: 48.4409 5 | long: 1.49305 6 | 7 | meetings_title: Rencontres 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: Le troisième samedi du mois de 14h à 18h au 15 rue Victor Gilbert, à Chartres 12 | 13 | contacts: 14 | - name: Adrien SOISSONS 15 | url: mailto:contact@betamachine.fr 16 | 17 | website: http://betamachine.fr 18 | -------------------------------------------------------------------------------- /_labs/cottbus.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: cottbus 3 | title: Lab Cottbus 4 | lat: 51.76894369 5 | long: 14.32220221 6 | 7 | # translations for titles 8 | meetings_title: Meetings 9 | contacts_title: Kontakte 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | #- text: jeden 2. Dienstag im Monat im shackspace 14 | #- text: jeden 4. Dienstag im Monat in der Stadtbibliothek 15 | #- text: weitere Infos auf GetTogether 16 | 17 | 18 | # multiple contacts possible 19 | # - name: name of contact 20 | # url: email address or url of contact form 21 | contacts: 22 | - name: Christian 23 | url: mailto:christian.hanisch@fablab-cottbus.de 24 | - name: Christopher 25 | url: mailto:c.glossner@fablab-cottbus.de 26 | 27 | # leave empty if non-existent 28 | # Twitter and Telegram: account name without @ sign 29 | -------------------------------------------------------------------------------- /_labs/delft.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: delft 3 | title: Luchtwachters Delft 4 | lat: 52.0085556 5 | long: 4.3542587 6 | 7 | meetings_title: Meetings 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: Interesse om eens langs te komen? Laat het ons weten! 12 | 13 | contacts: 14 | - name: Luchtwachters Delft 15 | url: mailto:luftdaten@luchtwachtersdelft.nl 16 | 17 | website: https://luchtwachtersdelft.nl 18 | 19 | twitter: luchtwachters 20 | -------------------------------------------------------------------------------- /_labs/diemen.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: diemen 3 | title: Daarom Duurzaam Dorp Diemen 4 | lat: 52.3400 5 | long: 4.9620 6 | 7 | meetings_title: Meedoen? 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: Interesse om mee te doen? Stuur een mailtje! 12 | 13 | contacts: 14 | - name: Evert Kuiken 15 | url: mailto:info@evertkuiken.nl 16 | 17 | website: https://www.duurzaamdorpdiemen.nl/p/luchtkwaliteit.html 18 | 19 | twitter: duurzaamdorpdmn 20 | -------------------------------------------------------------------------------- /_labs/dnipro.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: dnipro 3 | title: Save Dnipro 4 | lat: 48.464376 5 | long: 35.045924 6 | 7 | meetings_title: Зустрічі 8 | contacts_title: Контакти 9 | 10 | meetings: 11 | - text: Декілька разів на півріччя ми проводимо зустрічі стосовно громадського моніторингу атмосферного повітря. Але якщо ви бажаєте отримати допомогу або консультацію раніше, то напишіть нам на електрону адресу savednipro@gmail.com або у приватні повідомлення на сторінці Facebook. 12 | - text: Усі зустрічі можна знайти на сторінці у Facebook. 13 | 14 | contacts: 15 | - name: Save Dnipro 16 | url: mailto:savednipro@gmail.com 17 | 18 | website: https://www.savednipro.org/ 19 | 20 | facebook_page: savednipro 21 | twitter: savednipro 22 | telegram: savednipro 23 | -------------------------------------------------------------------------------- /_labs/eastbourne.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: Eastbourne 3 | title: Clean Air Eastbourne 4 | lat: 50.7822998 5 | long: 0.2532976 6 | 7 | meetings_title: Meetings 8 | contacts_title: Contacts 9 | 10 | meetings: 11 | - text: arranged when necessary, usually a Sunday evening in a pub. 12 | 13 | contacts: 14 | - name: Robert Price 15 | url: mailto:hello@eastbourneair.com 16 | 17 | website: https://eastbourneair.com/ 18 | 19 | facebook_page: eastbourneair 20 | twitter: eastbourneair 21 | -------------------------------------------------------------------------------- /_labs/foix.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: foix 3 | title: Foix en commun.e 4 | lat: 42.965079 5 | long: 1.6076186 6 | 7 | meetings_title: Rencontres 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: Lieu de rencontre suivant les ateliers et événements. 12 | - text: Fréquence des rencontres suivant les événements. 13 | 14 | contacts: 15 | - name: Association Foix en Commun.e 16 | url: mailto:foixencommune@gmail.com 17 | 18 | 19 | website: http://foixencommune.fr/ 20 | facebook: 21 | facebook_group: 22 | facebook_page: foixencommune/ 23 | github: 24 | gitlab: 25 | instagram: 26 | mastodon: 27 | meetup: 28 | telegram: 29 | telegram_group: 30 | twitter: 31 | signal: https://signal.group/#CjQKIMotO8e81J1oxGdKnUJWFEcFgAWzcQ9qT5rbdGqAITW7EhD_g_YiZdEkGcXRaw2oPzvR 32 | -------------------------------------------------------------------------------- /_labs/gloucester.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: glosair 3 | title: Gloucester Clean Air 4 | lat: 51.865338 5 | long: -2.245813 6 | 7 | meetings_title: Meetings 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: To be arranged please email 12 | 13 | contacts: 14 | - name: info@glosair.co.uk 15 | url: mailto:info@glosair.co.uk 16 | 17 | website: https://glosair.co.uk 18 | 19 | twitter: airglos 20 | -------------------------------------------------------------------------------- /_labs/grenoble.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: grenoble 3 | title: Enairgie-commune 4 | lat: 45.187582 5 | long: 5.704925 6 | 7 | meetings_title: Rencontres 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: Permanence mensuelle relancée en mars 2022, le dernier lundi du mois de 18 heures à 20 heures à la turbine.coop. 12 | - text: Ateliers de montage au fablab la Casemate à venir. 13 | 14 | contacts: 15 | - name: Enairgie-commune 16 | url: mailto:contact@enairgie-commune.fr 17 | 18 | website: 19 | facebook: enairgie.commune.9 20 | facebook_group: 21 | facebook_page: 22 | github: 23 | gitlab: 24 | instagram: 25 | mastodon: 26 | meetup: 27 | telegram: 28 | telegram_group: 29 | twitter: 30 | -------------------------------------------------------------------------------- /_labs/groningen_onze_lucht.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: Groningen 3 | title: Onze Lucht 4 | lat: 53.214 5 | long: 6.56019 6 | 7 | meetings_title: Meetings 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: Interesse om eens langs te komen? Laat het ons weten! 12 | 13 | contacts: 14 | - name: Onze Lucht 15 | url: mailto:t.a.jurriens@rug.nl 16 | 17 | website: https://onzelucht.nl 18 | twitter: onzelucht 19 | -------------------------------------------------------------------------------- /_labs/krasnodar.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: krasnodar 3 | title: Узнайте чем дышите 4 | lat: 45.02757 5 | long: 38.96694 6 | 7 | meetings_title: Встречи 8 | contacts_title: Свяжитесь с нами 9 | 10 | meetings: 11 | - text: Поможем собрать и разместить свой датчик твердых частиц для мониторинга воздуха. 12 | - text: Напишите нам на email! 13 | - text: Анонсы планируемых встреч будут размещены на наших ресурсах в Facebook. Следитe 14 | - text: за обновлениями! Не забудьте записаться заранее! 15 | 16 | contacts: 17 | - name: Дмитрий Шевченко 18 | url: mailto:ciaec.off@gmail.com 19 | 20 | facebook_group: 2128913607255253 21 | website: https://ciaec.ru/social-campaign/uznayte-chem-dyshite/ 22 | -------------------------------------------------------------------------------- /_labs/lansingerland.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: lansingerland 3 | title: Burgermeetnet Lansingerland 4 | lat: 51.994556 5 | long: 4.489500 6 | 7 | # translations for titles 8 | meetings_title: Meetings 9 | contacts_title: Contact 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Het Burgermeetnet Lansingerland (BML) meet de concentratie fijnstof in de lucht en brengt de luchtkwaliteit in kaart 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: Martin Liefting 20 | url: mailto:martin.liefting@gmail.com 21 | - name: Eddy Cornelisse 22 | url: mailto:eddy.cornelisse@gmail.com 23 | 24 | # leave empty if non-existent 25 | # Twitter and Telegram: account name without @ sign 26 | website: http://burgermeetnetlansingerland.nl/ 27 | facebook: 28 | facebook_group: 29 | facebook_page: BurgerMeetnetLansingerland 30 | github: 31 | gitlab: 32 | instagram: 33 | mastodon: 34 | meetup: 35 | telegram: 36 | telegram_group: 37 | twitter: 38 | linkedin: https://www.linkedin.com/groups/12475407/ 39 | 40 | -------------------------------------------------------------------------------- /_labs/le-havre.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: le havre 3 | title: LH3D FabLab Le Havre 4 | lat: 49.44546775260442 5 | long: 0.09261490000 6 | 7 | # translations for titles 8 | meetings_title: Rencontres 9 | contacts_title: Contacts 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Ateliers de réalisation de capteurs pour la mesure de la Qualité de l'Air, contactez nous. 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: LH3D FabLab 20 | url: mailto:contact@lh3d.fr 21 | 22 | # leave empty if non-existent 23 | # Twitter and Telegram: account name without @ sign 24 | website: https://www.lh3d.fr 25 | facebook: LH3Dfablab 26 | facebook_group: 27 | facebook_page: 28 | github: 29 | gitlab: 30 | instagram: 31 | mastodon: 32 | meetup: 33 | telegram: 34 | telegram_group: 35 | twitter: lh3dfablab 36 | -------------------------------------------------------------------------------- /_labs/lille.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: lille 3 | title: Respire Hauts-de-France 4 | lat: 50.63112817273642 5 | long: 3.05642843310259 6 | 7 | # translations for titles 8 | meetings_title: Rencontres 9 | contacts_title: Contacts 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Venez nous rencontrer ! 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: Contact 20 | url: mailto:hdf@respire-asso.org 21 | 22 | # leave empty if non-existent 23 | # Twitter and Telegram: account name without @ sign 24 | website: https://www.respire-asso.org/ 25 | facebook: 26 | facebook_group: 27 | facebook_page: AssociationRespire 28 | github: 29 | gitlab: 30 | instagram: 31 | mastodon: 32 | meetup: 33 | telegram: 34 | telegram_group: 35 | twitter: respireasso 36 | -------------------------------------------------------------------------------- /_labs/madrid.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: madrid 3 | title: AAVV Barrio Moscardó 4 | lat: 40.387421 5 | long: -3.709670 6 | 7 | meetings_title: Meetings 8 | contacts_title: Contacto 9 | 10 | meetings: 11 | - text: ¡Hola! Somos la AAVV Barrio Moscardó del distrito de Usera. ¿Has oído hablar de Moscaire? Se trata del proyecto que hemos impulsado desde nuestro colectivo vecinal con el objetivo de crear una herramienta local que mida, en tiempo real, la calidad del aire de nuestros barrios. Si quieres formar parte de nuestra comunidad e instalar tu propio sensor, nosotros te podemos asesorar y ayudarte en ello. 12 | - text: Ponte en contacto con nosotros a través de: https://barriomoscardo.com/ 13 | 14 | contacts: 15 | - name: AAVV Barrio Moscardó 16 | url: mailto:asovecimosca@hotmail.com 17 | 18 | website: http://moscaire.es 19 | -------------------------------------------------------------------------------- /_labs/malaga.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: malaga 3 | title: Málaga-LAB 4 | lat: 36.691196 5 | long: -4.448617 6 | 7 | meetings_title: Meetings 8 | contacts_title: Contacto 9 | 10 | meetings: 11 | - text: En Malaga-LAB podemos ayudarte a montar tu propio sensor de Partículas y animarte a que te unas a este movimiento de ciencia ciudadana para conocer en tiempo real la calidad del aire de nuestra ciudad. 12 | - text: Para concretrar cita envianos un correo al contacto. 13 | 14 | contacts: 15 | - name: Carlos Guevara 16 | url: mailto:malaga-lab@protommail.com 17 | 18 | website: https://malaga-lab.com 19 | -------------------------------------------------------------------------------- /_labs/mendoza.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: mendoza 3 | title: Lab Instrumental (FIng - UNCuyo) 4 | lat: -32.87866200000 5 | long: -68.87673500000 6 | 7 | meetings_title: Encuentro 8 | contacts_title: Contacto 9 | 10 | meetings: 11 | - text: En el Laboratorio de Análisis Instrumental de la Facultad de Ingenieria te podemos ayudar a construir tu propio sensor 12 | - text: podes ponerte en contacto con nosotros a traves de nuestro correo 13 | 14 | contacts: 15 | - name: Nano 16 | url: mailto:ferhcastro@gmail.com 17 | 18 | website: https://gitlab.com/nanocastro/monitoreoabierto/ 19 | -------------------------------------------------------------------------------- /_labs/minsk.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: minsk 3 | title: AirMQ - узнай, чем ты дышишь 4 | lat: 53.939409 5 | long: 27.601421 6 | 7 | # translations for titles 8 | meetings_title: События и встречи 9 | contacts_title: Контакты 10 | 11 | meetings: 12 | - text: "Встречи и вебинары онлайн: следите за анонсами на сайте, в Facebook и Telegram" 13 | 14 | # multiple contacts possible 15 | # - name: name of contact 16 | # url: email address or url of contact form 17 | contacts: 18 | - name: Как связаться с нами 19 | url: https://airmq.by/#contact 20 | 21 | # leave empty if non-existent 22 | # Twitter and Telegram: account name without @ sign 23 | website: https://airmq.by 24 | facebook_group: AirMQ.Belarus 25 | facebook_page: 26 | github: AirMQ 27 | gitlab: 28 | instagram: 29 | meetup: 30 | telegram: airmq 31 | telegram_group: 32 | twitter: 33 | -------------------------------------------------------------------------------- /_labs/miskolc.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: air_quality_miskolc 3 | title: Air Quality Miskolc 4 | lat: 48.1066 5 | long: 20.7683 6 | 7 | meetings: 8 | - text: Contact on website 9 | 10 | contacts: 11 | - name: Ludnik Levente 12 | url: mailto:levente@ludnik.net 13 | 14 | website: https://ludnik.net/air.html 15 | -------------------------------------------------------------------------------- /_labs/montorio_veronese.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: montorio_veronese 3 | title: Associazione Montorioveronese.it 4 | lat: 45.457801 5 | long: 11.062921 6 | 7 | meetings_title: Incontri 8 | contacts_title: Contatto 9 | 10 | meetings: 11 | 12 | contacts: 13 | - name: info@montorioveronese.it 14 | url: mailto:info@montorioveronese.it 15 | 16 | website: http://www.montorioveronese.it 17 | -------------------------------------------------------------------------------- /_labs/moscow.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: moscow 3 | title: breathe.moscow 4 | lat: 55.68795 5 | long: 37.57484 6 | 7 | meetings_title: Мастерские 8 | contacts_title: Контакты 9 | 10 | meetings: 11 | - text: Ищите информацию о мастерских по сборке сенсоров на сайте проекта или в каналах телеграмма. 12 | - text: Внимание! Обязательно запишитесь на мастерскую, чтобы мы знали какое число человек ожидать! 13 | 14 | contacts: 15 | - name: Инфоканал в телеграмм: @breathemoscow 16 | url: https://t.me/breathemoscow 17 | - name: Группа в телеграмм: https://t.me/breathemos 18 | url: https://t.me/breathemos 19 | - name: Facebook: https://fb.com/groups/breathemoscow/ 20 | url: https://fb.com/groups/breathemoscow/ 21 | 22 | website: https://breathe.moscow/ 23 | facebook_group: breathemoscow 24 | telegram: breathemoscow 25 | telegram_group: breathemos 26 | -------------------------------------------------------------------------------- /_labs/offtopic_lab.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: offtopic_lab 3 | title: Laboratorio politico OffTopic 4 | lat: 45.486523 5 | long: 9.189885 6 | 7 | meetings_title: Incontri 8 | contacts_title: Contatti 9 | 10 | meetings: 11 | - text: Ogni martedì collettivo. Per incontri specifici su centraline controllare il sito. 12 | 13 | contacts: 14 | - name: offtopic@autoproduzioni.net 15 | url: mailto:offtopic@autoproduzioni.net 16 | 17 | website: https://offtopiclab.org 18 | -------------------------------------------------------------------------------- /_labs/paris.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: paris 3 | title: Respire 4 | lat: 48.862900386894694 5 | long: 2.341460584802579 6 | 7 | # translations for titles 8 | meetings_title: Rencontres 9 | contacts_title: Contacts 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Venez nous rencontrer ! 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: Contact 20 | url: mailto:contact@respire-asso.org 21 | 22 | # leave empty if non-existent 23 | # Twitter and Telegram: account name without @ sign 24 | website: https://www.respire-asso.org/ 25 | facebook: 26 | facebook_group: 27 | facebook_page: AssociationRespire 28 | github: 29 | gitlab: 30 | instagram: 31 | mastodon: 32 | meetup: 33 | telegram: 34 | telegram_group: 35 | twitter: respireasso 36 | -------------------------------------------------------------------------------- /_labs/parma.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: parma 3 | title: Tecnologia Civica 4 | lat: 44.715478 5 | long: 10.308492 6 | 7 | # translations for titles 8 | meetings_title: Incontri 9 | contacts_title: Contatto 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: T.C. 20 | url: mailto:tecnologia.civica@protonmail.com 21 | 22 | # leave empty if non-existent 23 | # Twitter and Telegram: account name without @ sign 24 | website: 25 | facebook: 26 | facebook_group: 27 | facebook_page: 28 | github: 29 | gitlab: 30 | instagram: 31 | mastodon: https://mastodon.uno/@Tecnologia_Civica 32 | meetup: 33 | telegram: 34 | telegram_group: 35 | twitter: TecnologiaCivi1 36 | -------------------------------------------------------------------------------- /_labs/prague.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: prague 3 | title: Vytvoř si vlastní senzor! 4 | lat: 50.077644 5 | long: 14.444882 6 | 7 | # translations for titles 8 | meetings_title: Schůzky 9 | contacts_title: Kontakty 10 | 11 | meetings: 12 | - text: Máte zájem přijít? Dejte nám vědět! 13 | 14 | # multiple contacts possible 15 | # - name: name of contact 16 | # url: email address or url of contact form 17 | contacts: 18 | - name: Michael 19 | url: mailto:info@senzorvzduchu.cz 20 | 21 | # leave empty if non-existent 22 | # Twitter and Telegram: account name without @ sign 23 | website: https://senzorvzduchu.cz 24 | facebook: 25 | facebook_group: 26 | facebook_page: 27 | github: 28 | gitlab: 29 | instagram: 30 | mastodon: 31 | meetup: 32 | telegram: 33 | telegram_group: 34 | twitter: 35 | -------------------------------------------------------------------------------- /_labs/rennes1.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: rennes 3 | title: LabFab de Rennes 4 | lat: 48.104917 5 | long: -1.676223 6 | 7 | meetings_title: Rencontres 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: Lieu de rencontre suivant les ateliers et événements. Les ateliers les plus réguliers sont à la Maison des Associations de Rennes, 6 cours des Alliés, 35000 Rennes 12 | - text: Fréquence des rencontres suivant les événements. Nous avons des temps d’accueil autour du Luftdaten tous les premiers vendredi midi du mois, de 12h30 à 13h30. 13 | 14 | contacts: 15 | - name: Association LabFab 16 | url: mailto:contact@labfab.fr 17 | 18 | website: http://www.labfab.fr/ 19 | -------------------------------------------------------------------------------- /_labs/rennes2.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: rennes2 3 | title: Capteurs Citoyens & Environnement 4 | lat: 48.105196 5 | long: -1.674618 6 | 7 | meetings_title: Rencontres 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: Chaque premier jeudi du mois à 17.30 aux Champs libres dans le cadre des rendez-vous 4C. 12 | 13 | contacts: 14 | - name: Capteurs Citoyens & Environnement 15 | url: mailto:luftdaten@mce-info.org 16 | 17 | website: https://twitter.com/ccqa_rennes 18 | 19 | twitter: ccqa_rennes 20 | -------------------------------------------------------------------------------- /_labs/rouen.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: rouen 3 | title: Rouen Respire 4 | lat: 49.44546775260442 5 | long: 1.0693562337666467 6 | 7 | # translations for titles 8 | meetings_title: Rencontres 9 | contacts_title: Contacts 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Bientôt... 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: Rouen Respire 20 | url: mailto:president@rouenrespire.fr 21 | 22 | # leave empty if non-existent 23 | # Twitter and Telegram: account name without @ sign 24 | website: https://rouenrespire.fr/ 25 | facebook: 26 | facebook_group: 27 | facebook_page: 28 | github: 29 | gitlab: 30 | instagram: 31 | mastodon: 32 | meetup: 33 | telegram: 34 | telegram_group: 35 | twitter: RouenRespire 36 | -------------------------------------------------------------------------------- /_labs/saint-maur36.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: lelabomotive 3 | title: Le Labo-Motive 4 | lat: 46.80224 5 | long: 1.62836 6 | 7 | meetings_title: Renseignements 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: "Le Labo-Motive est en mesure de vous aider à mettre en œuvre votre sonde Luftdaten." 12 | - text: "Nous intégrons en plus de la sonde d'origine un circuit de mise off/on chaque 24h." 13 | - text: "Le jeudi soir de 18h à 22h et le samedi de 10h à 18h." 14 | - text: "http://www.lelabomotive.org/#calendrier pour vérifier si nous sommes ouverts" 15 | 16 | contacts: 17 | - name: Jean-Christophe LEGER 18 | url: mailto:jean.christophe.l@lelabomotive.org 19 | 20 | website: http://lelabomotive.org 21 | -------------------------------------------------------------------------------- /_labs/saint-petersburg.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: saint-petersburg 3 | title: Дыши, любимый город! 4 | lat: 59.938951 5 | long: 30.315635 6 | 7 | # translations for titles 8 | meetings_title: Встречи 9 | contacts_title: Контакты 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Информация о встречах и мастерских по сборке датчиков размещается в телеграм-канале https://t.me/SPbBreath 14 | - text: Поможем собрать и разместить свой датчик твердых частиц для мониторинга воздуха. 15 | 16 | # multiple contacts possible 17 | # - name: name of contact 18 | # url: email address or url of contact form 19 | contacts: 20 | - name: Роман 21 | url: mailto:contact@citizenscience.ru 22 | 23 | # leave empty if non-existent 24 | # Twitter and Telegram: account name without @ sign 25 | website: 26 | facebook: 27 | facebook_group: 28 | facebook_page: 29 | github: 30 | gitlab: 31 | instagram: 32 | mastodon: 33 | meetup: 34 | telegram: SPbBreath 35 | telegram_group: breathespb 36 | twitter: 37 | 38 | -------------------------------------------------------------------------------- /_labs/sheffield.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: sheffield 3 | title: Clean Air for Sheffield 4 | lat: 53.382038 5 | long: -1.478898 6 | 7 | meetings_title: Meetings 8 | contacts_title: Contact 9 | 10 | contacts: 11 | - name: Graham Turnbull 12 | url: mailto:graham.turnbull@mac.com 13 | 14 | - name: Rohit Chakraborty 15 | url: mailto:rohit.chakraborty@sheffield.ac.uk 16 | 17 | website: https://facebook.com/groups/CleanAirSheffield/ 18 | 19 | facebook_group: CleanAirSheffield 20 | -------------------------------------------------------------------------------- /_labs/sofia.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: sofia 3 | title: AirBG.info 4 | lat: 42.625936 5 | long: 23.377578 6 | 7 | meetings_title: Meetings 8 | contacts_title: Contacts 9 | 10 | meetings: 11 | - text: Every month on 2-nd Thursday on request 12 | 13 | contacts: 14 | - name: hq@airbg.info 15 | url: mailto:hq@airbg.info 16 | 17 | website: https://airbg.info 18 | 19 | facebook_page: airbg.info 20 | -------------------------------------------------------------------------------- /_labs/sterlitamak.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: sterlitamak 3 | title: Стерлитамак, Дыши! 4 | lat: 53.6220285 5 | long: 55.9206984 6 | 7 | meetings_title: Встречи 8 | contacts_title: Контакты 9 | 10 | meetings: 11 | - text: Информация о воздухе, анонсы переприятий и данные по датчикам в телеграм @vozduh_str_slv и на сайте. 12 | - text: Поможем собрать и разместить свой датчик твердых частиц для мониторинга воздуха. 13 | 14 | contacts: 15 | - name: Стерлитамак, Дыши! 16 | url: mailto:sterlitamakdishi@mail.ru 17 | - name: Rustam 18 | url: mailto:info@bashair.ru 19 | 20 | website: https://bashair.ru 21 | facebook: 22 | facebook_group: 23 | facebook_page: 24 | github: Bash-Air 25 | gitlab: 26 | instagram: za_vozdyh_str 27 | mastodon: 28 | meetup: 29 | telegram: vozduh_str_slv 30 | telegram_group: bashair102 31 | twitter: 32 | -------------------------------------------------------------------------------- /_labs/stuttgart.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: stuttgart 3 | title: Lab Stuttgart 4 | lat: 48.776540 5 | long: 9.173700 6 | 7 | # translations for titles 8 | meetings_title: Meetings 9 | contacts_title: Kontakte 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: jeden 2. Dienstag im Monat im shackspace 14 | - text: jeden 4. Dienstag im Monat in der Stadtbibliothek 15 | - text: weitere Infos auf GetTogether 16 | 17 | # multiple contacts possible 18 | # - name: name of contact 19 | # url: email address or url of contact form 20 | contacts: 21 | - name: Lukas 22 | url: mailto:lukas@sensor.community 23 | - name: Rajko Zschiegner 24 | url: mailto:rajko@sensor.community 25 | 26 | # leave empty if non-existent 27 | # Twitter and Telegram: account name without @ sign 28 | website: https://sensor.community 29 | facebook: 30 | facebook_group: 31 | facebook_page: 32 | github: opendata-stuttgart 33 | gitlab: 34 | instagram: 35 | mastodon: https://fosstodon.org/@SensorCommunity 36 | meetup: 37 | telegram: 38 | telegram_group: 39 | twitter: SensorCommunity 40 | 41 | -------------------------------------------------------------------------------- /_labs/toulouse.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: toulouse 3 | title: Appel d'air / Association Reflets - CPIE Terres Toulousaines 4 | lat: 43.610157 5 | long: 1.449872 6 | 7 | meetings_title: Rencontres 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: Des réunions occasionnelles ont lieu dans des salles de réunions en ville, tous les deux mois environ. Des ateliers sont organisés au local de l'association ou sur des stands lors d'évènements particuliers, une fois par mois environ. 12 | 13 | contacts: 14 | - name: Appel d'air 15 | url: mailto:appeldair@cpieterrestoulousaines.org 16 | 17 | website: http://cpieterrestoulousaines.org/ 18 | -------------------------------------------------------------------------------- /_labs/trento.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: trento 3 | title: Lab CambiamoLaStrada @ Fixxati 4 | lat: 46.06901 5 | long: 11.11331 6 | 7 | # translations for titles 8 | meetings_title: Incontri 9 | contacts_title: Contatto 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Venerdì, dalle 18:30 alle 19:30. 14 | Su prenotazione per organizzarci meglio. Vogliamo diffondere il progetto a Trento e dintorni e siamo a disposizione per aiutare tutti gli interessati. Scrivere a: 15 | centraline@cambiamolastrada.it 16 | 17 | # multiple contacts possible 18 | # - name: name of contact 19 | # url: email address or url of contact form 20 | contacts: 21 | - name: Centraline 22 | url: mailto:centraline@cambiamolastrada.it 23 | 24 | # leave empty if non-existent 25 | # Twitter and Telegram: account name without @ sign 26 | website: https://cambiamolastrada.it/centraline 27 | facebook: 28 | facebook_group: 29 | facebook_page: 30 | github: 31 | gitlab: 32 | instagram: 33 | mastodon: 34 | meetup: 35 | telegram: 36 | telegram_group: 37 | twitter: 38 | -------------------------------------------------------------------------------- /_labs/treviso.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: GRA Grande Raccordo Ambientale 3 | title: GRA Grande Raccordo Ambientale 4 | lat: 45.67196 5 | long: 12.23693 6 | 7 | meetings_title: Incontri 8 | contacts_title: Contatti 9 | 10 | meetings: 11 | - text: Forniamo consigli e aiuto per l’acquisto, il montaggio e il settaggio dei sensori e altre informazioni su centraline e inquinamento atmosferico, a tutti coloro che sono interessati, previa richiesta di appuntamento 12 | 13 | contacts: 14 | - name: gracentraline@gmail.com 15 | url: mailto:gracentraline@gmail.com 16 | - name: granderaccordoambientale@gmail.com 17 | url: mailto:granderaccordoambientale@gmail.com 18 | 19 | facebook_page: granderaccordoambientale 20 | -------------------------------------------------------------------------------- /_labs/trieste.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: Circolo Verdeazzurro Legambiente Trieste 3 | title: Circolo Verdeazzurro Legambiente Trieste 4 | lat: 45.65318 5 | long: 13.77975 6 | 7 | meetings_title: Incontri 8 | contacts_title: Contatti 9 | 10 | meetings: 11 | - text: Forniamo consigli e aiuto per il montaggio a tutti coloro che sono interessati, previa richiesta di appuntamento 12 | 13 | contacts: 14 | - name: info@legambientetrieste.it 15 | url: mailto:info@legambientetrieste.it 16 | 17 | website: https://www.legambientetrieste.it/ 18 | 19 | facebook_page: https://it-it.facebook.com/legambiente.trieste/ 20 | -------------------------------------------------------------------------------- /_labs/valenciennes.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: Valenciennes 3 | title: De l'air !!! 4 | lat: 50.35571945493 5 | long: 3.52591931820 6 | 7 | meetings_title: Rencontres 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: 3e jeudi de chaque mois à la Maison de Quartier Centre Ville de Valenciennes, 10 Rue des Ursulines, 59300 Valenciennes 12 | 13 | contacts: 14 | - name: Pierrick 15 | url: mailto:delair@mailo.com 16 | 17 | website: https://sensor.community/fr/ 18 | facebook_group: 1295830487278287/ 19 | -------------------------------------------------------------------------------- /_labs/vannes.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: vannes 3 | title: MakerSpace56 4 | lat: 47.650490 5 | long: -2.781330 6 | 7 | # translations for titles 8 | meetings_title: Rencontres 9 | contacts_title: Contacts 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Venez nous rencontrer lors des mercredis OpenLab (selon agenda Prochains rendez-vous) 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: MakerSpace56 20 | url: mailto:contact@makerspace56.org 21 | 22 | # leave empty if non-existent 23 | # Twitter and Telegram: account name without @ sign 24 | website: https://makerspace56.org 25 | facebook: 26 | facebook_group: 27 | facebook_page: 28 | github: Makerspace56 29 | gitlab: 30 | instagram: 31 | mastodon: 32 | meetup: 33 | telegram: 34 | telegram_group: 35 | twitter: makerspace56 36 | -------------------------------------------------------------------------------- /_labs/verona.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: comitato_di_verona_sud 3 | title: Comitato di Verona Sud 4 | lat: 45.4134 5 | long: 10.9793 6 | 7 | meetings_title: Incontri 8 | contacts_title: Contatti 9 | 10 | meetings: 11 | - text: Ogni mercoledì ci riuniamo per parlare di argomenti vari. 12 | 13 | contacts: 14 | - name: comitatovrsud@gmail.com 15 | url: mailto:comitatovrsud@gmail.com 16 | 17 | website: https://www.comitatoveronasud.it 18 | 19 | facebook_page: Comitatovrsud 20 | -------------------------------------------------------------------------------- /_labs/vichy.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: vichy 3 | title: Nous pouvons vous aider à monter votre détecteur (à Vichy ou n'importe où via internet) 4 | lat: 46.12696 5 | long: 3.430028 6 | 7 | meetings_title: Aide locale ou à distance (FR/EN) 8 | contacts_title: Contact 9 | 10 | meetings: 11 | - text: On peut se rencontrer à Vichy ou nous pouvons vous aider par email/téléphone/vidéoconférence. 12 | - text: If you speak English, we can also help you. 13 | 14 | contacts: 15 | - name: Vichy Luftdaten 16 | url: mailto:zalpeg@gmail.com 17 | 18 | website: 19 | -------------------------------------------------------------------------------- /_labs/warsaw.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: Warsaw 3 | title: Koduj dla Polski 4 | lat: 52.237049 5 | long: 21.017532 6 | 7 | meetings_title: Warsztaty 8 | contacts_title: Kontakt 9 | 10 | meetings: 11 | - text: W Polsce czujniki Sensor.community (Luftdaten), promowane są przez partnerstwo składające się z Koduj dla Polski (Fundacja ePaństwo), Warszawskiego Alarmu Smogowego, dostawcy sprzętu Nettigo oraz aktywistek i aktywistów z całej Polski.
12 | - text: Informacja o warsztatach Fanpage Koduj dla Polski 13 | - text: Dyskusja o projekcie Forum Koduj dla Polski 14 | - text: Zestaw dla bardziej zaawansowanych Nettigo Air Monitor 15 | - text: Najlepsza aplikacja do sprawdzania smogu w Polsce Kanarek App 16 | 17 | contacts: 18 | - name: luftdaten@kodujdlapolski.pl 19 | url: mailto:luftdaten@kodujdlapolski.pl 20 | 21 | website: http://luftdaten.org.pl 22 | 23 | facebook_page: KodujDlaPolski 24 | -------------------------------------------------------------------------------- /_labs/zeist.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: zeist 3 | title: SMAL Zeist 4 | lat: 52.0823587 5 | long: 5.2390307 6 | 7 | # translations for titles 8 | meetings_title: Meetings 9 | contacts_title: Contact 10 | 11 | meetings: 12 | - text: Wil je meedoen? Stuur dan even een berichtje. 13 | 14 | contacts: 15 | - name: Egon 16 | url: mailto:sensor.community@meten-natuurlijk.nl 17 | - name: Bart 18 | url: mailto:sensor.community@meten-natuurlijk.nl 19 | 20 | website: https://smal.meten-natuurlijk.nl/ 21 | facebook: 22 | facebook_group: 23 | facebook_page: 24 | github: 25 | gitlab: 26 | instagram: 27 | mastodon: 28 | meetup: 29 | telegram: 30 | telegram_group: 31 | twitter: 32 | -------------------------------------------------------------------------------- /_labs/zuidplas.yml: -------------------------------------------------------------------------------- 1 | --- 2 | key: zuidplas 3 | title: Duurzaamheidsplatform Zuidplas 4 | lat: 51.998166 5 | long: 4.620101 6 | 7 | # translations for titles 8 | meetings_title: Meetings 9 | contacts_title: Contact 10 | 11 | # If you need to include a link in this texts, don't forget to add "target='_blank' rel='noreferrer'". Otherwise link will be removed. 12 | meetings: 13 | - text: Wil je meedoen en ook een fijnstof sensor? Laat het ons weten! 14 | 15 | # multiple contacts possible 16 | # - name: name of contact 17 | # url: email address or url of contact form 18 | contacts: 19 | - name: Duurzaamheidsplatform Zuidplas - Lucht 20 | url: mailto:lucht@duurzaamheidsplatform-zuidplas.nl 21 | 22 | # leave empty if non-existent 23 | # Twitter and Telegram: account name without @ sign 24 | website: https://www.duurzaamheidsplatform-zuidplas.nl/Projecten/Luchtkwaliteit/ 25 | facebook: 26 | facebook_group: 27 | facebook_page: 28 | github: 29 | gitlab: 30 | instagram: 31 | mastodon: 32 | meetup: 33 | telegram: 34 | telegram_group: 35 | twitter: DPZuidplas 36 | 37 | -------------------------------------------------------------------------------- /_layouts/json.html: -------------------------------------------------------------------------------- 1 | {{ content }} 2 | -------------------------------------------------------------------------------- /_layouts/map-iframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | {% if page.title %} 8 | {{ page.title }} | {{ site.title }} 9 | {% else %} 10 | {{ site.title }} ~ {{ site.description }} 11 | {% endif %} 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 95 | 96 | 97 | 98 |
99 |
100 | {{ content }} 101 |
102 |
103 | 104 | 105 | -------------------------------------------------------------------------------- /_site/img/lab_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendata-stuttgart/luftdaten-local-labs/d89ee810fa763f3f2bcaa4c3db4ad19eb4d2d555/_site/img/lab_marker.png -------------------------------------------------------------------------------- /_site/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Local Labs and contacts ~ 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 93 | 94 | 95 | 96 |
97 |
98 | 99 |
100 |
101 |
102 | 103 | 108 | 233 | 234 | 235 | 236 |
237 |
238 | 239 | 240 | -------------------------------------------------------------------------------- /img/facebook.svg: -------------------------------------------------------------------------------- 1 | Facebook icon -------------------------------------------------------------------------------- /img/github.svg: -------------------------------------------------------------------------------- 1 | GitHub icon -------------------------------------------------------------------------------- /img/gitlab.svg: -------------------------------------------------------------------------------- 1 | GitLab icon 2 | -------------------------------------------------------------------------------- /img/instagram.svg: -------------------------------------------------------------------------------- 1 | Instagram icon -------------------------------------------------------------------------------- /img/lab_marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendata-stuttgart/luftdaten-local-labs/d89ee810fa763f3f2bcaa4c3db4ad19eb4d2d555/img/lab_marker.png -------------------------------------------------------------------------------- /img/mastodon.svg: -------------------------------------------------------------------------------- 1 | Mastodon icon -------------------------------------------------------------------------------- /img/mattermost.svg: -------------------------------------------------------------------------------- 1 | Mattermost icon -------------------------------------------------------------------------------- /img/meetup.svg: -------------------------------------------------------------------------------- 1 | Meetup icon 2 | -------------------------------------------------------------------------------- /img/signal.svg: -------------------------------------------------------------------------------- 1 | Signal icon -------------------------------------------------------------------------------- /img/telegram.svg: -------------------------------------------------------------------------------- 1 | Telegram icon -------------------------------------------------------------------------------- /img/twitter.svg: -------------------------------------------------------------------------------- 1 | Twitter icon -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | --- 2 | # viewport covering labmap intended for iframes 3 | layout: map-iframe 4 | --- 5 | 6 | 7 |
8 |
9 |
10 | 11 | {% include leaflet.html %} 12 | 13 | -------------------------------------------------------------------------------- /labs.json.html: -------------------------------------------------------------------------------- 1 | --- 2 | # create json file 3 | layout: json 4 | permalink: labs.json 5 | --- 6 | {% include labs.json.html %} 7 | 8 | -------------------------------------------------------------------------------- /search/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendata-stuttgart/luftdaten-local-labs/d89ee810fa763f3f2bcaa4c3db4ad19eb4d2d555/search/back.png -------------------------------------------------------------------------------- /search/leaflet-search-geocoder.js: -------------------------------------------------------------------------------- 1 | 2 | (function (factory) { 3 | if(typeof define === 'function' && define.amd) { 4 | //AMD 5 | define(['leaflet'], factory); 6 | } else if(typeof module !== 'undefined') { 7 | // Node/CommonJS 8 | module.exports = factory(require('leaflet')); 9 | } else { 10 | // Browser globals 11 | if(typeof window.L === 'undefined') 12 | throw 'Leaflet must be loaded first'; 13 | factory(window.L); 14 | } 15 | })(function (L) { 16 | 17 | L.Control.Search.include({ 18 | options: { 19 | geocoder: 'google', 20 | markerLocation: true, 21 | autoType: false, 22 | autoCollapse: true, 23 | minLength: 2 24 | }, 25 | /* onAdd: function (map) { 26 | L.Control.Search.prototype.onAdd.call(this, map); 27 | console.log('Geocoder',this.options) 28 | },*/ 29 | geocoders: { 30 | /* 'google': { 31 | url: "//maps.googleapis.com/maps/api/geocode/json?key={key}&address={text}" 32 | }, 33 | 'nominatim': { 34 | 35 | 36 | format: 'json', 37 | q: query, 38 | }); 39 | 40 | "//nominatim.openstreetmap.org/search?" 41 | }*/ 42 | } 43 | }); 44 | 45 | }); 46 | -------------------------------------------------------------------------------- /search/leaflet-search.css: -------------------------------------------------------------------------------- 1 | 2 | .leaflet-container .leaflet-control-search { 3 | position:relative; 4 | float:left; 5 | background:#fff; 6 | color:#1978cf; 7 | border: 2px solid rgba(0,0,0,0.2); 8 | background-clip: padding-box; 9 | -moz-border-radius: 4px; 10 | -webkit-border-radius: 4px; 11 | border-radius: 4px; 12 | background-color: rgba(255, 255, 255, 0.8); 13 | z-index:1000; 14 | margin-left: 10px; 15 | margin-top: 10px; 16 | } 17 | .leaflet-control-search.search-exp {/*expanded*/ 18 | background: #fff; 19 | border: 2px solid rgba(0,0,0,0.2); 20 | background-clip: padding-box; 21 | } 22 | .leaflet-control-search .search-input { 23 | display:block; 24 | float:left; 25 | background: #fff; 26 | border:1px solid #666; 27 | border-radius:2px; 28 | height:22px; 29 | padding:0 20px 0 2px; 30 | margin:4px 0 4px 4px; 31 | } 32 | .leaflet-control-search.search-load .search-input { 33 | background: url('../search/loader.gif') no-repeat center right #fff; 34 | } 35 | .leaflet-control-search.search-load .search-cancel { 36 | visibility:hidden; 37 | } 38 | .leaflet-control-search .search-cancel { 39 | display:block; 40 | width:22px; 41 | height:22px; 42 | position:absolute; 43 | right:28px; 44 | margin:6px 0; 45 | background: url('../search/search-icon.png') no-repeat 0 -46px; 46 | text-decoration:none; 47 | filter: alpha(opacity=80); 48 | opacity: 0.8; 49 | } 50 | .leaflet-control-search .search-cancel:hover { 51 | filter: alpha(opacity=100); 52 | opacity: 1; 53 | } 54 | .leaflet-control-search .search-cancel span { 55 | display:none;/* comment for cancel button imageless */ 56 | font-size:18px; 57 | line-height:20px; 58 | color:#ccc; 59 | font-weight:bold; 60 | } 61 | .leaflet-control-search .search-cancel:hover span { 62 | color:#aaa; 63 | } 64 | .leaflet-control-search .search-button { 65 | display:block; 66 | float:left; 67 | width:30px; 68 | height:30px; 69 | background: url('../search/search-icon.png') no-repeat 4px 4px #fff; 70 | border-radius:4px; 71 | } 72 | .leaflet-control-search .search-button:hover { 73 | background: url('../search/search-icon.png') no-repeat 4px -20px #fafafa; 74 | } 75 | .leaflet-control-search .search-tooltip { 76 | position:absolute; 77 | top:100%; 78 | left:0; 79 | float:left; 80 | list-style: none; 81 | padding-left: 0; 82 | min-width:120px; 83 | max-height:122px; 84 | box-shadow: 1px 1px 6px rgba(0,0,0,0.4); 85 | background-color: rgba(0, 0, 0, 0.25); 86 | z-index:1010; 87 | overflow-y:auto; 88 | overflow-x:hidden; 89 | cursor: pointer; 90 | } 91 | .leaflet-control-search .search-tip { 92 | margin:2px; 93 | padding:2px 4px; 94 | display:block; 95 | color:black; 96 | background: #eee; 97 | border-radius:.25em; 98 | text-decoration:none; 99 | white-space:nowrap; 100 | vertical-align:center; 101 | } 102 | .leaflet-control-search .search-button:hover { 103 | background-color: #f4f4f4; 104 | } 105 | .leaflet-control-search .search-tip-select, 106 | .leaflet-control-search .search-tip:hover { 107 | background-color: #fff; 108 | } 109 | .leaflet-control-search .search-alert { 110 | cursor:pointer; 111 | clear:both; 112 | font-size:.75em; 113 | margin-bottom:5px; 114 | padding:0 .25em; 115 | color:#e00; 116 | font-weight:bold; 117 | border-radius:.25em; 118 | } 119 | 120 | 121 | -------------------------------------------------------------------------------- /search/leaflet-search.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opendata-stuttgart/luftdaten-local-labs/d89ee810fa763f3f2bcaa4c3db4ad19eb4d2d555/search/leaflet-search.jpg -------------------------------------------------------------------------------- /search/leaflet-search.js: -------------------------------------------------------------------------------- 1 | /* 2 | Name Data passed Description 3 | 4 | Managed Events: 5 | search:locationfound {latlng, title, layer} fired after moved and show markerLocation 6 | search:expanded {} fired after control was expanded 7 | search:collapsed {} fired after control was collapsed 8 | search:cancel {} fired after cancel button clicked 9 | 10 | Public methods: 11 | setLayer() L.LayerGroup() set layer search at runtime 12 | showAlert() 'Text message' show alert message 13 | searchText() 'Text searched' search text by external code 14 | */ 15 | 16 | //TODO implement can do research on multiple sources layers and remote 17 | //TODO history: false, //show latest searches in tooltip 18 | //FIXME option condition problem {autoCollapse: true, markerLocation: true} not show location 19 | //FIXME option condition problem {autoCollapse: false } 20 | // 21 | //TODO here insert function search inputText FIRST in _recordsCache keys and if not find results.. 22 | // run one of callbacks search(sourceData,jsonpUrl or options.layer) and run this.showTooltip 23 | // 24 | //TODO change structure of _recordsCache 25 | // like this: _recordsCache = {"text-key1": {loc:[lat,lng], ..other attributes.. }, {"text-key2": {loc:[lat,lng]}...}, ...} 26 | // in this mode every record can have a free structure of attributes, only 'loc' is required 27 | //TODO important optimization!!! always append data in this._recordsCache 28 | // now _recordsCache content is emptied and replaced with new data founded 29 | // always appending data on _recordsCache give the possibility of caching ajax, jsonp and layersearch! 30 | // 31 | //TODO here insert function search inputText FIRST in _recordsCache keys and if not find results.. 32 | // run one of callbacks search(sourceData,jsonpUrl or options.layer) and run this.showTooltip 33 | // 34 | //TODO change structure of _recordsCache 35 | // like this: _recordsCache = {"text-key1": {loc:[lat,lng], ..other attributes.. }, {"text-key2": {loc:[lat,lng]}...}, ...} 36 | // in this way every record can have a free structure of attributes, only 'loc' is required 37 | 38 | (function (factory) { 39 | if(typeof define === 'function' && define.amd) { 40 | //AMD 41 | define(['leaflet'], factory); 42 | } else if(typeof module !== 'undefined') { 43 | // Node/CommonJS 44 | module.exports = factory(require('leaflet')); 45 | } else { 46 | // Browser globals 47 | if(typeof window.L === 'undefined') 48 | throw 'Leaflet must be loaded first'; 49 | factory(window.L); 50 | } 51 | })(function (L) { 52 | 53 | 54 | L.Control.Search = L.Control.extend({ 55 | 56 | includes: L.version[0]==='1' ? L.Evented.prototype : L.Mixin.Events, 57 | 58 | options: { 59 | url: '', //url for search by ajax request, ex: "search.php?q={s}". Can be function to returns string for dynamic parameter setting 60 | layer: null, //layer where search markers(is a L.LayerGroup) 61 | sourceData: null, //function to fill _recordsCache, passed searching text by first param and callback in second 62 | //TODO implements uniq option 'sourceData' to recognizes source type: url,array,callback or layer 63 | jsonpParam: null, //jsonp param name for search by jsonp service, ex: "callback" 64 | propertyLoc: 'loc', //field for remapping location, using array: ['latname','lonname'] for select double fields(ex. ['lat','lon'] ) support dotted format: 'prop.subprop.title' 65 | propertyName: 'title', //property in marker.options(or feature.properties for vector layer) trough filter elements in layer, 66 | formatData: null, //callback for reformat all data from source to indexed data object 67 | filterData: null, //callback for filtering data from text searched, params: textSearch, allRecords 68 | moveToLocation: null, //callback run on location found, params: latlng, title, map 69 | buildTip: null, //function to return row tip html node(or html string), receive text tooltip in first param 70 | container: '', //container id to insert Search Control 71 | zoom: null, //default zoom level for move to location 72 | minLength: 1, //minimal text length for autocomplete 73 | initial: true, //search elements only by initial text 74 | casesensitive: false, //search elements in case sensitive text 75 | autoType: true, //complete input with first suggested result and select this filled-in text. 76 | delayType: 400, //delay while typing for show tooltip 77 | tooltipLimit: -1, //limit max results to show in tooltip. -1 for no limit, 0 for no results 78 | tipAutoSubmit: true, //auto map panTo when click on tooltip 79 | firstTipSubmit: false, //auto select first result con enter click 80 | autoResize: true, //autoresize on input change 81 | collapsed: true, //collapse search control at startup 82 | autoCollapse: false, //collapse search control after submit(on button or on tips if enabled tipAutoSubmit) 83 | autoCollapseTime: 1200, //delay for autoclosing alert and collapse after blur 84 | textErr: 'Location not found', //error message 85 | textCancel: 'Cancel', //title in cancel button 86 | textPlaceholder: 'Search...', //placeholder value 87 | hideMarkerOnCollapse: false, //remove circle and marker on search control collapsed 88 | position: 'topleft', 89 | marker: { //custom L.Marker or false for hide 90 | icon: false, //custom L.Icon for maker location or false for hide 91 | animate: true, //animate a circle over location found 92 | circle: { //draw a circle in location found 93 | radius: 10, 94 | weight: 3, 95 | color: '#e03', 96 | stroke: true, 97 | fill: false 98 | } 99 | } 100 | }, 101 | 102 | _getPath: function(obj, prop) { 103 | var parts = prop.split('.'), 104 | last = parts.pop(), 105 | len = parts.length, 106 | cur = parts[0], 107 | i = 1; 108 | 109 | if(len > 0) 110 | while((obj = obj[cur]) && i < len) 111 | cur = parts[i++]; 112 | 113 | if(obj) 114 | return obj[last]; 115 | }, 116 | 117 | _isObject: function(obj) { 118 | return Object.prototype.toString.call(obj) === "[object Object]"; 119 | }, 120 | 121 | initialize: function(options) { 122 | L.Util.setOptions(this, options || {}); 123 | this._inputMinSize = this.options.textPlaceholder ? this.options.textPlaceholder.length : 10; 124 | this._layer = this.options.layer || new L.LayerGroup(); 125 | this._filterData = this.options.filterData || this._defaultFilterData; 126 | this._formatData = this.options.formatData || this._defaultFormatData; 127 | this._moveToLocation = this.options.moveToLocation || this._defaultMoveToLocation; 128 | this._autoTypeTmp = this.options.autoType; //useful for disable autoType temporarily in delete/backspace keydown 129 | this._countertips = 0; //number of tips items 130 | this._recordsCache = {}; //key,value table! to store locations! format: key,latlng 131 | this._curReq = null; 132 | }, 133 | 134 | onAdd: function (map) { 135 | this._map = map; 136 | this._container = L.DomUtil.create('div', 'leaflet-control-search'); 137 | this._input = this._createInput(this.options.textPlaceholder, 'search-input'); 138 | this._tooltip = this._createTooltip('search-tooltip'); 139 | this._cancel = this._createCancel(this.options.textCancel, 'search-cancel'); 140 | this._button = this._createButton(this.options.textPlaceholder, 'search-button'); 141 | this._alert = this._createAlert('search-alert'); 142 | 143 | if(this.options.collapsed===false) 144 | this.expand(this.options.collapsed); 145 | 146 | if(this.options.marker) { 147 | 148 | if(this.options.marker instanceof L.Marker || this.options.marker instanceof L.CircleMarker) 149 | this._markerSearch = this.options.marker; 150 | 151 | else if(this._isObject(this.options.marker)) 152 | this._markerSearch = new L.Control.Search.Marker([0,0], this.options.marker); 153 | 154 | this._markerSearch._isMarkerSearch = true; 155 | } 156 | 157 | this.setLayer( this._layer ); 158 | 159 | map.on({ 160 | // 'layeradd': this._onLayerAddRemove, 161 | // 'layerremove': this._onLayerAddRemove 162 | 'resize': this._handleAutoresize 163 | }, this); 164 | return this._container; 165 | }, 166 | addTo: function (map) { 167 | 168 | if(this.options.container) { 169 | this._container = this.onAdd(map); 170 | this._wrapper = L.DomUtil.get(this.options.container); 171 | this._wrapper.style.position = 'relative'; 172 | this._wrapper.appendChild(this._container); 173 | } 174 | else 175 | L.Control.prototype.addTo.call(this, map); 176 | 177 | return this; 178 | }, 179 | 180 | onRemove: function(map) { 181 | this._recordsCache = {}; 182 | // map.off({ 183 | // 'layeradd': this._onLayerAddRemove, 184 | // 'layerremove': this._onLayerAddRemove 185 | // }, this); 186 | map.off({ 187 | // 'layeradd': this._onLayerAddRemove, 188 | // 'layerremove': this._onLayerAddRemove 189 | 'resize': this._handleAutoresize 190 | }, this); 191 | }, 192 | 193 | // _onLayerAddRemove: function(e) { 194 | // //without this, run setLayer also for each Markers!! to optimize! 195 | // if(e.layer instanceof L.LayerGroup) 196 | // if( L.stamp(e.layer) != L.stamp(this._layer) ) 197 | // this.setLayer(e.layer); 198 | // }, 199 | 200 | setLayer: function(layer) { //set search layer at runtime 201 | //this.options.layer = layer; //setting this, run only this._recordsFromLayer() 202 | this._layer = layer; 203 | this._layer.addTo(this._map); 204 | return this; 205 | }, 206 | 207 | showAlert: function(text) { 208 | var self = this; 209 | text = text || this.options.textErr; 210 | this._alert.style.display = 'block'; 211 | this._alert.innerHTML = text; 212 | clearTimeout(this.timerAlert); 213 | 214 | this.timerAlert = setTimeout(function() { 215 | self.hideAlert(); 216 | },this.options.autoCollapseTime); 217 | return this; 218 | }, 219 | 220 | hideAlert: function() { 221 | this._alert.style.display = 'none'; 222 | return this; 223 | }, 224 | 225 | cancel: function() { 226 | this._input.value = ''; 227 | this._handleKeypress({ keyCode: 8 });//simulate backspace keypress 228 | this._input.size = this._inputMinSize; 229 | this._input.focus(); 230 | this._cancel.style.display = 'none'; 231 | this._hideTooltip(); 232 | this.fire('search:cancel'); 233 | return this; 234 | }, 235 | 236 | expand: function(toggle) { 237 | toggle = typeof toggle === 'boolean' ? toggle : true; 238 | this._input.style.display = 'block'; 239 | L.DomUtil.addClass(this._container, 'search-exp'); 240 | if ( toggle !== false ) { 241 | this._input.focus(); 242 | this._map.on('dragstart click', this.collapse, this); 243 | } 244 | this.fire('search:expanded'); 245 | return this; 246 | }, 247 | 248 | collapse: function() { 249 | this._hideTooltip(); 250 | this.cancel(); 251 | this._alert.style.display = 'none'; 252 | this._input.blur(); 253 | if(this.options.collapsed) 254 | { 255 | this._input.style.display = 'none'; 256 | this._cancel.style.display = 'none'; 257 | L.DomUtil.removeClass(this._container, 'search-exp'); 258 | if (this.options.hideMarkerOnCollapse) { 259 | this._map.removeLayer(this._markerSearch); 260 | } 261 | this._map.off('dragstart click', this.collapse, this); 262 | } 263 | this.fire('search:collapsed'); 264 | return this; 265 | }, 266 | 267 | collapseDelayed: function() { //collapse after delay, used on_input blur 268 | var self = this; 269 | if (!this.options.autoCollapse) return this; 270 | clearTimeout(this.timerCollapse); 271 | this.timerCollapse = setTimeout(function() { 272 | self.collapse(); 273 | }, this.options.autoCollapseTime); 274 | return this; 275 | }, 276 | 277 | collapseDelayedStop: function() { 278 | clearTimeout(this.timerCollapse); 279 | return this; 280 | }, 281 | 282 | ////start DOM creations 283 | _createAlert: function(className) { 284 | var alert = L.DomUtil.create('div', className, this._container); 285 | alert.style.display = 'none'; 286 | 287 | L.DomEvent 288 | .on(alert, 'click', L.DomEvent.stop, this) 289 | .on(alert, 'click', this.hideAlert, this); 290 | 291 | return alert; 292 | }, 293 | 294 | _createInput: function (text, className) { 295 | var self = this; 296 | var label = L.DomUtil.create('label', className, this._container); 297 | var input = L.DomUtil.create('input', className, this._container); 298 | input.type = 'text'; 299 | input.size = this._inputMinSize; 300 | input.value = ''; 301 | input.autocomplete = 'off'; 302 | input.autocorrect = 'off'; 303 | input.autocapitalize = 'off'; 304 | input.placeholder = text; 305 | input.style.display = 'none'; 306 | input.role = 'search'; 307 | input.id = input.role + input.type + input.size; 308 | 309 | label.htmlFor = input.id; 310 | label.style.display = 'none'; 311 | label.value = text; 312 | 313 | L.DomEvent 314 | .disableClickPropagation(input) 315 | .on(input, 'keyup', this._handleKeypress, this) 316 | .on(input, 'paste', function(e) { 317 | setTimeout(function(e) { 318 | self._handleKeypress(e); 319 | },10,e); 320 | }, this) 321 | .on(input, 'blur', this.collapseDelayed, this) 322 | .on(input, 'focus', this.collapseDelayedStop, this); 323 | 324 | return input; 325 | }, 326 | 327 | _createCancel: function (title, className) { 328 | var cancel = L.DomUtil.create('a', className, this._container); 329 | cancel.href = '#'; 330 | cancel.title = title; 331 | cancel.style.display = 'none'; 332 | cancel.innerHTML = "";//imageless(see css) 333 | 334 | L.DomEvent 335 | .on(cancel, 'click', L.DomEvent.stop, this) 336 | .on(cancel, 'click', this.cancel, this); 337 | 338 | return cancel; 339 | }, 340 | 341 | _createButton: function (title, className) { 342 | var button = L.DomUtil.create('a', className, this._container); 343 | button.href = '#'; 344 | button.title = title; 345 | 346 | L.DomEvent 347 | .on(button, 'click', L.DomEvent.stop, this) 348 | .on(button, 'click', this._handleSubmit, this) 349 | .on(button, 'focus', this.collapseDelayedStop, this) 350 | .on(button, 'blur', this.collapseDelayed, this); 351 | 352 | return button; 353 | }, 354 | 355 | _createTooltip: function(className) { 356 | var self = this; 357 | var tool = L.DomUtil.create('ul', className, this._container); 358 | tool.style.display = 'none'; 359 | L.DomEvent 360 | .disableClickPropagation(tool) 361 | .on(tool, 'blur', this.collapseDelayed, this) 362 | .on(tool, 'mousewheel', function(e) { 363 | self.collapseDelayedStop(); 364 | L.DomEvent.stopPropagation(e);//disable zoom map 365 | }, this) 366 | .on(tool, 'mouseover', function(e) { 367 | self.collapseDelayedStop(); 368 | }, this); 369 | return tool; 370 | }, 371 | 372 | _createTip: function(text, val) {//val is object in recordCache, usually is Latlng 373 | var tip; 374 | 375 | if(this.options.buildTip) 376 | { 377 | tip = this.options.buildTip.call(this, text, val); //custom tip node or html string 378 | if(typeof tip === 'string') 379 | { 380 | var tmpNode = L.DomUtil.create('div'); 381 | tmpNode.innerHTML = tip; 382 | tip = tmpNode.firstChild; 383 | } 384 | } 385 | else 386 | { 387 | tip = L.DomUtil.create('li', ''); 388 | tip.innerHTML = text; 389 | } 390 | 391 | L.DomUtil.addClass(tip, 'search-tip'); 392 | tip._text = text; //value replaced in this._input and used by _autoType 393 | 394 | if(this.options.tipAutoSubmit) 395 | L.DomEvent 396 | .disableClickPropagation(tip) 397 | .on(tip, 'click', L.DomEvent.stop, this) 398 | .on(tip, 'click', function(e) { 399 | this._input.value = text; 400 | this._handleAutoresize(); 401 | this._input.focus(); 402 | this._hideTooltip(); 403 | this._handleSubmit(); 404 | }, this); 405 | 406 | return tip; 407 | }, 408 | 409 | //////end DOM creations 410 | 411 | _getUrl: function(text) { 412 | return (typeof this.options.url === 'function') ? this.options.url(text) : this.options.url; 413 | }, 414 | 415 | _defaultFilterData: function(text, records) { 416 | 417 | var I, icase, regSearch, frecords = {}; 418 | 419 | text = text.replace(/[.*+?^${}()|[\]\\]/g, ''); //sanitize remove all special characters 420 | if(text==='') 421 | return []; 422 | 423 | I = this.options.initial ? '^' : ''; //search only initial text 424 | icase = !this.options.casesensitive ? 'i' : undefined; 425 | 426 | regSearch = new RegExp(I + text, icase); 427 | 428 | //TODO use .filter or .map 429 | for(var key in records) { 430 | if( regSearch.test(key) ) 431 | frecords[key]= records[key]; 432 | } 433 | 434 | return frecords; 435 | }, 436 | 437 | showTooltip: function(records) { 438 | 439 | 440 | this._countertips = 0; 441 | this._tooltip.innerHTML = ''; 442 | this._tooltip.currentSelection = -1; //inizialized for _handleArrowSelect() 443 | 444 | if(this.options.tooltipLimit) 445 | { 446 | for(var key in records)//fill tooltip 447 | { 448 | if(this._countertips === this.options.tooltipLimit) 449 | break; 450 | 451 | this._countertips++; 452 | 453 | this._tooltip.appendChild( this._createTip(key, records[key]) ); 454 | } 455 | } 456 | 457 | if(this._countertips > 0) 458 | { 459 | this._tooltip.style.display = 'block'; 460 | 461 | if(this._autoTypeTmp) 462 | this._autoType(); 463 | 464 | this._autoTypeTmp = this.options.autoType;//reset default value 465 | } 466 | else 467 | this._hideTooltip(); 468 | 469 | this._tooltip.scrollTop = 0; 470 | 471 | return this._countertips; 472 | }, 473 | 474 | _hideTooltip: function() { 475 | this._tooltip.style.display = 'none'; 476 | this._tooltip.innerHTML = ''; 477 | return 0; 478 | }, 479 | 480 | _defaultFormatData: function(json) { //default callback for format data to indexed data 481 | var self = this, 482 | propName = this.options.propertyName, 483 | propLoc = this.options.propertyLoc, 484 | i, jsonret = {}; 485 | 486 | if( L.Util.isArray(propLoc) ) 487 | for(i in json) 488 | jsonret[ self._getPath(json[i],propName) ]= L.latLng( json[i][ propLoc[0] ], json[i][ propLoc[1] ] ); 489 | else 490 | for(i in json) 491 | jsonret[ self._getPath(json[i],propName) ]= L.latLng( self._getPath(json[i],propLoc) ); 492 | //TODO throw new Error("propertyName '"+propName+"' not found in JSON data"); 493 | return jsonret; 494 | }, 495 | 496 | _recordsFromJsonp: function(text, callAfter) { //extract searched records from remote jsonp service 497 | L.Control.Search.callJsonp = callAfter; 498 | var script = L.DomUtil.create('script','leaflet-search-jsonp', document.getElementsByTagName('body')[0] ), 499 | url = L.Util.template(this._getUrl(text)+'&'+this.options.jsonpParam+'=L.Control.Search.callJsonp', {s: text}); //parsing url 500 | //rnd = '&_='+Math.floor(Math.random()*10000); 501 | //TODO add rnd param or randomize callback name! in recordsFromJsonp 502 | script.type = 'text/javascript'; 503 | script.src = url; 504 | return { abort: function() { script.parentNode.removeChild(script); } }; 505 | }, 506 | 507 | _recordsFromAjax: function(text, callAfter) { //Ajax request 508 | if (window.XMLHttpRequest === undefined) { 509 | window.XMLHttpRequest = function() { 510 | try { return new ActiveXObject("Microsoft.XMLHTTP.6.0"); } 511 | catch (e1) { 512 | try { return new ActiveXObject("Microsoft.XMLHTTP.3.0"); } 513 | catch (e2) { throw new Error("XMLHttpRequest is not supported"); } 514 | } 515 | }; 516 | } 517 | var IE8or9 = ( L.Browser.ie && !window.atob && document.querySelector ), 518 | request = IE8or9 ? new XDomainRequest() : new XMLHttpRequest(), 519 | url = L.Util.template(this._getUrl(text), {s: text}); 520 | 521 | //rnd = '&_='+Math.floor(Math.random()*10000); 522 | //TODO add rnd param or randomize callback name! in recordsFromAjax 523 | 524 | request.open("GET", url); 525 | 526 | 527 | request.onload = function() { 528 | callAfter( JSON.parse(request.responseText) ); 529 | }; 530 | request.onreadystatechange = function() { 531 | if(request.readyState === 4 && request.status === 200) { 532 | this.onload(); 533 | } 534 | }; 535 | 536 | request.send(); 537 | return request; 538 | }, 539 | 540 | _searchInLayer: function(layer, retRecords, propName) { 541 | var self = this, loc; 542 | 543 | if(layer instanceof L.Control.Search.Marker) return; 544 | 545 | if(layer instanceof L.Marker || layer instanceof L.CircleMarker) 546 | { 547 | if(self._getPath(layer.options,propName)) 548 | { 549 | loc = layer.getLatLng(); 550 | loc.layer = layer; 551 | retRecords[ self._getPath(layer.options,propName) ] = loc; 552 | } 553 | else if(self._getPath(layer.feature.properties,propName)) 554 | { 555 | loc = layer.getLatLng(); 556 | loc.layer = layer; 557 | retRecords[ self._getPath(layer.feature.properties,propName) ] = loc; 558 | } 559 | else { 560 | //throw new Error("propertyName '"+propName+"' not found in marker"); 561 | console.warn("propertyName '"+propName+"' not found in marker"); 562 | } 563 | } 564 | else if(layer instanceof L.Path || layer instanceof L.Polyline || layer instanceof L.Polygon) 565 | { 566 | if(self._getPath(layer.options,propName)) 567 | { 568 | loc = layer.getBounds().getCenter(); 569 | loc.layer = layer; 570 | retRecords[ self._getPath(layer.options,propName) ] = loc; 571 | } 572 | else if(self._getPath(layer.feature.properties,propName)) 573 | { 574 | loc = layer.getBounds().getCenter(); 575 | loc.layer = layer; 576 | retRecords[ self._getPath(layer.feature.properties,propName) ] = loc; 577 | } 578 | else { 579 | //throw new Error("propertyName '"+propName+"' not found in shape"); 580 | console.warn("propertyName '"+propName+"' not found in shape"); 581 | } 582 | } 583 | else if(layer.hasOwnProperty('feature'))//GeoJSON 584 | { 585 | if(layer.feature.properties.hasOwnProperty(propName)) 586 | { 587 | if(layer.getLatLng && typeof layer.getLatLng === 'function') { 588 | loc = layer.getLatLng(); 589 | loc.layer = layer; 590 | retRecords[ layer.feature.properties[propName] ] = loc; 591 | } else if(layer.getBounds && typeof layer.getBounds === 'function') { 592 | loc = layer.getBounds().getCenter(); 593 | loc.layer = layer; 594 | retRecords[ layer.feature.properties[propName] ] = loc; 595 | } else { 596 | console.warn("Unknown type of Layer"); 597 | } 598 | } 599 | else { 600 | //throw new Error("propertyName '"+propName+"' not found in feature"); 601 | console.warn("propertyName '"+propName+"' not found in feature"); 602 | } 603 | } 604 | else if(layer instanceof L.LayerGroup) 605 | { 606 | layer.eachLayer(function (layer) { 607 | self._searchInLayer(layer, retRecords, propName); 608 | }); 609 | } 610 | }, 611 | 612 | _recordsFromLayer: function() { //return table: key,value from layer 613 | var self = this, 614 | retRecords = {}, 615 | propName = this.options.propertyName; 616 | 617 | this._layer.eachLayer(function (layer) { 618 | self._searchInLayer(layer, retRecords, propName); 619 | }); 620 | 621 | return retRecords; 622 | }, 623 | 624 | _autoType: function() { 625 | 626 | //TODO implements autype without selection(useful for mobile device) 627 | 628 | var start = this._input.value.length, 629 | firstRecord = this._tooltip.firstChild ? this._tooltip.firstChild._text : '', 630 | end = firstRecord.length; 631 | 632 | if (firstRecord.indexOf(this._input.value) === 0) { // If prefix match 633 | this._input.value = firstRecord; 634 | this._handleAutoresize(); 635 | 636 | if (this._input.createTextRange) { 637 | var selRange = this._input.createTextRange(); 638 | selRange.collapse(true); 639 | selRange.moveStart('character', start); 640 | selRange.moveEnd('character', end); 641 | selRange.select(); 642 | } 643 | else if(this._input.setSelectionRange) { 644 | this._input.setSelectionRange(start, end); 645 | } 646 | else if(this._input.selectionStart) { 647 | this._input.selectionStart = start; 648 | this._input.selectionEnd = end; 649 | } 650 | } 651 | }, 652 | 653 | _hideAutoType: function() { // deselect text: 654 | 655 | var sel; 656 | if ((sel = this._input.selection) && sel.empty) { 657 | sel.empty(); 658 | } 659 | else if (this._input.createTextRange) { 660 | sel = this._input.createTextRange(); 661 | sel.collapse(true); 662 | var end = this._input.value.length; 663 | sel.moveStart('character', end); 664 | sel.moveEnd('character', end); 665 | sel.select(); 666 | } 667 | else { 668 | if (this._input.getSelection) { 669 | this._input.getSelection().removeAllRanges(); 670 | } 671 | this._input.selectionStart = this._input.selectionEnd; 672 | } 673 | }, 674 | 675 | _handleKeypress: function (e) { //run _input keyup event 676 | var self = this; 677 | 678 | switch(e.keyCode) 679 | { 680 | case 27://Esc 681 | this.collapse(); 682 | break; 683 | case 13://Enter 684 | if(this._countertips == 1 || (this.options.firstTipSubmit && this._countertips > 0)) { 685 | if(this._tooltip.currentSelection == -1) { 686 | this._handleArrowSelect(1); 687 | } 688 | } 689 | this._handleSubmit(); //do search 690 | break; 691 | case 38://Up 692 | this._handleArrowSelect(-1); 693 | break; 694 | case 40://Down 695 | this._handleArrowSelect(1); 696 | break; 697 | case 8://Backspace 698 | case 45://Insert 699 | case 46://Delete 700 | this._autoTypeTmp = false;//disable temporarily autoType 701 | break; 702 | case 37://Left 703 | case 39://Right 704 | case 16://Shift 705 | case 17://Ctrl 706 | case 35://End 707 | case 36://Home 708 | break; 709 | default://All keys 710 | if(this._input.value.length) 711 | this._cancel.style.display = 'block'; 712 | else 713 | this._cancel.style.display = 'none'; 714 | 715 | if(this._input.value.length >= this.options.minLength) 716 | { 717 | clearTimeout(this.timerKeypress); //cancel last search request while type in 718 | this.timerKeypress = setTimeout(function() { //delay before request, for limit jsonp/ajax request 719 | 720 | self._fillRecordsCache(); 721 | 722 | }, this.options.delayType); 723 | } 724 | else 725 | this._hideTooltip(); 726 | } 727 | 728 | this._handleAutoresize(); 729 | }, 730 | 731 | searchText: function(text) { 732 | var code = text.charCodeAt(text.length); 733 | 734 | this._input.value = text; 735 | 736 | this._input.style.display = 'block'; 737 | L.DomUtil.addClass(this._container, 'search-exp'); 738 | 739 | this._autoTypeTmp = false; 740 | 741 | this._handleKeypress({keyCode: code}); 742 | }, 743 | 744 | _fillRecordsCache: function() { 745 | 746 | var self = this, 747 | inputText = this._input.value, records; 748 | 749 | if(this._curReq && this._curReq.abort) 750 | this._curReq.abort(); 751 | //abort previous requests 752 | 753 | L.DomUtil.addClass(this._container, 'search-load'); 754 | 755 | if(this.options.layer) 756 | { 757 | //TODO _recordsFromLayer must return array of objects, formatted from _formatData 758 | this._recordsCache = this._recordsFromLayer(); 759 | 760 | records = this._filterData( this._input.value, this._recordsCache ); 761 | 762 | this.showTooltip( records ); 763 | 764 | L.DomUtil.removeClass(this._container, 'search-load'); 765 | } 766 | else 767 | { 768 | if(this.options.sourceData) 769 | this._retrieveData = this.options.sourceData; 770 | 771 | else if(this.options.url) //jsonp or ajax 772 | this._retrieveData = this.options.jsonpParam ? this._recordsFromJsonp : this._recordsFromAjax; 773 | 774 | this._curReq = this._retrieveData.call(this, inputText, function(data) { 775 | 776 | self._recordsCache = self._formatData.call(self, data); 777 | 778 | //TODO refact! 779 | if(self.options.sourceData) 780 | records = self._filterData( self._input.value, self._recordsCache ); 781 | else 782 | records = self._recordsCache; 783 | 784 | self.showTooltip( records ); 785 | 786 | L.DomUtil.removeClass(self._container, 'search-load'); 787 | }); 788 | } 789 | }, 790 | 791 | _handleAutoresize: function() { 792 | var maxWidth; 793 | 794 | if (this._input.style.maxWidth !== this._map._container.offsetWidth) { 795 | maxWidth = this._map._container.clientWidth; 796 | 797 | // other side margin + padding + width border + width search-button + width search-cancel 798 | maxWidth -= 10 + 20 + 1 + 30 + 22; 799 | 800 | this._input.style.maxWidth = maxWidth.toString() + 'px'; 801 | } 802 | 803 | if (this.options.autoResize && (this._container.offsetWidth + 20 < this._map._container.offsetWidth)) { 804 | this._input.size = this._input.value.length < this._inputMinSize ? this._inputMinSize : this._input.value.length; 805 | } 806 | }, 807 | 808 | _handleArrowSelect: function(velocity) { 809 | 810 | var searchTips = this._tooltip.hasChildNodes() ? this._tooltip.childNodes : []; 811 | 812 | for (i=0; i= (searchTips.length - 1))) {// If at end of list. 816 | L.DomUtil.addClass(searchTips[this._tooltip.currentSelection], 'search-tip-select'); 817 | } 818 | else if ((velocity == -1 ) && (this._tooltip.currentSelection <= 0)) { // Going back up to the search box. 819 | this._tooltip.currentSelection = -1; 820 | } 821 | else if (this._tooltip.style.display != 'none') { 822 | this._tooltip.currentSelection += velocity; 823 | 824 | L.DomUtil.addClass(searchTips[this._tooltip.currentSelection], 'search-tip-select'); 825 | 826 | this._input.value = searchTips[this._tooltip.currentSelection]._text; 827 | 828 | // scroll: 829 | var tipOffsetTop = searchTips[this._tooltip.currentSelection].offsetTop; 830 | 831 | if (tipOffsetTop + searchTips[this._tooltip.currentSelection].clientHeight >= this._tooltip.scrollTop + this._tooltip.clientHeight) { 832 | this._tooltip.scrollTop = tipOffsetTop - this._tooltip.clientHeight + searchTips[this._tooltip.currentSelection].clientHeight; 833 | } 834 | else if (tipOffsetTop <= this._tooltip.scrollTop) { 835 | this._tooltip.scrollTop = tipOffsetTop; 836 | } 837 | } 838 | }, 839 | 840 | _handleSubmit: function() { //button and tooltip click and enter submit 841 | 842 | this._hideAutoType(); 843 | 844 | this.hideAlert(); 845 | this._hideTooltip(); 846 | 847 | if(this._input.style.display == 'none') //on first click show _input only 848 | this.expand(); 849 | else 850 | { 851 | if(this._input.value === '') //hide _input only 852 | this.collapse(); 853 | else 854 | { 855 | var loc = this._getLocation(this._input.value); 856 | 857 | if(loc===false) 858 | this.showAlert(); 859 | else 860 | { 861 | this.showLocation(loc, this._input.value); 862 | this.fire('search:locationfound', { 863 | latlng: loc, 864 | text: this._input.value, 865 | layer: loc.layer ? loc.layer : null 866 | }); 867 | } 868 | } 869 | } 870 | }, 871 | 872 | _getLocation: function(key) { //extract latlng from _recordsCache 873 | 874 | if( this._recordsCache.hasOwnProperty(key) ) 875 | return this._recordsCache[key];//then after use .loc attribute 876 | else 877 | return false; 878 | }, 879 | 880 | _defaultMoveToLocation: function(latlng, title, map) { 881 | if(this.options.zoom) 882 | this._map.setView(latlng, this.options.zoom); 883 | else 884 | this._map.panTo(latlng); 885 | }, 886 | 887 | showLocation: function(latlng, title) { //set location on map from _recordsCache 888 | var self = this; 889 | 890 | self._map.once('moveend zoomend', function(e) { 891 | 892 | if(self._markerSearch) { 893 | self._markerSearch.addTo(self._map).setLatLng(latlng); 894 | } 895 | 896 | }); 897 | 898 | self._moveToLocation(latlng, title, self._map); 899 | //FIXME autoCollapse option hide self._markerSearch before visualized!! 900 | if(self.options.autoCollapse) 901 | self.collapse(); 902 | 903 | return self; 904 | } 905 | }); 906 | 907 | L.Control.Search.Marker = L.Marker.extend({ 908 | 909 | includes: L.version[0]==='1' ? L.Evented.prototype : L.Mixin.Events, 910 | 911 | options: { 912 | icon: new L.Icon.Default(), 913 | animate: true, 914 | circle: { 915 | radius: 10, 916 | weight: 3, 917 | color: '#e03', 918 | stroke: true, 919 | fill: false 920 | } 921 | }, 922 | 923 | initialize: function (latlng, options) { 924 | L.setOptions(this, options); 925 | 926 | if(options.icon === true) 927 | options.icon = new L.Icon.Default(); 928 | 929 | L.Marker.prototype.initialize.call(this, latlng, options); 930 | 931 | if( L.Control.Search.prototype._isObject(this.options.circle) ) 932 | this._circleLoc = new L.CircleMarker(latlng, this.options.circle); 933 | }, 934 | 935 | onAdd: function (map) { 936 | L.Marker.prototype.onAdd.call(this, map); 937 | if(this._circleLoc) { 938 | map.addLayer(this._circleLoc); 939 | if(this.options.animate) 940 | this.animate(); 941 | } 942 | }, 943 | 944 | onRemove: function (map) { 945 | L.Marker.prototype.onRemove.call(this, map); 946 | if(this._circleLoc) 947 | map.removeLayer(this._circleLoc); 948 | }, 949 | 950 | setLatLng: function (latlng) { 951 | L.Marker.prototype.setLatLng.call(this, latlng); 952 | if(this._circleLoc) 953 | this._circleLoc.setLatLng(latlng); 954 | return this; 955 | }, 956 | 957 | _initIcon: function () { 958 | if(this.options.icon) 959 | L.Marker.prototype._initIcon.call(this); 960 | }, 961 | 962 | _removeIcon: function () { 963 | if(this.options.icon) 964 | L.Marker.prototype._removeIcon.call(this); 965 | }, 966 | 967 | animate: function() { 968 | //TODO refact animate() more smooth! like this: http://goo.gl/DDlRs 969 | if(this._circleLoc) 970 | { 971 | var circle = this._circleLoc, 972 | tInt = 200, //time interval 973 | ss = 5, //frames 974 | mr = parseInt(circle._radius/ss), 975 | oldrad = this.options.circle.radius, 976 | newrad = circle._radius * 2, 977 | acc = 0; 978 | 979 | circle._timerAnimLoc = setInterval(function() { 980 | acc += 0.5; 981 | mr += acc; //adding acceleration 982 | newrad -= mr; 983 | 984 | circle.setRadius(newrad); 985 | 986 | if(newrad