Open jozsi opened 8 years ago
You should call openPopup
method to display it:
onEachFeature: function(feature, layer) {
layer.bindPopup(formatMessage(row, dimensionsAndMetrics)).openPopup();
}
I'm trying to use .openPopup(), but i'm getting this error: Cannot read property 'openPopup' of undefined
I want to display a
popup
(notlabel
) on my GeoJSON, so I am adding this:But looking at _hookUpEvents in the geojson directive, the
bindEvents
method is only called if there is notonEachFeature
set.Is this a bug or a feature? In my scenario it's definately a bug.