I am loading a big json for about 10000 pins with some text, about 3-4mb. And it takes some time to load all the pins and display them.

Is there a way to diplay the pin right after loading?

So to see the progress of pins loading?

Here is my jquery json loading

         type: 'POST',
         url: 'api.php',
         data: {},
         success: function(data) {

             data.map(function(item) {

                 var marker = L.marker(new L.LatLng(item.lat, item.lng), {
                     .on('click', function(e) {
         //contentType: "application/json",
         dataType: 'json'

Update: the answer and example is here https://github.com/Leaflet/Leaflet.markercluster#chunked-addlayers-options

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.