1
L.Control.fileLayerLoad({
    fitBounds: true,
    layerOptions: {
        style: style,
        pointToLayer:function (data, latlng) {debugger;
            return L.circleMarker(
            latlng,
            { style: style }
            );
        },
        onEachFeature: function (feature, layer) {
            console.log("FEATURE",feature,"LAYER",layer);
            geojsonLayer = layer // 
        }
    }

}).addTo(map);

I am trying to collect geojson data and use it. this function gives correct results for line and polygon. But when I use point data it gets stuck.

  • Does your browser's console display any error messages? – Logan Byers Sep 1 '17 at 20:50
  • sorry for the late reply, it gives sth like that; FEATURE Object LAYER e – Hatice Atalay Sep 6 '17 at 9:44

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.