I'm trying to load more than 13 thousand points in leaflet from a geoJson file, everything seems to work just fine except the Popup function. I've looked everywhere for a solution and most answers out here do not work in my case. Here is an excerpt of my code:
//calling the geoJSON
var SaoPaulo = L.geoJson(SP_ResSinglePoint, {
pointToLayer: function (feature, latlng) {
var popupContent = feature.properties.Time;
console.log(popupContent);
return L.circleMarker(latlng, Style(feature)).bindPopup(popupContent);
},
});
When I click on a given point I get the following message on the console:
Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
But I do get all the info I'm looking for through the console.log
so I'm assuming that that my popup parameters are correct, but yet no luck in the map.