Leaflet Marker Cluster not appearing

المشرف العام

Administrator
طاقم الإدارة
I would like for my points to cluster using L.markerClusterGroup.

I am receiving a 200 status; but nothing appears on my map. I have commented out my markers which appear when uncommented.

http://jsfiddle.net/8mnyqx49/

/// var points = L.geoJson(geojsonfeatures, { ///filter: function(feature, layer) { /// return feature.properties.COUNTRY != "UNITED STATES"; /// }, /// pointToLayer: function(feature, latLng) { /// return L.marker(latLng) /// .bindPopup(feature.properties.NAME);var points = L.markerClusterGroup();for (var i = 0; i < geojsonfeatures.length; i++) { var a = geojsonfeatures; var NAME = a[2]; var marker = L.marker(new L.LatLng(a[0], a[1]), { NAME: NAME }); marker.bindPopup(NAME); markers.addLayer(NAME);}map = L.map('myMap', { center: centerlatlng, zoom: 6, layers: [aLayerOne]});

أكثر...
 
أعلى