0
마커 # 3을 마커 # 19 및 # 20으로 덮지 않으므로 마커 # 3을 앞쪽으로 가져 오려고합니다. 마커 # 3 숙박을 부분적으로 숨겨진 : 문서이 zIndexOffset으로 수행해야하지만 다른 방법 아무것도 많이 시도에 따르면 zIndexOffset으로 프런트에 리플렛 사용자 정의 마커 받기
가 작동하는 것 같다.누구든지 내게 어떤 힌트를 줄 수 있습니까?
function start_up_biglayers(latitude, longitude, Day) {
var DayMarker = L.Icon.extend({
options: {
shadowUrl: './map_files/shadow-marker.png',
iconSize: [44, 70], // size of the icon
shadowSize: [80, 70], // size of the shadow
iconAnchor: [21, 67], // point of the icon which will correspond to marker's location
shadowAnchor: [24, 68], // the same for the shadow
popupAnchor: [-3, -76] // point from which the popup should open relative to the iconAnchor
}
});
var dec_1 = new DayMarker({iconUrl: './map_files/marker_1.png'}),
dec_2 = new DayMarker({iconUrl: './map_files/marker_2.png'}),
dec_3 = new DayMarker({iconUrl: './map_files/marker_3.png', ZIndexOffset: 100}),
dec_24 = new DayMarker({iconUrl: './map_files/marker_24.png'}),
dayMarker = new DayMarker({iconUrl: './map_files/marker_' + xmas[number].Day + '.png'})
layer = new L.marker([latitude,longitude], {icon: dayMarker});