Skip to main content
edited tags
Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
added 22 characters in body; edited title
Source Link
Taras
  • 34.1k
  • 4
  • 73
  • 148

How do I switch Switching the coordinate system in Leaflet?

I am using Leaflet to work with the map. I I have a WMS server: L.tileLayer.wmsL.tileLayer.wms.

function setWMSLayer(theme) {
    if (!theme.includes("SeaChart_")) theme = "SeaChart_" + theme;
    const url = `http://${FLASK_HOST}/cgi-bin/mapserv?map=/var/www/s57demo/data/map/${theme}.map`;
    wmsLocal.setUrl(url);
    wmsLocal.setParams({
        layers: theme
    });
}

const wmsLocal = L.tileLayer.wms('', {
    noWrap: false
});
function setWMSLayer(theme) {
    if (!theme.includes("SeaChart_")) theme = "SeaChart_" + theme;
    const url = `http://${FLASK_HOST}/cgi-bin/mapserv?map=/var/www/s57demo/data/map/${theme}.map`;
    wmsLocal.setUrl(url);
    wmsLocal.setParams({
        layers: theme
    });
}

const wmsLocal = L.tileLayer.wms('', {
    noWrap: false
});

Leaflet uses 3857 by default. I

I want to understand how I can switch the coordinate system. I understand that I can use the proj4.js and proj4leaflet.js plugins. I use them, and understand how they work. But I'm not clear on how exactly I can switch my coordinate system. Additionally, I have my .map files, which also have their own projection parameters:

How do I switch the coordinate system in Leaflet?

I am using Leaflet to work with the map. I have a WMS server: L.tileLayer.wms.

function setWMSLayer(theme) {
    if (!theme.includes("SeaChart_")) theme = "SeaChart_" + theme;
    const url = `http://${FLASK_HOST}/cgi-bin/mapserv?map=/var/www/s57demo/data/map/${theme}.map`;
    wmsLocal.setUrl(url);
    wmsLocal.setParams({
        layers: theme
    });
}

const wmsLocal = L.tileLayer.wms('', {
    noWrap: false
});

Leaflet uses 3857 by default. I want to understand how I can switch the coordinate system. I understand that I can use the proj4.js and proj4leaflet.js plugins. I use them, understand how they work. But I'm not clear on how exactly I can switch my coordinate system. Additionally, I have my .map files, which also have their own projection parameters:

Switching the coordinate system in Leaflet

I am using Leaflet to work with the map. I have a WMS server: L.tileLayer.wms.

function setWMSLayer(theme) {
    if (!theme.includes("SeaChart_")) theme = "SeaChart_" + theme;
    const url = `http://${FLASK_HOST}/cgi-bin/mapserv?map=/var/www/s57demo/data/map/${theme}.map`;
    wmsLocal.setUrl(url);
    wmsLocal.setParams({
        layers: theme
    });
}

const wmsLocal = L.tileLayer.wms('', {
    noWrap: false
});

Leaflet uses 3857 by default.

I want to understand how I can switch the coordinate system. I understand that I can use the proj4.js and proj4leaflet.js plugins. I use them and understand how they work. But I'm not clear on how exactly I can switch my coordinate system. Additionally, I have my .map files, which also have their own projection parameters:

naming; removed helpme and thanks
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

How do I switch the coordinate system in leafletLeaflet?

I am using leafletLeaflet to work with the map. I have a wmsWMS server: L.tileLayer.wms.

I have read a lot of information on the internet about this, but everywhere the information is different and unclear to me. Can someone help me and explain the most important points so that I understand how I can change the coordinate system? Thanks.

How do I switch the coordinate system in leaflet?

I am using leaflet to work with the map. I have a wms server: L.tileLayer.wms.

I have read a lot of information on the internet about this, but everywhere the information is different and unclear to me. Can someone help me and explain the most important points so that I understand how I can change the coordinate system? Thanks.

How do I switch the coordinate system in Leaflet?

I am using Leaflet to work with the map. I have a WMS server: L.tileLayer.wms.

I have read a lot of information on the internet about this, but everywhere the information is different and unclear to me. Can someone explain the most important points so that I understand how I can change the coordinate system?

added 363 characters in body
Source Link
bobr
  • 21
  • 2
Loading
Source Link
bobr
  • 21
  • 2
Loading