AnsweredAssumed Answered

I want to consume a erdas apolla WMS service using ArcGIS Javascript API on my GIS application, but the WMS service is not rendering on my map, how should I authenticate the username and password?

Question asked by santoshf2 on May 22, 2017
Latest reply on May 24, 2017 by fcbassongis

I am using the following code


<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Map with WMS</title>

<link rel="stylesheet" href="">
<link rel="stylesheet" href="">
html, body, #map {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
body {
background-color: #FFF;
overflow: hidden;
font-family: "Trebuchet MS";
<script src=""></script>

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: [2]




<div id="map">


Where do I type in the username and password.