Skip to main content
spelling
Source Link
nmtoken
  • 13.6k
  • 5
  • 39
  • 91

wrong Wrong path when loading wmsWMS layer

I've got an issue I am using the geoserverGeoServer of boundlessSuite and when I tried to load a layer in openlayer3OpenLayers 3 it doesn't show on the map. I found the problem but can't fix it.

On my geoserverGeoServer when I use the preview to see my layer this is the urlURL:

http://localhost:8080/geoserver/test1/wms?service=WMS&version=1.1.0&request=GetMap&layers=test1:BoiteOptiqueTest&styles=&bbox=514092.0239487532,1977542.5898263564,522107.6474402136,1981434.1000406644&width=768&height=372&srs=EPSG:32620&format=text%2Fhtml%3B%20subtype%3Dopenlayers

but when I inspect element on chromeChrome this is what it tries to load:

http://localhost:8080/geoserver/test1/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test1%3ABoiteOptiqueTest&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-10018754.171394622%2C2504688.542848654%2C-7514065.628545966%2C5009377.08569731

howHow can I fix that? here

Here is my code  :

  var layers = [
       new ol.layer.Tile({
         source: new ol.source.OSM()
       }),
       new ol.layer.Tile({
         extent: [-13884991, 2870341, -7455066, 6338219],
         source: new ol.source.TileWMS({
           url: 'http://localhost:8080/geoserver/test1/wms?',
           params: {'LAYERS': 'test1:BoiteOptiqueTest'},
           serverType: 'geoserver',
           isBaseLayer: false,
           projection: 'EPSG:4326'

         })
       })
    ];
  var map = new ol.Map({
    layers: layers,
    target: 'map',
    view: new ol.View({
      projection: 'EPSG:4326',
      center: [0, 0],
      zoom: 2
    })
  });

I tried using different projectionprojections like ESPGEPSG::32620, ESPGEPSG::900913 but nothing works.

wrong path when loading wms layer

I've got an issue I am using the geoserver of boundlessSuite and when I tried to load a layer in openlayer3 it doesn't show on the map. I found the problem but can't fix it.

On my geoserver when I use the preview to see my layer this is the url:

http://localhost:8080/geoserver/test1/wms?service=WMS&version=1.1.0&request=GetMap&layers=test1:BoiteOptiqueTest&styles=&bbox=514092.0239487532,1977542.5898263564,522107.6474402136,1981434.1000406644&width=768&height=372&srs=EPSG:32620&format=text%2Fhtml%3B%20subtype%3Dopenlayers

but when I inspect element on chrome this is what it tries to load:

http://localhost:8080/geoserver/test1/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test1%3ABoiteOptiqueTest&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-10018754.171394622%2C2504688.542848654%2C-7514065.628545966%2C5009377.08569731

how can I fix that? here is my code  :

  var layers = [
       new ol.layer.Tile({
         source: new ol.source.OSM()
       }),
       new ol.layer.Tile({
         extent: [-13884991, 2870341, -7455066, 6338219],
         source: new ol.source.TileWMS({
           url: 'http://localhost:8080/geoserver/test1/wms?',
           params: {'LAYERS': 'test1:BoiteOptiqueTest'},
           serverType: 'geoserver',
           isBaseLayer: false,
           projection: 'EPSG:4326'

         })
       })
    ];
  var map = new ol.Map({
    layers: layers,
    target: 'map',
    view: new ol.View({
      projection: 'EPSG:4326',
      center: [0, 0],
      zoom: 2
    })
  });

I tried using different projection like ESPG:32620, ESPG:900913 but nothing works.

Wrong path when loading WMS layer

I've got an issue I am using GeoServer of boundlessSuite and when I tried to load a layer in OpenLayers 3 it doesn't show on the map. I found the problem but can't fix it.

On my GeoServer when I use the preview to see my layer this is the URL:

http://localhost:8080/geoserver/test1/wms?service=WMS&version=1.1.0&request=GetMap&layers=test1:BoiteOptiqueTest&styles=&bbox=514092.0239487532,1977542.5898263564,522107.6474402136,1981434.1000406644&width=768&height=372&srs=EPSG:32620&format=text%2Fhtml%3B%20subtype%3Dopenlayers

but when I inspect element on Chrome this is what it tries to load:

http://localhost:8080/geoserver/test1/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test1%3ABoiteOptiqueTest&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-10018754.171394622%2C2504688.542848654%2C-7514065.628545966%2C5009377.08569731

How can I fix that?

Here is my code:

  var layers = [
       new ol.layer.Tile({
         source: new ol.source.OSM()
       }),
       new ol.layer.Tile({
         extent: [-13884991, 2870341, -7455066, 6338219],
         source: new ol.source.TileWMS({
           url: 'http://localhost:8080/geoserver/test1/wms?',
           params: {'LAYERS': 'test1:BoiteOptiqueTest'},
           serverType: 'geoserver',
           isBaseLayer: false,
           projection: 'EPSG:4326'

         })
       })
    ];
  var map = new ol.Map({
    layers: layers,
    target: 'map',
    view: new ol.View({
      projection: 'EPSG:4326',
      center: [0, 0],
      zoom: 2
    })
  });

I tried using different projections like EPSG::32620, EPSG::900913 but nothing works.

added 1 character in body
Source Link

I've got an issue I am using the geoserver of boundlessSuite and when I tried to load a layer in openlayer3 it doesn't show on the map. I found the problem but can't fix it.

On my geoserver when I use the preview to see my layer this is the url:

http://localhost:8080/geoserver/test1/wms?service=WMS&version=1.1.0&request=GetMap&layers=test1:BoiteOptiqueTest&styles=&bbox=514092.0239487532,1977542.5898263564,522107.6474402136,1981434.1000406644&width=768&height=372&srs=EPSG:32620&format=text%2Fhtml%3B%20subtype%3Dopenlayers

but when I inspect element on chrome this is what it tries to load:

http://localhost:8080/geoserver/test1/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test1%3ABoiteOptiqueTest&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-10018754.171394622%2C2504688.542848654%2C-7514065.628545966%2C5009377.08569731

how can I fix that? here is my code :

  var layers = [
       new ol.layer.Tile({
         source: new ol.source.OSM()
       }),
       new ol.layer.Tile({
         extent: [-13884991, 2870341, -7455066, 6338219],
         source: new ol.source.TileWMS({
           url: 'http://localhost:8080/geoserver/test1/wms?',
           params: {'LAYERS': 'test1:BoiteOptiqueTest'},
           serverType: 'geoserver',
           isBaseLayer: false,
           projection: 'EPSG:4326'

         })
       })
    ];
  var map = new ol.Map({
    layers: layers,
    target: 'map',
    view: new ol.View({
      projection: 'EPSG:4326',
      center: [0, 0],
      zoom: 2
    })
  });

I tried using different projection like ESPG:432632620, ESPG:900913 but nothing works.

I've got an issue I am using the geoserver of boundlessSuite and when I tried to load a layer in openlayer3 it doesn't show on the map. I found the problem but can't fix it.

On my geoserver when I use the preview to see my layer this is the url:

http://localhost:8080/geoserver/test1/wms?service=WMS&version=1.1.0&request=GetMap&layers=test1:BoiteOptiqueTest&styles=&bbox=514092.0239487532,1977542.5898263564,522107.6474402136,1981434.1000406644&width=768&height=372&srs=EPSG:32620&format=text%2Fhtml%3B%20subtype%3Dopenlayers

but when I inspect element on chrome this is what it tries to load:

http://localhost:8080/geoserver/test1/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test1%3ABoiteOptiqueTest&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-10018754.171394622%2C2504688.542848654%2C-7514065.628545966%2C5009377.08569731

how can I fix that? here is my code :

  var layers = [
       new ol.layer.Tile({
         source: new ol.source.OSM()
       }),
       new ol.layer.Tile({
         extent: [-13884991, 2870341, -7455066, 6338219],
         source: new ol.source.TileWMS({
           url: 'http://localhost:8080/geoserver/test1/wms?',
           params: {'LAYERS': 'test1:BoiteOptiqueTest'},
           serverType: 'geoserver',
           isBaseLayer: false,
           projection: 'EPSG:4326'

         })
       })
    ];
  var map = new ol.Map({
    layers: layers,
    target: 'map',
    view: new ol.View({
      projection: 'EPSG:4326',
      center: [0, 0],
      zoom: 2
    })
  });

I tried using different projection like ESPG:4326, ESPG:900913 but nothing works.

I've got an issue I am using the geoserver of boundlessSuite and when I tried to load a layer in openlayer3 it doesn't show on the map. I found the problem but can't fix it.

On my geoserver when I use the preview to see my layer this is the url:

http://localhost:8080/geoserver/test1/wms?service=WMS&version=1.1.0&request=GetMap&layers=test1:BoiteOptiqueTest&styles=&bbox=514092.0239487532,1977542.5898263564,522107.6474402136,1981434.1000406644&width=768&height=372&srs=EPSG:32620&format=text%2Fhtml%3B%20subtype%3Dopenlayers

but when I inspect element on chrome this is what it tries to load:

http://localhost:8080/geoserver/test1/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test1%3ABoiteOptiqueTest&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-10018754.171394622%2C2504688.542848654%2C-7514065.628545966%2C5009377.08569731

how can I fix that? here is my code :

  var layers = [
       new ol.layer.Tile({
         source: new ol.source.OSM()
       }),
       new ol.layer.Tile({
         extent: [-13884991, 2870341, -7455066, 6338219],
         source: new ol.source.TileWMS({
           url: 'http://localhost:8080/geoserver/test1/wms?',
           params: {'LAYERS': 'test1:BoiteOptiqueTest'},
           serverType: 'geoserver',
           isBaseLayer: false,
           projection: 'EPSG:4326'

         })
       })
    ];
  var map = new ol.Map({
    layers: layers,
    target: 'map',
    view: new ol.View({
      projection: 'EPSG:4326',
      center: [0, 0],
      zoom: 2
    })
  });

I tried using different projection like ESPG:32620, ESPG:900913 but nothing works.

added 159 characters in body
Source Link

I've got an issue I am using the geoserver of boundlessSuite and when I tried to load a layer in openlayer3 it doesn't show on the map. I found the problem but can't fix it.

On my geoserver when I use the preview to see my layer this is the url:

http://localhost:8080/geoserver/test1/wms?service=WMS&version=1.1.0&request=GetMap&layers=test1:BoiteOptiqueTest&styles=&bbox=514092.0239487532,1977542.5898263564,522107.6474402136,1981434.1000406644&width=768&height=372&srs=EPSG:32620&format=text%2Fhtml%3B%20subtype%3Dopenlayers

but when I inspect element on chrome this is what it tries to load:

http://localhost:8080/geoserver/test1/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test1%3ABoiteOptiqueTest&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-10018754.171394622%2C2504688.542848654%2C-7514065.628545966%2C5009377.08569731

how can I fix that? here is my code :

  var layers = [
       new ol.layer.Tile({
         source: new ol.source.OSM()
       }),
       new ol.layer.Tile({
         extent: [-13884991, 2870341, -7455066, 6338219],
         source: new ol.source.TileWMS({
           url: 'http://localhost:8080/geoserver/test1/wms?',
           params: {'LAYERS': 'test1:BoiteOptiqueTest'},
           serverType: 'geoserver',
           isBaseLayer: false,
           projection: 'EPSG:4326'

         })
       })
    ];
  var map = new ol.Map({
    layers: layers,
    target: 'map',
    view: new ol.View({
      projection: 'EPSG:4326',
      center: [0, 0],
      zoom: 2
    })
  });

I tried using different projection like ESPG:4326, ESPG:900913 but nothing works.

I've got an issue I am using the geoserver of boundlessSuite and when I tried to load a layer in openlayer3 it doesn't show on the map. I found the problem but can't fix it.

On my geoserver when I use the preview to see my layer this is the url:

http://localhost:8080/geoserver/test1/wms?service=WMS&version=1.1.0&request=GetMap&layers=test1:BoiteOptiqueTest&styles=&bbox=514092.0239487532,1977542.5898263564,522107.6474402136,1981434.1000406644&width=768&height=372&srs=EPSG:32620&format=text%2Fhtml%3B%20subtype%3Dopenlayers

but when I inspect element on chrome this is what it tries to load:

http://localhost:8080/geoserver/test1/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test1%3ABoiteOptiqueTest&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-10018754.171394622%2C2504688.542848654%2C-7514065.628545966%2C5009377.08569731

how can I fix that? here is my code :

  var layers = [
       new ol.layer.Tile({
         source: new ol.source.OSM()
       }),
       new ol.layer.Tile({
         extent: [-13884991, 2870341, -7455066, 6338219],
         source: new ol.source.TileWMS({
           url: 'http://localhost:8080/geoserver/test1/wms?',
           params: {'LAYERS': 'test1:BoiteOptiqueTest'},
           serverType: 'geoserver',
           isBaseLayer: false,
         })
       })
    ];
  var map = new ol.Map({
    layers: layers,
    target: 'map',
    view: new ol.View({
      center: [0, 0],
      zoom: 2
    })
  });

I've got an issue I am using the geoserver of boundlessSuite and when I tried to load a layer in openlayer3 it doesn't show on the map. I found the problem but can't fix it.

On my geoserver when I use the preview to see my layer this is the url:

http://localhost:8080/geoserver/test1/wms?service=WMS&version=1.1.0&request=GetMap&layers=test1:BoiteOptiqueTest&styles=&bbox=514092.0239487532,1977542.5898263564,522107.6474402136,1981434.1000406644&width=768&height=372&srs=EPSG:32620&format=text%2Fhtml%3B%20subtype%3Dopenlayers

but when I inspect element on chrome this is what it tries to load:

http://localhost:8080/geoserver/test1/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=test1%3ABoiteOptiqueTest&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-10018754.171394622%2C2504688.542848654%2C-7514065.628545966%2C5009377.08569731

how can I fix that? here is my code :

  var layers = [
       new ol.layer.Tile({
         source: new ol.source.OSM()
       }),
       new ol.layer.Tile({
         extent: [-13884991, 2870341, -7455066, 6338219],
         source: new ol.source.TileWMS({
           url: 'http://localhost:8080/geoserver/test1/wms?',
           params: {'LAYERS': 'test1:BoiteOptiqueTest'},
           serverType: 'geoserver',
           isBaseLayer: false,
           projection: 'EPSG:4326'

         })
       })
    ];
  var map = new ol.Map({
    layers: layers,
    target: 'map',
    view: new ol.View({
      projection: 'EPSG:4326',
      center: [0, 0],
      zoom: 2
    })
  });

I tried using different projection like ESPG:4326, ESPG:900913 but nothing works.

edited tags
Link
Ian Turton
  • 84.2k
  • 6
  • 94
  • 190
Loading
Source Link
Loading