Try ERPNext Buy Support Partners Foundation

Leaflet Geolocation plotting

Hi there,

I am trying to plot my data from ERPNext on a custom leaflet web page but don’t know how to access the coordinates itself to plot.

Geojson data structure.

Leaflet code:

    $.getJSON("erpnextUrl", function(data) {
    L.geoJSON(data, {}).addTo(map);


Thank you!


$.getJSON("erpnextUrl", function(data) {

for (i in {
    var json = JSON.parse([i].geozones);

    L.geoJSON(json, {




1 Like