I need to create filters based on attributes of markers. I have markers defined this way:
var locations = [
['AB11 5HW','17','A',57.147701,-2.085442 ] ,
['AB11 8DG','3','B',57.129372,-2.090916 ] ,
];
If the user selects for 'A' or 'B' all markers containing attribute A or B should become visible on the map. Something like
var markersA = a[2] contains 'A'
I thought it is maybe possible with Leaflet Marker groups or something similar.
I'm new to Javascript so I'm interested if it's even possible.
