1
L.mapbox.featureLayer({
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [ll[0], ll[1]]
},
properties: {
title: d[i].screen_name,
media: d[i].media_url,
id: d[i].source_id,
text: d[i].text,
userId: d[i].user_id,
'marker-color': '#000',
'marker-symbol': 'star-stroked'
}
}).addTo(map);
방법을 사용하여지도에 마커를 추가하기 위해 노력하고있어하지만 내가 어떻게 거기에서 그 마커를 액세스합니까? map.getLayerAt (0) 또는 무엇인가?
그렇지 않습니다. 어떤 이유로지도에 표시 ..
마커를 featureLayer에로드하는 방법은 무엇입니까? 데이터의 출처는 어디입니까? 거슨? – adaam
@adaam GeoJSON이 아닌 json 세트에서 즉석에서 데이터를 생성합니다. – Kendall