wms source with styles

This commit is contained in:
Yin.T430u 2019-01-03 02:32:42 +08:00
parent ee23c6e33b
commit 018131325d
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ function initForm() {
var $btnSubmit = $('#js-btn-submit');
var $btnClear = $('#js-btn-clear');
LoadingButton.init($btnSubmit)
LoadingButton.init($btnSubmit);
var clear = function () {
MapBase.clear();

View File

@ -77,7 +77,7 @@ $(function () {
}
function _initTempLayer() {
tempLayer = L.WMS.source(spiWmsBase).getLayer('spi:temp')
tempLayer = L.WMS.source(spiWmsBase, {styles: 'spi'}).getLayer('spi:temp')
}
function _toggleTempLayer(status) {