Convert WKT to GeoJSON with leaflet

المشرف العام

Administrator
طاقم الإدارة
I have a point type WKT geometry column in a MySQL table storing the location of some stores.

I want to display it on a leaflet map on my website. I've found plenty of tutorials to doing this on leaflet official website from GeoJSON data.

But I found no precise documentation which clearly explains how to convert WKT to GeoJSON...even if it seems to be a very important part of the process.

Does someone knows a good source which fill this gap or can explain to me how to do this in PHP or javascript ?



أكثر...
 
أعلى