Reputation: 1
When I create the layer I am setting .openPopup(), which was working fine adding the layer directly to the map. But adding it to a Layer Group or Feature Group and then the Group to the map does not open the popup.
Is there a control for opening all popups in a Group?
let ipanema_layer_group = L.featureGroup()
var circle = L.circle(element.latlon, circle_options)
.bindPopup(popup)
.openPopup()
.on('popupopen', function () {
popup.setContent(element.first_content)
})
ipanema_layer_group.addLayer(circle).addTo(map)
Upvotes: 0
Views: 31