AnsweredAssumed Answered

ArcGis Javascript API draws a polyline, but polyline does't show up.

Question asked by aldounix on Feb 17, 2017
Latest reply on Feb 17, 2017 by thejus.kambi

Hi, there, 

I am new and just start to learn arcgis Javascript API, I try to draw a polyline on map using following code, but polyline doesn't show up. I have searched solution online and have tried so many ways, but can not make it work. Could you please take a look what is missing? I really appreciate your clue. 
Thanks a lot.
Eddy H.
<!DOCTYPE html>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width,user-scalable=no">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
    <title>Maps Electrical Power Distribtution</title>
    <link rel="stylesheet" href="">
      html, body, #mainWindow {
        font-family: sans-serif; 
        height: 100%; 
        width: 100%; 
      html, body {
        margin: 0; 
        padding: 0;
      #header {
        height: 80px; 
        overflow: auto;
        padding: 0.5em;
    <script src=""></script>
      var map, toolbar, symbol, geomTask;
"dijit/layout/ContentPane",  "dojo/domReady!"
], function(Map, Draw, Graphic, Polyline, SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol,  parser) 
map = new Map("map", {
 basemap: "streets",
 center: [-122.148466, 47.585580],
 zoom: 13
var singlePathPolyline = new Polyline();
singlePathPolyline.addPath([[-123.2, 48.9], [-122.148, 47.585], [-124.50, 49.4]]);
  <body class="nihilo">
  <div id="mainWindow" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline'">
    <div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"></div>