1
커서를 올려 놓거나 클릭하지 않고도 각지도 아이콘의 툴팁 온로드를 표시하려고합니다. 다음은 openPopup 함수를 bindPopup에 연결하려는 시도입니다.지도 상자에 여러 툴팁 온로드 표시
function onEachFeature(feature, layer) {
if (feature.properties && feature.properties.popupContent) {
popupContent = feature.properties.popupContent;
}
layer.bindPopup(popupContent).openPopup();
}
그러나 툴팁은 클릭하지 않으면 표시되지 않습니다.
나는 문서의 this page는 다음과 같은 기능을 제공한다고 볼 수 있지만, 그것은 단지 하나의 마커가 아닌 여러 사람을위한 것입니다.
marker.eachLayer(function(m) {
m.openPopup();
});
모든 마커를 어떻게 표시합니까?
아름답습니다. 감사합니다. – nathanbweb