I am trying to call a WMS service but the BBOX parameter doesn't seem to be working. The problem is that BBOX value isn't taken into account and still the whole world is shown. My code is as follows
map = new ol.Map({ target: 'map', layers: [
new ol.layer.Tile({
source: new ol.source.OSM(),name:'Map'
}),
new ol.layer.Image({
name:'Fires',
source: new ol.source.ImageWMS({
url: 'https://firms.modaps.eosdis.nasa.gov/wms',
params: {'LAYERS': 'fires_viirs_24','MAP_KEY':'c25ad450306982d960f6dac44bc80059',
'COLORS':'127+9+9','SIZE':'10','SYMBOLS':'triangle',
'SRS':'EPSG:3857','WIDTH':'1024','BBOX':'18.808594,34.615127,29.047852,41.902277'}
})
}) ], view: new ol.View({
center: ol.proj.fromLonLat([23.8567, 38.5204]),
zoom: 6 }) });
Here follows the codepen