WMS Services using Arcgis JS API 3.22

346
0
10-04-2017 11:04 AM
EvelynHernandez
Occasional Contributor III

Hello everyone,

Is there a way how to load in a map a geoserver wms layer?

I have after the getMap parameter the following:

"layers=sensor:sensores&styles=&bbox=-7981032.1474,-3914827.073,-7972998.7693,-3900987.9552&width=445&height=768&srs=EPSG:3857&format=application/openlayers"

I have been looking on the arcgis js api and i know there is a WMSLayer feature to load this kind of maps, but im not sure how to load those parameters in a option var correctly.

I tried to put my wms service (which is from geoserver) in the example provided for the arcgis api website but no results.

I hope u guys can help me.

Thanks in advice!.

0 Kudos
0 Replies