There are may be several reasons for TypeError:t is null, but I solved my problem by changing-
L.marker(LATITUDE,LONGITUDE).bindPopup("Info").addTo(map);
to
L.marker(L.latLng(LATITUDE,LONGITUDE)).bindPopup("Info").addTo(map);
Hope it helps you as well - http://jsfiddle.net/amrana83/fA8JW/4/
![](https://lh6.googleusercontent.com/-ZhooVMgF1NU/Tm3n6aGfNOI/AAAAAAAABjk/kIqA07mZJ5Y/s800/dw-rp.png)
You have to pass an array|L.latLng to L.marker, but you are passing two parameters with example #1 instead. L.marker([lat, lon]) should work as well.
ReplyDeleteThanks for your comment Mike!
ReplyDelete