-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontrols.js
More file actions
39 lines (31 loc) · 838 Bytes
/
controls.js
File metadata and controls
39 lines (31 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$( document ).ready(function(){
$("#Geldautomat").css("background", "#00F");
$("#Geldautomat").on('click', function (e) {
LAtm.addTo(map);
});
$("#Parkbank").css("background", "#9A4");
$("#Parkbank").on('click', function (e) {
Baenke.addTo(map);
});
$("#Altenheim").css("background", "#F00");
$("#Altenheim").on('click', function (e){
Heime.addTo(map);
});
$("#Apotheke").css("background", "#0F0");
$("#Apotheke").on('click', function (e){
Apo.addTo(map);
});
$("#Arzt").css("background", "#6D0026");
$("#Arzt").css("color", "#FFA8FF");
$("#Arzt").on('click', function (e){
Doctors.addTo(map);
});
$("#Frisoer").css("background", "#888");
$("#Frisoer").on('click', function (e){
Friesoer.addTo(map);
});
});
function off(tag)
{
map.removeLayer(tag);
}