Closed parthw98 closed 3 years ago
This is my resulting live server.
open inspector to track where the bugs are.
I can hardly understand the codes written in the inspector. Is there another way to track bugs?
https://github.com/parthw98/airportsinus/blob/master/index.html
Here is my code
pointToLayer: function (feature, latlng) {
var id = 0;
if (feature.properties.CNTL_TWR == "Y") { id = 0; }
else { id = 1; }
return L.marker(latlng, {icon: L.divIcon({className: 'fa fa-plane marker-color-' + (id + 1).toString() })});
This part should be your code for the icons. Sometimes, I just simply change the "fa" to "fas" or always go with some old version code of the icons since it always works for me.
After finishing the code all my icons have disappeared. Can someone please tell me where I went wrong?