Why won't my MapServer WMS show in Leaflet when I use STATUS ON
in my layer in the map file, but when I change to STATUS DEFAULT
it does, but all layers are displayed.
LAYER
NAME Jalan
DATA mks_road
METADATA
WMS_TITLE "jalan"
WMS_SRS "EPSG:4326"
END
STATUS ON
TYPE LINE
CLASS
NAME "Jalan"
STYLE
COLOR 185 0 0
END
END
END
and my script is:
var mapserver = 'http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/map/leaf.map&';
var jalan = new L.tileLayer.wms(mapserver, {
layers: 'jalan',
format: 'image/png',
srs: 'EPSG:4326',
transparent: true
});
i got this statement when i use wms "GetMap" on Mapserver msWMSLoadGetMapParams(): WMS server error. Missing required parameter SRS
status default
turns the layer on permanently, so MapServer will always send it.msWMSLoadGetMapParams(): WMS server error. Missing required parameter SRS