I am having some issues with two things in a Leaflet map 1) custom marker 2) pulling attributes from a geoJSON file and putting it in the pop-up.
I should qualify things, I am really new to Leaflet and web development. I have looked at a number of different examples, but I cannot seem to make it work within my code. Here is a section of the code, which is filtering based on an attribute in the geoJSON, but I would also like to give it a custom icon and attributes in the pop-up.
var soffParkingMarkerPopup = 'parking';
var soffParking = L.geoJson(locations, {filter:soffParkingFilter
}).addTo(map);
onEachFeature: function soffParkingFilter(feature,layer) {
if (feature.properties.type === "parking") return true
};
soffParking.bindPopup(soffParkingMarkerPopup).addTo(map);