我正在使用Markercluster for Leaflet,从CSV中提取数据作为标记。很简单。如何使用CSV中的字段添加四个下拉菜单来映射过滤器标记?
答案 0 :(得分:1)
var legend = L.control({position: 'topright'});
legend.onAdd = function (map) {
var div = L.DomUtil.create('div', 'info legend');
div.innerHTML = '<select><option>1</option><option>2</option><option>3</option></select>';
div.firstChild.onmousedown = div.firstChild.ondblclick = L.DomEvent.stopPropagation;
return div;
};
legend.addTo(map);