Leaflet + EPSG: 31466 WMS Level

I want to create a sheet map using the EPSG projection : 31466 . I have included the library proj4as well as the plugin proj4leaflet. I plan to enable this WMS service using a layer fp_plan.

I tried to customize my map using the following approach ( fiddle ).

// 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 bounds.
    continuousWorld: true
});

// Define the map
var map = L.map('map', {
  crs: rs31466,
  center:[51.310, 13.393],
  zoom: 1,
  layers: [
    wmsLayer
  ]
});

I would expect to see something like this:

Expected result

Fragments requested, but the section does not contain the expected layer information. If I use the EPSG project : 25833 , fragments are selected and displayed exactly waiting ( violin ).

+4
source share
1

, , .

, , BBOXes , .

, , ?

[]

, Leaflet (- -) WMS 1.3 CRS. , .

, L.TileLayer.WMS.getTileUrl - , , .

+1

Source: https://habr.com/ru/post/1628289/


All Articles