Can someone briefly describe what I need to do to create multiple sets of markers that have a different color per set?
Basically I want to define the coordinates of a large set of markers first. Then I want to choose markers from the large set to create subsets. I've tried making layers from these subsets and then applied a different style to each subset layer. The markers show up, but the colors are still the same, and i've specified them to be different.
var alvarion2400points = {"type": "MultiPoint", "coordinates": [APL1, KAV1]};
var alvarion5800points = {"type": "MultiPoint", "coordinates": [KAW1, ARD1]};
//Define Styles
var alvarion2400style = {"color": "#ff7800","weight": 5,"opacity": 0.65};
var alvarion5800style = {"color": "#bf7800","weight": 5,"opacity": 0.65};
//Layer Definition, and adding data points and style
var alvarion2400layer = L.geoJson().addTo(map);
alvarion2400layer.addData(alvarion2400points, {style: alvarion2400style});
var alvarion5800layer = L.geoJson().addTo(map);
alvarion5800layer.addData(alvarion5800points, {style: alvarion5800style});
I was reading the section on pointToLayer, about how points don't behave like the other features. But I can't figure out how to apply that function to a multipoint feature that i've already defined.