0
아래에 숨겨져 있기 때문에 가장 높은 폴리곤을 볼 수 없도록 kml 벡터 레이어의 데이터 레이어가 반전되는 문제가 있습니다. 가장 낮은 다각형. 마우스 휠을 사용하여 확대하거나 축소 할 때 일부는 다시 정렬되어 표시되지만 전부는 아닙니다. 무슨 일 이니?OpenLayers - KML 벡터 레이어 zIndexing 반전되었지만 확대/축소 스위치 켜기
var HPC = new OpenLayers.Layer.Vector("Day 1 QPF", {
strategies: [new OpenLayers.Strategy.Fixed()],
checkedGroup : 'HPC Precipitation Forecasts',
sphericalMercator : true,
rendererOptions : {zIndexing : true},
projection : new OpenLayers.Projection("EPSG:4326"),
visibility : true,
protocol: new OpenLayers.Protocol.HTTP({
url: "resource/hpc/QPF24hr_Day1_latest_netlink.kml",
format: new OpenLayers.Format.KML({
extractStyles: true,
extractAttributes: true,
maxDepth: 2
})
})
});
map.addLayer(HPC);
아마도 kml이 잘못 되었나요? 내가 그것을 통해 확인 : http://kmlvalidator.com/home.htm 및 실패했습니다. – Jonathan