Hi all,
I'm unable to find a method (or an initialization option) to select a layer as active when you add a control to a map. Everything else is working great. The control is added and then I can select a base layer to display, but I would really like to have one of them pre-selected on load. Code and screenshot below.
Thanks for your help
Addam Hardy
var positive = L.heatLayer(positive_points, {radius: 20});
var negative = L.heatLayer(negative_points, {radius: 20});
var point_group = L.layerGroup();
var overlays = {
"Positive": positive,
"Negative": negative,
"Color Points": point_group
};
this.control = L.control.layers(overlays, null,{collapsed: false}).addTo(mapObject);

