我想用EPSG:31466投影创建一个传单地图。我已经包括了proj4库和proj4leaflet插件。我计划使用这层包括fp_plan WMS服务。
我尝试使用以下方法(小提琴)设置我的地图。
// Define CRS (EPSG:31466)
var rs31466 = new L.Proj.CRS(
'EPSG:31466',
'+proj=tmerc +lat_0=0 +lon_0=6 +k=1 +x_0=2500000 +y_0=0 +ellps=bessel +datum=potsdam +units=m +no_defs',
{
origin: [
2490547.1867,
5958700.0208
],
resolutions: [
10000000 * 0.00028, //GroundResolutionInMeter * OGC_PixelWidth
5000000 * 0.00028,
2500000 * 0.00028,
1000000 * 0.00028,
500000 * 0.00028,
250000 * 0.00028,
100000 * 0.00028,
50000 * 0.00028
]
}
);
// Create the WMS layer
var wmsLayer = L.tileLayer.wms('http://xplanung.lkee.de/xplan-wms-neu/services/wms', {
version: '1.3.0',
crs: rs31466,
layers: 'fp_plan',
format: 'image/png',
transparent: false,
// The `continuousWorld` property should be set to make sure Leaflet doesn't
// try to wrap or cut off the tiles on Spherical Mercator's bounds.
continuousWorld: true
});
// Define the map
var map = L.map('map', {
crs: rs31466,
center:[51.310, 13.393],
zoom: 1,
layers: [
wmsLayer
]
});我本以为会看到这样的景象:

请求瓷砖,但该部分不包含预期的层信息。如果我使用EPSG:25833投影,就会以预期的方式(小提琴)获取和呈现tiles。
发布于 2016-02-15 19:36:12
我已经推出了一个例子,更改了瓷砖坐标的来源,并添加了一个矩形来检查一般的地理坐标。
它确实请求瓷砖,在我看来,请求的BBOXes坐标很好,但我只能看到白色的瓷砖。
也许这个例子能帮你看清出了什么问题?
编辑
对于定制CRSs上的WMS1.3请求,传单似乎不尊重坐标顺序(东北或偏北)。我想这是一只传单虫。
同时,我用一个黑了的更新了示例函数L.TileLayer.WMS.getTileUrl -现在它似乎加载OK。
https://stackoverflow.com/questions/35337356
复制相似问题