AnsweredAssumed Answered

WMS Open BC Data - with ResourceInfo (Non Proxy)

Question asked by dfresh22 on Aug 8, 2018
Latest reply on Aug 13, 2018 by dfresh22

Hey Folks,


having trouble adding a WMS from BC open data, into my application that is not using a proxy.


An example layer is here on the BC government website.

Correctional Facilities - WMS getCapabilities request - Data Catalogue 


this example works fine with the following code. however since their sandbox uses a proxy, it works fine and no 'ResourceInfo' object is needed.

var map;

require(["esri/map", "esri/layers/WMSLayer", "esri/config", "dojo/domReady!"],
function(Map, WMSLayer, esriConfig) { = "/proxy/";"");


map = new Map("map", {
basemap: "streets",
center: [-98, 37],
zoom: 5

var wmsLayer = new WMSLayer("", {
format: "png",
visibleLayers: [0]




however in my application this simply won't work, as I don't have a proxy. I am a bit clueless what I should add for resource info and have tried many other combinations.


Anyone have any luck with this?