<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Drawing Military Symbols on Map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-military-symbols-on-map/m-p/628808#M58721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta charset="utf-8"&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;2D Milsymbol Editor Final&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.29/esri/css/esri.css"&amp;gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.29/dijit/themes/claro/claro.css"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="https://js.arcgis.com/3.29/"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;script src="http://xxxxxxxx:8080/tacticalTactical/milsymbol2D.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="http://xxxxxxxx:8080/tacticalTactical/milsymbol-unit-generator.css" type="text/css"&amp;gt;&lt;BR /&gt; &amp;lt;script src="http://xxxxxxxx:8080/tacticalTactical/milsymbol-unit-generator.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;script src="Scripts/LayoutManager.js"&amp;gt;&amp;lt;/script&amp;gt; &lt;BR /&gt; &amp;lt;link rel="stylesheet" type="text/css" href="CSS/Main.css"/&amp;gt;&lt;BR /&gt; &amp;lt;script&amp;gt;&lt;BR /&gt; var myMap;&lt;BR /&gt; var graphictactical;&lt;BR /&gt; var graphicLayertactical;&lt;BR /&gt; var graphicLayertacticalPicker;&lt;BR /&gt; var symbolFullList;&lt;BR /&gt; var svgGlobaleCodeImg;&lt;BR /&gt; var pElementId;&lt;BR /&gt; var editToolbar, ctxMenuForGraphics, ctxMenuForMap;&lt;BR /&gt; var tacticalFeatureLayer;&lt;BR /&gt; var queryParams;&lt;BR /&gt; var pictureMarkerSymbol;&lt;BR /&gt; var graphic;&lt;BR /&gt; var currentFeature = [];&lt;BR /&gt; var loadFeature = [];&lt;BR /&gt; var moveFeature = [];&lt;BR /&gt; var deleteFeature = [];&lt;BR /&gt; var globalSavePlanName;&lt;BR /&gt; var globalSaveAsPlanName;&lt;BR /&gt; var currentCount;&lt;BR /&gt; var myTacticalSymbol;&lt;BR /&gt; var moveGraphicFeature;&lt;BR /&gt; var currentGraphic;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/geometry/Point",&lt;BR /&gt; "esri/geometry/Polygon",&lt;BR /&gt; "esri/graphic", "dojo/_base/array",&lt;BR /&gt; "esri/symbols/PictureMarkerSymbol",&lt;BR /&gt; "esri/symbols/SimpleFillSymbol",&lt;BR /&gt; "esri/layers/GraphicsLayer",&lt;BR /&gt; "esri/layers/FeatureLayer", "esri/tasks/query",&lt;BR /&gt; "esri/toolbars/edit",&lt;BR /&gt; "dijit/Menu", "dijit/MenuItem",&lt;BR /&gt; "dojo/domReady!"&lt;BR /&gt; ], function (&lt;BR /&gt; Map,&lt;BR /&gt; Point, Polygon, Graphic, arrayUtils,&lt;BR /&gt; PictureMarkerSymbol, SimpleMarkerSymbol, GraphicsLayer, FeatureLayer, Query ,Edit, Menu, MenuItem&lt;BR /&gt; ) {&lt;/P&gt;&lt;P&gt;pictureMarkerSymbol = PictureMarkerSymbol;&lt;BR /&gt; graphic = Graphic;&lt;/P&gt;&lt;P&gt;myMap = new Map("viewDiv",&lt;BR /&gt; {&lt;BR /&gt; basemap: "streets",&lt;BR /&gt; center: [-80, 35],&lt;BR /&gt; zoom: 3,&lt;BR /&gt; sliderPosition: "top-right"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dojo.connect(myMap, "onClick", addGraphicsSVG);&lt;/P&gt;&lt;P&gt;myMap.on("load", createToolbarAndContextMenu);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; graphicLayertactical = new esri.layers.GraphicsLayer();&lt;BR /&gt; myMap.addLayer(graphicLayertactical);&lt;/P&gt;&lt;P&gt;graphicLayertacticalPicker = new esri.layers.GraphicsLayer();&lt;BR /&gt; myMap.addLayer(graphicLayertacticalPicker);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; tacticalFeatureLayer = new FeatureLayer("https://xxxxxxx/server/rest/services/xxxxxxl/FeatureServer/0", {&lt;BR /&gt; //mode: FeatureLayer.SELECTION_NEW,&lt;BR /&gt; outFields: ["*"],&lt;BR /&gt; visible: false&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;myMap.addLayer(tacticalFeatureLayer);&lt;/P&gt;&lt;P&gt;initSymbols(symbolFullList);&lt;/P&gt;&lt;P&gt;queryParams = new esri.tasks.Query();&lt;/P&gt;&lt;P&gt;currentCount = 0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // Adding Plan into DropDown list - Tactical Plan Load &lt;BR /&gt; addTacticalPlan(queryParams, tacticalFeatureLayer);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; cbTacticalPlanLoad.onchange = function ()&lt;BR /&gt; {&lt;BR /&gt; var planNameValue = document.getElementById("cbTacticalPlanLoad").value;&lt;/P&gt;&lt;P&gt;document.getElementById("txtSave").value = planNameValue;&lt;/P&gt;&lt;P&gt;globalSavePlanName = planNameValue;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Save Tactical Plan &lt;BR /&gt; saveBtnTacticalPlan.onclick = function () {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; if (globalSavePlanName != "") {&lt;/P&gt;&lt;P&gt;saveTacticalFeature(currentFeature, globalSavePlanName);&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; alert("Please fill Plan Name in order to save");&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;// Save As Tactical Plan &lt;BR /&gt; saveAsBtnTacticalPlan.onclick = function () {&lt;/P&gt;&lt;P&gt;globalSaveAsPlanName = document.getElementById("txtSaveAs").value;&lt;/P&gt;&lt;P&gt;// alert(globalSaveAsPlanName);&lt;BR /&gt; &lt;BR /&gt; if (globalSaveAsPlanName != "")&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;saveTacticalFeature(currentFeature, globalSaveAsPlanName);&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; alert("Enter Tactical Plan");&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Calling Save plan from Save and SaveAs Button &lt;BR /&gt; function saveTacticalFeature(pCurrentFeatures, pPlanName)&lt;BR /&gt; {&lt;BR /&gt; //&lt;BR /&gt; var addedFeatures = pCurrentFeatures.map(function (item) {&lt;BR /&gt; var mappedItem = item;&lt;BR /&gt; mappedItem.attributes["MilitarySymbologyCode"] = item.attributes.svgCode;&lt;BR /&gt; mappedItem.attributes["PlanName"] = pPlanName;&lt;BR /&gt; return mappedItem;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var promise = tacticalFeatureLayer.applyEdits(addedFeatures, null, null);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function updateCurrentFeature(pSelected) {&lt;/P&gt;&lt;P&gt;// console.log("Current Graphic 1 " + pSelected.geometry.x);&lt;/P&gt;&lt;P&gt;// console.log("Selected Graphic 2" + moveGraphicFeature.geometry.x);&lt;/P&gt;&lt;P&gt;// Update Feature Move geomtery&lt;/P&gt;&lt;P&gt;for (var i in currentFeature)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;var tempID = moveGraphicFeature.attributes["svgCode"];&lt;/P&gt;&lt;P&gt;if (currentFeature&lt;I&gt;.SVGCodeID == tempID)&lt;BR /&gt; {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;console.log(currentFeature&lt;I&gt;.SVGx); &lt;BR /&gt; console.log(currentFeature&lt;I&gt;.SVGy);&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; currentFeature&lt;I&gt;.SVGx = 102.35;&lt;BR /&gt; currentFeature&lt;I&gt;.SVGy = 102.35;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;console.log(currentFeature&lt;I&gt;.SVGx);&lt;BR /&gt; console.log(currentFeature&lt;I&gt;.SVGy);&lt;BR /&gt; &lt;BR /&gt; }&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// currentFeature.push({ SVGCodeID: moveGraphicFeature.attributes["svgCode"], SVGID: moveGraphicFeature.attributes["countID"], SVGStatus: "CURRENT", SVGx: pSelected.geometry.x, SVGy: pSelected.geometry.y})&lt;/P&gt;&lt;P&gt;// console.log("currentFeature: " + currentFeature); &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; // Add Graphics on Map CLick &lt;BR /&gt; function addGraphicsSVG(evt)&lt;BR /&gt; {&lt;BR /&gt; var svgTacticalCode = null;&lt;/P&gt;&lt;P&gt;// svgTacticalCode = svgGlobaleCodeImg;&lt;/P&gt;&lt;P&gt;svgTacticalCode = document.getElementById("svgCode").innerHTML;&lt;/P&gt;&lt;P&gt;console.log(svgTacticalCode);&lt;/P&gt;&lt;P&gt;console.log("SymbolEditorMenu : " + document.getElementById("SymbolEditorMenu").style.display);&lt;/P&gt;&lt;P&gt;if (document.getElementById("SymbolEditorMenu").style.display == "") {&lt;/P&gt;&lt;P&gt;addGraphicsOnCondition(graphicLayertactical, svgTacticalCode, evt);&lt;/P&gt;&lt;P&gt;} else if (document.getElementById("SymbolEditorMenu").style.display == "block") {&lt;/P&gt;&lt;P&gt;addGraphicsOnCondition(graphicLayertactical, svgTacticalCode, evt);&lt;/P&gt;&lt;P&gt;} else if (document.getElementById("SymbolPickerMenu").style.display == "block") {&lt;/P&gt;&lt;P&gt;addGraphicsOnCondition(graphicLayertactical, svgGlobaleCodeImg, evt);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;// This function Calling by Add Graphics - On Map Click &lt;BR /&gt; function addGraphicsOnCondition(pGraphicsLayer, pSVGCode, pEvt)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;var currentStatus = "CURRENT";&lt;/P&gt;&lt;P&gt;var mysymbol = new MS.symbol(pSVGCode, { size: 30 }).getMarker();&lt;/P&gt;&lt;P&gt;myTacticalSymbol = mysymbol;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var symboltactical = new PictureMarkerSymbol({&lt;/P&gt;&lt;P&gt;"url": mysymbol.toDataURL(),&lt;BR /&gt; "width": Math.floor(mysymbol.width),&lt;BR /&gt; "height": Math.floor(mysymbol.height),&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;currentCount += 1;&lt;/P&gt;&lt;P&gt;var currentGraphic = new Graphic(pEvt.mapPoint, symboltactical, { "countID": currentCount - 1, "Status": currentStatus, "svgCode": pSVGCode });&lt;BR /&gt; pGraphicsLayer.add(currentGraphic);&lt;BR /&gt; myMap.addLayer(pGraphicsLayer);&lt;/P&gt;&lt;P&gt;var tacticalCode = pSVGCode;&lt;BR /&gt; var tacticalLocationX = pEvt.mapPoint.x.toString();&lt;BR /&gt; var tacticalLocationY = pEvt.mapPoint.y.toString();&lt;/P&gt;&lt;P&gt;// console.log(tacticalCode + " " + tacticalUser + " " + tacticalLocationX + " " + tacticalLocationY);&lt;/P&gt;&lt;P&gt;console.log("pGraphicsLayer" + pGraphicsLayer);&lt;/P&gt;&lt;P&gt;console.log("currentCount" + currentCount);&lt;/P&gt;&lt;P&gt;var feature = { SVGCodeID: tacticalCode, SVGID: currentCount - 1, SVGStatus: currentStatus, SVGx: tacticalLocationX, SVGy: tacticalLocationY, svgGemoetry: pEvt.mapPoint };&lt;BR /&gt; currentFeature.push(currentGraphic)&lt;/P&gt;&lt;P&gt;console.log("svgFeature: " + currentFeature);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function createToolbarAndContextMenu() {&lt;/P&gt;&lt;P&gt;editToolbar = new Edit(myMap);&lt;BR /&gt; dojo.connect(editToolbar, 'onGraphicMoveStop', handleGraphicEditStop);&lt;/P&gt;&lt;P&gt;myMap.on("click", function (evt) {&lt;BR /&gt; editToolbar.deactivate();&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; createGraphicsMenu();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function handleGraphicEditStop(graphic)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;currentGraphic = new esri.Graphic(graphic.geometry, graphic.symbol);&lt;/P&gt;&lt;P&gt;console.log("currentGraphic Function Call " + currentGraphic.geometry.x);&lt;/P&gt;&lt;P&gt;updateCurrentFeature(currentGraphic);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; function createGraphicsMenu() {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ctxMenuForGraphics = new Menu({});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ctxMenuForGraphics.addChild(new MenuItem({&lt;BR /&gt; label: "Move",&lt;BR /&gt; onClick: function ()&lt;BR /&gt; {&lt;BR /&gt; editToolbar.activate(Edit.MOVE, selected);&lt;BR /&gt; moveGraphicFeature = null;&lt;BR /&gt; moveGraphicFeature = selected;&lt;/P&gt;&lt;P&gt;console.log("moveGraphicFeature : " + moveGraphicFeature.geometry.x);&lt;/P&gt;&lt;P&gt;// updateCurrentFeature(selected);&lt;BR /&gt; }&lt;BR /&gt; }));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ctxMenuForGraphics.addChild(new MenuItem({&lt;BR /&gt; label: "Delete",&lt;BR /&gt; onClick: function () {&lt;BR /&gt; graphicLayertactical.remove(selected);&lt;BR /&gt; }&lt;BR /&gt; }));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ctxMenuForGraphics.startup();&lt;/P&gt;&lt;P&gt;graphicLayertactical.on("mouse-over", function (evt) {&lt;BR /&gt; // We'll use this "selected" graphic to enable editing tools&lt;BR /&gt; // on this graphic when the user click on one of the tools&lt;BR /&gt; // listed in the menu.&lt;BR /&gt; selected = evt.graphic;&lt;/P&gt;&lt;P&gt;// Let's bind to the graphic underneath the mouse cursor&lt;BR /&gt; ctxMenuForGraphics.bindDomNode(evt.graphic.getDojoShape().getNode());&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;graphicLayertactical.on("mouse-out", function (evt)&lt;BR /&gt; {&lt;BR /&gt; // console.log("mouse-out" + evt)&lt;BR /&gt; ctxMenuForGraphics.unBindDomNode(evt.graphic.getDojoShape().getNode());&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/P&gt;&lt;P&gt;function show(elementId) {&lt;/P&gt;&lt;P&gt;document.getElementById("SymbolEditorMenu").style.display = "none";&lt;BR /&gt; document.getElementById("SymbolProcessMenu").style.display = "none";&lt;BR /&gt; document.getElementById("SymbolPickerMenu").style.display = "none";&lt;BR /&gt; document.getElementById(elementId).style.display = "block";&lt;BR /&gt; pElementId = null;&lt;BR /&gt; pElementId = elementId;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; function showSelection(checkedID) {&lt;/P&gt;&lt;P&gt;if (document.getElementById('rdLoad').checked)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;document.getElementById("myFormLoad").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSave").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSaveAs").style.display = "none";&lt;BR /&gt; document.getElementById(checkedID).style.display = "block";&lt;BR /&gt; } else if (document.getElementById('rdSave').checked) {&lt;/P&gt;&lt;P&gt;document.getElementById("myFormLoad").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSave").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSaveAs").style.display = "none";&lt;BR /&gt; document.getElementById(checkedID).style.display = "block";&lt;BR /&gt; } else if (document.getElementById('rdSaveAs').checked) {&lt;/P&gt;&lt;P&gt;document.getElementById("myFormLoad").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSave").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSaveAs").style.display = "none";&lt;BR /&gt; document.getElementById(checkedID).style.display = "block";&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;function codeToSymbol(code) {&lt;BR /&gt; return mysymbol = new MS.symbol(code, { size: 30 }).getMarker();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; function loadJSON(path, success, error) {&lt;BR /&gt; var xhr = new XMLHttpRequest();&lt;BR /&gt; xhr.onreadystatechange = function () {&lt;BR /&gt; if (xhr.readyState === XMLHttpRequest.DONE) {&lt;BR /&gt; if (xhr.status === 200) {&lt;BR /&gt; if (success)&lt;BR /&gt; success(JSON.parse(xhr.responseText));&lt;BR /&gt; // alert("Hello STart");&lt;BR /&gt; } else {&lt;BR /&gt; if (error)&lt;BR /&gt; error(xhr);&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; };&lt;BR /&gt; xhr.open("GET", path, true);&lt;BR /&gt; xhr.send();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;function initSymbols(militarySymbolArray) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var selectTacticalA = document.getElementById("tacticalIdA");&lt;BR /&gt; var selectTacticalB = document.getElementById("tacticalIdB");&lt;/P&gt;&lt;P&gt;var optionAir = document.createElement('option');&lt;BR /&gt; var optionGround = document.createElement('option');&lt;BR /&gt; var optionSEA = document.createElement('option');&lt;BR /&gt; var optionSUBSURFACE = document.createElement('option');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var optionFriend = document.createElement('option');&lt;BR /&gt; var optionHOSTILE = document.createElement('option');&lt;BR /&gt; var optionUNKNOWN = document.createElement('option');&lt;BR /&gt; var optionNEUTRAL = document.createElement('option');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;optionFriend.text = "FRIEND";&lt;BR /&gt; optionFriend.value = 1;&lt;BR /&gt; selectTacticalA.add(optionFriend, 1);&lt;/P&gt;&lt;P&gt;optionHOSTILE.text = "HOSTILE";&lt;BR /&gt; optionHOSTILE.value = 2;&lt;BR /&gt; selectTacticalA.add(optionHOSTILE, 2);&lt;/P&gt;&lt;P&gt;optionUNKNOWN.text = "UNKNOWN";&lt;BR /&gt; optionUNKNOWN.value = 3;&lt;BR /&gt; selectTacticalA.add(optionUNKNOWN, 3);&lt;/P&gt;&lt;P&gt;optionNEUTRAL.text = "NEUTRAL";&lt;BR /&gt; optionNEUTRAL.value = 4;&lt;BR /&gt; selectTacticalA.add(optionNEUTRAL, 4);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; optionAir.text = "AIR";&lt;BR /&gt; optionAir.value = 1;&lt;BR /&gt; selectTacticalB.add(optionAir, 1);&lt;/P&gt;&lt;P&gt;optionGround.text = "GROUND";&lt;BR /&gt; optionGround.value = 2;&lt;BR /&gt; selectTacticalB.add(optionGround, 2);&lt;/P&gt;&lt;P&gt;optionSEA.text = "SEA";&lt;BR /&gt; optionSEA.value = 3;&lt;BR /&gt; selectTacticalB.add(optionSEA, 3);&lt;/P&gt;&lt;P&gt;optionSUBSURFACE.text = "SUBSURFACE";&lt;BR /&gt; optionSUBSURFACE.value = 4;&lt;BR /&gt; selectTacticalB.add(optionSUBSURFACE, 4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// console.log("militarySymbolArray" + militarySymbolArray);&lt;/P&gt;&lt;P&gt;loadJSON('https://localhost/tacticalTactical/jsonSVGTactical.json',&lt;BR /&gt; function (data) {&lt;/P&gt;&lt;P&gt;militarySymbolArray = data;&lt;BR /&gt; // console.log("militarySymbolArray Total Lenght : " + militarySymbolArray.length);&lt;/P&gt;&lt;P&gt;var tacticalIMG, container = document.getElementById("tacticalTblStyleContainer");&lt;/P&gt;&lt;P&gt;console.log("Before Loop : " + militarySymbolArray.length);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tacticalIdB.onchange = function () {&lt;/P&gt;&lt;P&gt;clearTacticalcontainer(container);&lt;/P&gt;&lt;P&gt;var tacticalIDA = document.getElementById("tacticalIdA").value;&lt;BR /&gt; var tacticalIDB = document.getElementById("tacticalIdB").value;&lt;/P&gt;&lt;P&gt;var tacticalIDValueA = document.getElementById("tacticalIdA").options[tacticalIDA].text;&lt;/P&gt;&lt;P&gt;var tacticalIDValueB = document.getElementById("tacticalIdB").options[tacticalIDB].text;&lt;/P&gt;&lt;P&gt;console.log("tacticalIDValue After : " + tacticalIDValueA + " : " + tacticalIDValueB);&lt;/P&gt;&lt;P&gt;for (let i = 0; i &amp;lt; militarySymbolArray.length; i++)&lt;BR /&gt; {&lt;BR /&gt; // militarySymbolArray.length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var svgCateGoryA = militarySymbolArray&lt;I&gt;.CategoryA;&lt;BR /&gt; var svgCateGoryB = militarySymbolArray&lt;I&gt;.CategoryB;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (svgCateGoryA.toUpperCase() == tacticalIDValueA &amp;amp;&amp;amp; svgCateGoryB.toUpperCase() == tacticalIDValueB) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var svgCodeImg = militarySymbolArray&lt;I&gt;.SVGCodeID;&lt;BR /&gt; var svgImage = codeToSymbol(svgCodeImg);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;tacticalIMG = document.createElement("img");&lt;BR /&gt; tacticalIMG.className = "pickerItemIcon";&lt;BR /&gt; tacticalIMG.id = svgCodeImg;&lt;BR /&gt; tacticalIMG.src = svgImage.toDataURL();&lt;/P&gt;&lt;P&gt;tacticalIMG.height = "50";&lt;BR /&gt; tacticalIMG.width = "50";&lt;/P&gt;&lt;P&gt;tacticalIMG.onclick = function () {&lt;/P&gt;&lt;P&gt;svgCodeCapture(this.id);&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;container.appendChild(tacticalIMG);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; console.log("AIR Else : " + svgCateGoryA);&lt;BR /&gt; console.log("FRIEND Else : " + svgCateGoryB);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // console.log("After Added Arry : " + militarySymbolArray);&lt;BR /&gt; },&lt;BR /&gt; function (xhr) {&lt;BR /&gt; console.error(xhr);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function svgCodeCapture(pSvgGlobaleCodeImg) {&lt;BR /&gt; svgGlobaleCodeImg = null;&lt;BR /&gt; svgGlobaleCodeImg = pSvgGlobaleCodeImg;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function clearTacticalcontainer(pContainer) {&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt; while (pContainer.firstChild)&lt;BR /&gt; pContainer.removeChild(pContainer.firstChild);&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; catch (ex) {&lt;BR /&gt; pContainer.innerHTML = ex;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;// Adding Tactical Plan name - Call by Map Onload &lt;BR /&gt; function addTacticalPlan(queryParams, featureLayer)&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; queryParams.outFields = ["PlanName"];&lt;BR /&gt; queryParams.where = "1=1";&lt;BR /&gt; queryParams.returnGeometry = false;&lt;BR /&gt; queryParams.returnDistinctValues = true;&lt;/P&gt;&lt;P&gt;featureLayer.queryFeatures(queryParams, function (response) {&lt;/P&gt;&lt;P&gt;addPlanInSelection(response);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function addPlanInSelection(response)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var features = response.features;&lt;BR /&gt; // console.log(features.length);&lt;/P&gt;&lt;P&gt;for (var i = 0; i &amp;lt; features.length; i++)&lt;BR /&gt; {&lt;BR /&gt; var _feature = features&lt;I&gt;;&lt;BR /&gt; &lt;BR /&gt; var option = document.createElement("option");&lt;BR /&gt; option.text = _feature.attributes["PlanName"];&lt;BR /&gt; option.value = _feature.attributes["PlanName"];&lt;BR /&gt; var select = document.getElementById("cbTacticalPlanLoad");&lt;BR /&gt; select.appendChild(option);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;// Load all Tacical Plan - Plan Name condition &lt;BR /&gt; function loadPlanOnMap() {&lt;/P&gt;&lt;P&gt;var pQueryParams = new esri.tasks.Query();&lt;BR /&gt; var pFeatureLayer = tacticalFeatureLayer;&lt;/P&gt;&lt;P&gt;var planNameStr = document.getElementById("cbTacticalPlanLoad").value;&lt;/P&gt;&lt;P&gt;pQueryParams.returnGeometry = true;&lt;BR /&gt; pQueryParams.outFields = ["*"];&lt;/P&gt;&lt;P&gt;pQueryParams.where = "PlanName='" + planNameStr + "'";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; pFeatureLayer.queryFeatures(pQueryParams, function (response) {&lt;/P&gt;&lt;P&gt;addPlanOnMap(response);&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function addPlanOnMap(pResponse)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;alert("Hello");&lt;/P&gt;&lt;P&gt;graphicLayertactical.clear();&lt;/P&gt;&lt;P&gt;var features = pResponse.features;&lt;BR /&gt; &lt;BR /&gt; for (var i = 0; i &amp;lt; features.length; i++)&lt;BR /&gt; {&lt;BR /&gt; var _feature = features&lt;I&gt;;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;if (_feature.geometry.x != "NaN")&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; var mysymbol = new MS.symbol(_feature.attributes["MilitarySymbologyCode"], { size: 30 }).getMarker();&lt;/P&gt;&lt;P&gt;console.log(_feature.geometry);&lt;/P&gt;&lt;P&gt;var symboltactical = new pictureMarkerSymbol({&lt;/P&gt;&lt;P&gt;"url": mysymbol.toDataURL(),&lt;BR /&gt; "width": Math.floor(mysymbol.width),&lt;BR /&gt; "height": Math.floor(mysymbol.height),&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 10,&lt;BR /&gt; new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,&lt;BR /&gt; new esri.Color([255, 0, 0]), 1),&lt;BR /&gt; new esri.Color([0, 255, 0, 0.25]));&lt;/P&gt;&lt;P&gt;myMap.graphics.add(new graphic(_feature.geometry, symboltactical));&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body class="mdc-typography" onload="milsymbolUnitGenerator()" &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id="viewDiv"&amp;gt;&lt;BR /&gt; &amp;lt;div style='float: right;'&amp;gt;Share&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div id='SymbolPicker' class="symbolPanel"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;table id="tacticalTblStyle"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt; &amp;lt;th onclick="show('SymbolEditorMenu');"&amp;gt;Editor&amp;lt;/th&amp;gt;&lt;BR /&gt; &amp;lt;th onclick="show('SymbolProcessMenu');"&amp;gt;Plan Manager&amp;lt;/th&amp;gt;&lt;BR /&gt; &amp;lt;th onclick="show('SymbolPickerMenu');"&amp;gt;Picker&amp;lt;/th&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id='SymbolEditorMenu' style="display:block;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;section&amp;gt;&lt;BR /&gt; &amp;lt;div class="demo-tabs__scroller"&amp;gt;&lt;BR /&gt; &amp;lt;div id="tab-bar-scroller" class="mdc-tab-bar-scroller"&amp;gt;&lt;BR /&gt; &amp;lt;div class="mdc-tab-bar-scroller__indicator mdc-tab-bar-scroller__indicator--back"&amp;gt;&lt;BR /&gt; &amp;lt;a class="mdc-tab-bar-scroller__indicator__inner material-icons" href="#" aria-label="scroll back button"&amp;gt;&lt;BR /&gt; &amp;lt;svg fill="rgba(0, 0, 0, .54)" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"&amp;gt;&lt;BR /&gt; &amp;lt;path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z" /&amp;gt;&lt;BR /&gt; &amp;lt;path d="M0-.5h24v24H0z" fill="none" /&amp;gt;&lt;BR /&gt; &amp;lt;/svg&amp;gt;&lt;BR /&gt; &amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="mdc-tab-bar-scroller__scroll-frame"&amp;gt;&lt;BR /&gt; &amp;lt;nav id="scrollable-tab-bar" class="mdc-tab-bar mdc-tab-bar-scroller__scroll-frame__tabs custom-indicator-tab-bar"&amp;gt;&lt;BR /&gt; &amp;lt;a role="tab" aria-controls="panel-1" class="mdc-tab" href="#panel-1"&amp;gt;MIL-STD-2525C&amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;a role="tab" aria-controls="panel-2" class="mdc-tab" href="#panel-2"&amp;gt;APP-6 B&amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;a role="tab" aria-controls="panel-3" class="mdc-tab" href="#panel-3"&amp;gt;MIL-STD-2525D&amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;a role="tab" aria-controls="panel-4" class="mdc-tab" href="#panel-4"&amp;gt;APP-6 D&amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;span class="mdc-tab-bar__indicator"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt; &amp;lt;/nav&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="mdc-tab-bar-scroller__indicator mdc-tab-bar-scroller__indicator--forward"&amp;gt;&lt;BR /&gt; &amp;lt;a class="mdc-tab-bar-scroller__indicator__inner material-icons" href="#" aria-label="scroll forward button"&amp;gt;&lt;BR /&gt; &amp;lt;svg fill="rgba(0, 0, 0, .54)" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"&amp;gt;&lt;BR /&gt; &amp;lt;path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" /&amp;gt;&lt;BR /&gt; &amp;lt;path d="M0-.25h24v24H0z" fill="none" /&amp;gt;&lt;BR /&gt; &amp;lt;/svg&amp;gt;&lt;BR /&gt; &amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/section&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;section class="content"&amp;gt;&lt;BR /&gt; &amp;lt;div class="panels"&amp;gt;&lt;BR /&gt; &amp;lt;div class="panel panel-2525c" id="panel-1" role="tabpanel" aria-hidden="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="panel panel-app6b" id="panel-2" role="tabpanel" aria-hidden="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="panel panel-2525d" id="panel-3" role="tabpanel" aria-hidden="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="panel panel-app6d" id="panel-4" role="tabpanel" aria-hidden="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/section&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id='SymbolProcessMenu' style="display:none;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="form-container" id="myFormRadio"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;h1&amp;gt;Tactical Plan - Select Process &amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;div id="selection" class="form-container"&amp;gt;&lt;BR /&gt; &amp;lt;label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="radio" id="rdLoad" name='tactical' onclick="showSelection('myFormLoad');" value="Load" checked /&amp;gt; &amp;lt;strong&amp;gt; Load &amp;lt;/strong&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="radio" id="rdSave" name='tactical' value="Save" onclick="showSelection('myFormSave');" /&amp;gt; &amp;lt;strong&amp;gt; Save &amp;lt;/strong&amp;gt;&lt;BR /&gt; &amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="radio" id="rdSaveAs" name='tactical' value="SaveAs" onclick="showSelection('myFormSaveAs');" /&amp;gt; &amp;lt;strong&amp;gt; Save As &amp;lt;/strong&amp;gt;&lt;BR /&gt; &amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="form-container" id="myFormLoad" style="display:block;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;select id="cbTacticalPlanLoad" name="cbTacticalPlanLoad" class="btn Load"&amp;gt;&lt;BR /&gt; &amp;lt;option&amp;gt;SELECT&amp;lt;/option&amp;gt;&lt;BR /&gt; &amp;lt;/select&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;h1&amp;gt; &amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;button type="button" class="btn Load" onclick="loadPlanOnMap()"&amp;gt;Load&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="form-container" id="myFormSave" style="display:none;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;input type="text" id="txtSave" style="background-color :antiquewhite;" disabled /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h1&amp;gt; &amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;button type="button" id="saveBtnTacticalPlan" class="btn Load"&amp;gt;Save&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="form-container" id="myFormSaveAs" style="display:none;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="text" id="txtSaveAs" style="background-color :antiquewhite;" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;h1&amp;gt; &amp;lt;/h1&amp;gt;&lt;BR /&gt; &amp;lt;button type="button" id="saveAsBtnTacticalPlan" class="btn Load"&amp;gt;Save As&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id='SymbolPickerMenu' style="display:none;" class="form-container"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div&amp;gt;&lt;BR /&gt; &amp;lt;table style="width:100%"&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&lt;BR /&gt; &amp;lt;td class="pickerSelectorLabal"&amp;gt;&lt;BR /&gt; &amp;lt;label&amp;gt; &amp;lt;strong&amp;gt; Afliation : &amp;lt;/strong&amp;gt;&amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td class="pickerSelectorSelect"&amp;gt;&lt;BR /&gt; &amp;lt;select id="tacticalIdA" name="TaticalA" class="btn Load"&amp;gt;&lt;BR /&gt; &amp;lt;option&amp;gt;SELECT&amp;lt;/option&amp;gt;&lt;BR /&gt; &amp;lt;/select&amp;gt;&lt;BR /&gt; &amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div&amp;gt;&lt;BR /&gt; &amp;lt;table style="width:100%"&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&lt;BR /&gt; &amp;lt;td class="pickerSelectorLabal"&amp;gt;&lt;BR /&gt; &amp;lt;label&amp;gt;&amp;lt;strong&amp;gt; Dimension : &amp;lt;/strong&amp;gt; &amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td class="pickerSelectorSelect"&amp;gt;&lt;BR /&gt; &amp;lt;select id="tacticalIdB" name="TaticalB" class="btn Load "&amp;gt;&lt;BR /&gt; &amp;lt;option&amp;gt;SELECT&amp;lt;/option&amp;gt;&lt;BR /&gt; &amp;lt;/select&amp;gt;&lt;BR /&gt; &amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="verticalSplit"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id="tacticalTblStyleContainer" style="height:100%;overflow:auto"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2020 23:12:00 GMT</pubDate>
    <dc:creator>ALOKRANJAN</dc:creator>
    <dc:date>2020-05-22T23:12:00Z</dc:date>
    <item>
      <title>Drawing Military Symbols on Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-military-symbols-on-map/m-p/628806#M58719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I'm using ArcGIS JSAPI 4.12 and wishing to use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/spatialillusions/milsymbol" rel="nofollow noreferrer noopener" style="color: #005999; border: 0px; font-weight: inherit; text-decoration: underline;" target="_blank"&gt;Spatial Illusions&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to draw military symbols on map.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;When I add&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;milsymbol.js&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to script, the console returns error&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;Uncaught SyntaxError: Cannot use import statement outside a module&lt;/CODE&gt;, so I add&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;type="module"&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to the script, the it returns&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;Uncaught ReferenceError: ms is not defined&lt;/CODE&gt;.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;Here's my code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;link rel&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"stylesheet"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; href&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"https://js.arcgis.com/4.12/esri/css/main.css"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;gt;
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;script src&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"https://js.arcgis.com/4.12/"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;gt;
&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;script&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;script type&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"module"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; src&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"milsymbol-2.0.0/src/milsymbol.js"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;script&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;gt;

&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;script&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;gt;
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;        require&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;([
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;          &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"esri/Map"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;,
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;          &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"esri/views/MapView"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;,
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;          &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"esri/layers/MapImageLayer"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;,
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;          &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"esri/layers/FeatureLayer"
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;        &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;],&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;function&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;Map&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;MapImageLayer&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;{
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;             &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; symbol &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; ms&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;Symbol&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"SFG-UCI----D"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; size&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;30&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;}).&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;asCanvas&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;3&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;);
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;            &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; map &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;Map&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;({
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;                basemap&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"topo-vector"
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;            &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;});&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;             
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; view &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;({
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;                container&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"viewDiv"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;,
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;                map&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; map&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;,
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;                center&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;121&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;23&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;],
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;                zoom&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;7
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;            &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;});
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;        &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;});
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;    &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;script&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;So, whether I add&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;type="module"&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or not, there's always errors. However, in the official document of Spatial Illusions, there's no&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;type="module"&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the script. I'm now really confused, how do they manage to get it work without adding the type?&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;milsymbol.js&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;import&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; ms &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; from &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"./ms.js"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;import&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;Symbol&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; from &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;"./ms/symbol.js"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;ms&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;Symbol&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;Symbol&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;export&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt; ms &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;};&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:46:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-military-symbols-on-map/m-p/628806#M58719</guid>
      <dc:creator>JerryChen</dc:creator>
      <dc:date>2021-12-12T02:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing Military Symbols on Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-military-symbols-on-map/m-p/628808#M58721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta charset="utf-8"&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;2D Milsymbol Editor Final&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.29/esri/css/esri.css"&amp;gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/3.29/dijit/themes/claro/claro.css"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script src="https://js.arcgis.com/3.29/"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;script src="http://xxxxxxxx:8080/tacticalTactical/milsymbol2D.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="http://xxxxxxxx:8080/tacticalTactical/milsymbol-unit-generator.css" type="text/css"&amp;gt;&lt;BR /&gt; &amp;lt;script src="http://xxxxxxxx:8080/tacticalTactical/milsymbol-unit-generator.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;script src="Scripts/LayoutManager.js"&amp;gt;&amp;lt;/script&amp;gt; &lt;BR /&gt; &amp;lt;link rel="stylesheet" type="text/css" href="CSS/Main.css"/&amp;gt;&lt;BR /&gt; &amp;lt;script&amp;gt;&lt;BR /&gt; var myMap;&lt;BR /&gt; var graphictactical;&lt;BR /&gt; var graphicLayertactical;&lt;BR /&gt; var graphicLayertacticalPicker;&lt;BR /&gt; var symbolFullList;&lt;BR /&gt; var svgGlobaleCodeImg;&lt;BR /&gt; var pElementId;&lt;BR /&gt; var editToolbar, ctxMenuForGraphics, ctxMenuForMap;&lt;BR /&gt; var tacticalFeatureLayer;&lt;BR /&gt; var queryParams;&lt;BR /&gt; var pictureMarkerSymbol;&lt;BR /&gt; var graphic;&lt;BR /&gt; var currentFeature = [];&lt;BR /&gt; var loadFeature = [];&lt;BR /&gt; var moveFeature = [];&lt;BR /&gt; var deleteFeature = [];&lt;BR /&gt; var globalSavePlanName;&lt;BR /&gt; var globalSaveAsPlanName;&lt;BR /&gt; var currentCount;&lt;BR /&gt; var myTacticalSymbol;&lt;BR /&gt; var moveGraphicFeature;&lt;BR /&gt; var currentGraphic;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt; "esri/map",&lt;BR /&gt; "esri/geometry/Point",&lt;BR /&gt; "esri/geometry/Polygon",&lt;BR /&gt; "esri/graphic", "dojo/_base/array",&lt;BR /&gt; "esri/symbols/PictureMarkerSymbol",&lt;BR /&gt; "esri/symbols/SimpleFillSymbol",&lt;BR /&gt; "esri/layers/GraphicsLayer",&lt;BR /&gt; "esri/layers/FeatureLayer", "esri/tasks/query",&lt;BR /&gt; "esri/toolbars/edit",&lt;BR /&gt; "dijit/Menu", "dijit/MenuItem",&lt;BR /&gt; "dojo/domReady!"&lt;BR /&gt; ], function (&lt;BR /&gt; Map,&lt;BR /&gt; Point, Polygon, Graphic, arrayUtils,&lt;BR /&gt; PictureMarkerSymbol, SimpleMarkerSymbol, GraphicsLayer, FeatureLayer, Query ,Edit, Menu, MenuItem&lt;BR /&gt; ) {&lt;/P&gt;&lt;P&gt;pictureMarkerSymbol = PictureMarkerSymbol;&lt;BR /&gt; graphic = Graphic;&lt;/P&gt;&lt;P&gt;myMap = new Map("viewDiv",&lt;BR /&gt; {&lt;BR /&gt; basemap: "streets",&lt;BR /&gt; center: [-80, 35],&lt;BR /&gt; zoom: 3,&lt;BR /&gt; sliderPosition: "top-right"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dojo.connect(myMap, "onClick", addGraphicsSVG);&lt;/P&gt;&lt;P&gt;myMap.on("load", createToolbarAndContextMenu);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; graphicLayertactical = new esri.layers.GraphicsLayer();&lt;BR /&gt; myMap.addLayer(graphicLayertactical);&lt;/P&gt;&lt;P&gt;graphicLayertacticalPicker = new esri.layers.GraphicsLayer();&lt;BR /&gt; myMap.addLayer(graphicLayertacticalPicker);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; tacticalFeatureLayer = new FeatureLayer("https://xxxxxxx/server/rest/services/xxxxxxl/FeatureServer/0", {&lt;BR /&gt; //mode: FeatureLayer.SELECTION_NEW,&lt;BR /&gt; outFields: ["*"],&lt;BR /&gt; visible: false&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;myMap.addLayer(tacticalFeatureLayer);&lt;/P&gt;&lt;P&gt;initSymbols(symbolFullList);&lt;/P&gt;&lt;P&gt;queryParams = new esri.tasks.Query();&lt;/P&gt;&lt;P&gt;currentCount = 0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // Adding Plan into DropDown list - Tactical Plan Load &lt;BR /&gt; addTacticalPlan(queryParams, tacticalFeatureLayer);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; cbTacticalPlanLoad.onchange = function ()&lt;BR /&gt; {&lt;BR /&gt; var planNameValue = document.getElementById("cbTacticalPlanLoad").value;&lt;/P&gt;&lt;P&gt;document.getElementById("txtSave").value = planNameValue;&lt;/P&gt;&lt;P&gt;globalSavePlanName = planNameValue;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Save Tactical Plan &lt;BR /&gt; saveBtnTacticalPlan.onclick = function () {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; if (globalSavePlanName != "") {&lt;/P&gt;&lt;P&gt;saveTacticalFeature(currentFeature, globalSavePlanName);&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; alert("Please fill Plan Name in order to save");&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;// Save As Tactical Plan &lt;BR /&gt; saveAsBtnTacticalPlan.onclick = function () {&lt;/P&gt;&lt;P&gt;globalSaveAsPlanName = document.getElementById("txtSaveAs").value;&lt;/P&gt;&lt;P&gt;// alert(globalSaveAsPlanName);&lt;BR /&gt; &lt;BR /&gt; if (globalSaveAsPlanName != "")&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;saveTacticalFeature(currentFeature, globalSaveAsPlanName);&lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; alert("Enter Tactical Plan");&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Calling Save plan from Save and SaveAs Button &lt;BR /&gt; function saveTacticalFeature(pCurrentFeatures, pPlanName)&lt;BR /&gt; {&lt;BR /&gt; //&lt;BR /&gt; var addedFeatures = pCurrentFeatures.map(function (item) {&lt;BR /&gt; var mappedItem = item;&lt;BR /&gt; mappedItem.attributes["MilitarySymbologyCode"] = item.attributes.svgCode;&lt;BR /&gt; mappedItem.attributes["PlanName"] = pPlanName;&lt;BR /&gt; return mappedItem;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var promise = tacticalFeatureLayer.applyEdits(addedFeatures, null, null);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function updateCurrentFeature(pSelected) {&lt;/P&gt;&lt;P&gt;// console.log("Current Graphic 1 " + pSelected.geometry.x);&lt;/P&gt;&lt;P&gt;// console.log("Selected Graphic 2" + moveGraphicFeature.geometry.x);&lt;/P&gt;&lt;P&gt;// Update Feature Move geomtery&lt;/P&gt;&lt;P&gt;for (var i in currentFeature)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;var tempID = moveGraphicFeature.attributes["svgCode"];&lt;/P&gt;&lt;P&gt;if (currentFeature&lt;I&gt;.SVGCodeID == tempID)&lt;BR /&gt; {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;console.log(currentFeature&lt;I&gt;.SVGx); &lt;BR /&gt; console.log(currentFeature&lt;I&gt;.SVGy);&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; currentFeature&lt;I&gt;.SVGx = 102.35;&lt;BR /&gt; currentFeature&lt;I&gt;.SVGy = 102.35;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;console.log(currentFeature&lt;I&gt;.SVGx);&lt;BR /&gt; console.log(currentFeature&lt;I&gt;.SVGy);&lt;BR /&gt; &lt;BR /&gt; }&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// currentFeature.push({ SVGCodeID: moveGraphicFeature.attributes["svgCode"], SVGID: moveGraphicFeature.attributes["countID"], SVGStatus: "CURRENT", SVGx: pSelected.geometry.x, SVGy: pSelected.geometry.y})&lt;/P&gt;&lt;P&gt;// console.log("currentFeature: " + currentFeature); &lt;BR /&gt; &lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; // Add Graphics on Map CLick &lt;BR /&gt; function addGraphicsSVG(evt)&lt;BR /&gt; {&lt;BR /&gt; var svgTacticalCode = null;&lt;/P&gt;&lt;P&gt;// svgTacticalCode = svgGlobaleCodeImg;&lt;/P&gt;&lt;P&gt;svgTacticalCode = document.getElementById("svgCode").innerHTML;&lt;/P&gt;&lt;P&gt;console.log(svgTacticalCode);&lt;/P&gt;&lt;P&gt;console.log("SymbolEditorMenu : " + document.getElementById("SymbolEditorMenu").style.display);&lt;/P&gt;&lt;P&gt;if (document.getElementById("SymbolEditorMenu").style.display == "") {&lt;/P&gt;&lt;P&gt;addGraphicsOnCondition(graphicLayertactical, svgTacticalCode, evt);&lt;/P&gt;&lt;P&gt;} else if (document.getElementById("SymbolEditorMenu").style.display == "block") {&lt;/P&gt;&lt;P&gt;addGraphicsOnCondition(graphicLayertactical, svgTacticalCode, evt);&lt;/P&gt;&lt;P&gt;} else if (document.getElementById("SymbolPickerMenu").style.display == "block") {&lt;/P&gt;&lt;P&gt;addGraphicsOnCondition(graphicLayertactical, svgGlobaleCodeImg, evt);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;// This function Calling by Add Graphics - On Map Click &lt;BR /&gt; function addGraphicsOnCondition(pGraphicsLayer, pSVGCode, pEvt)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;var currentStatus = "CURRENT";&lt;/P&gt;&lt;P&gt;var mysymbol = new MS.symbol(pSVGCode, { size: 30 }).getMarker();&lt;/P&gt;&lt;P&gt;myTacticalSymbol = mysymbol;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var symboltactical = new PictureMarkerSymbol({&lt;/P&gt;&lt;P&gt;"url": mysymbol.toDataURL(),&lt;BR /&gt; "width": Math.floor(mysymbol.width),&lt;BR /&gt; "height": Math.floor(mysymbol.height),&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;currentCount += 1;&lt;/P&gt;&lt;P&gt;var currentGraphic = new Graphic(pEvt.mapPoint, symboltactical, { "countID": currentCount - 1, "Status": currentStatus, "svgCode": pSVGCode });&lt;BR /&gt; pGraphicsLayer.add(currentGraphic);&lt;BR /&gt; myMap.addLayer(pGraphicsLayer);&lt;/P&gt;&lt;P&gt;var tacticalCode = pSVGCode;&lt;BR /&gt; var tacticalLocationX = pEvt.mapPoint.x.toString();&lt;BR /&gt; var tacticalLocationY = pEvt.mapPoint.y.toString();&lt;/P&gt;&lt;P&gt;// console.log(tacticalCode + " " + tacticalUser + " " + tacticalLocationX + " " + tacticalLocationY);&lt;/P&gt;&lt;P&gt;console.log("pGraphicsLayer" + pGraphicsLayer);&lt;/P&gt;&lt;P&gt;console.log("currentCount" + currentCount);&lt;/P&gt;&lt;P&gt;var feature = { SVGCodeID: tacticalCode, SVGID: currentCount - 1, SVGStatus: currentStatus, SVGx: tacticalLocationX, SVGy: tacticalLocationY, svgGemoetry: pEvt.mapPoint };&lt;BR /&gt; currentFeature.push(currentGraphic)&lt;/P&gt;&lt;P&gt;console.log("svgFeature: " + currentFeature);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function createToolbarAndContextMenu() {&lt;/P&gt;&lt;P&gt;editToolbar = new Edit(myMap);&lt;BR /&gt; dojo.connect(editToolbar, 'onGraphicMoveStop', handleGraphicEditStop);&lt;/P&gt;&lt;P&gt;myMap.on("click", function (evt) {&lt;BR /&gt; editToolbar.deactivate();&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; createGraphicsMenu();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function handleGraphicEditStop(graphic)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;currentGraphic = new esri.Graphic(graphic.geometry, graphic.symbol);&lt;/P&gt;&lt;P&gt;console.log("currentGraphic Function Call " + currentGraphic.geometry.x);&lt;/P&gt;&lt;P&gt;updateCurrentFeature(currentGraphic);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; function createGraphicsMenu() {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ctxMenuForGraphics = new Menu({});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ctxMenuForGraphics.addChild(new MenuItem({&lt;BR /&gt; label: "Move",&lt;BR /&gt; onClick: function ()&lt;BR /&gt; {&lt;BR /&gt; editToolbar.activate(Edit.MOVE, selected);&lt;BR /&gt; moveGraphicFeature = null;&lt;BR /&gt; moveGraphicFeature = selected;&lt;/P&gt;&lt;P&gt;console.log("moveGraphicFeature : " + moveGraphicFeature.geometry.x);&lt;/P&gt;&lt;P&gt;// updateCurrentFeature(selected);&lt;BR /&gt; }&lt;BR /&gt; }));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ctxMenuForGraphics.addChild(new MenuItem({&lt;BR /&gt; label: "Delete",&lt;BR /&gt; onClick: function () {&lt;BR /&gt; graphicLayertactical.remove(selected);&lt;BR /&gt; }&lt;BR /&gt; }));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ctxMenuForGraphics.startup();&lt;/P&gt;&lt;P&gt;graphicLayertactical.on("mouse-over", function (evt) {&lt;BR /&gt; // We'll use this "selected" graphic to enable editing tools&lt;BR /&gt; // on this graphic when the user click on one of the tools&lt;BR /&gt; // listed in the menu.&lt;BR /&gt; selected = evt.graphic;&lt;/P&gt;&lt;P&gt;// Let's bind to the graphic underneath the mouse cursor&lt;BR /&gt; ctxMenuForGraphics.bindDomNode(evt.graphic.getDojoShape().getNode());&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;graphicLayertactical.on("mouse-out", function (evt)&lt;BR /&gt; {&lt;BR /&gt; // console.log("mouse-out" + evt)&lt;BR /&gt; ctxMenuForGraphics.unBindDomNode(evt.graphic.getDojoShape().getNode());&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;/P&gt;&lt;P&gt;function show(elementId) {&lt;/P&gt;&lt;P&gt;document.getElementById("SymbolEditorMenu").style.display = "none";&lt;BR /&gt; document.getElementById("SymbolProcessMenu").style.display = "none";&lt;BR /&gt; document.getElementById("SymbolPickerMenu").style.display = "none";&lt;BR /&gt; document.getElementById(elementId).style.display = "block";&lt;BR /&gt; pElementId = null;&lt;BR /&gt; pElementId = elementId;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; function showSelection(checkedID) {&lt;/P&gt;&lt;P&gt;if (document.getElementById('rdLoad').checked)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;document.getElementById("myFormLoad").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSave").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSaveAs").style.display = "none";&lt;BR /&gt; document.getElementById(checkedID).style.display = "block";&lt;BR /&gt; } else if (document.getElementById('rdSave').checked) {&lt;/P&gt;&lt;P&gt;document.getElementById("myFormLoad").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSave").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSaveAs").style.display = "none";&lt;BR /&gt; document.getElementById(checkedID).style.display = "block";&lt;BR /&gt; } else if (document.getElementById('rdSaveAs').checked) {&lt;/P&gt;&lt;P&gt;document.getElementById("myFormLoad").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSave").style.display = "none";&lt;BR /&gt; document.getElementById("myFormSaveAs").style.display = "none";&lt;BR /&gt; document.getElementById(checkedID).style.display = "block";&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;function codeToSymbol(code) {&lt;BR /&gt; return mysymbol = new MS.symbol(code, { size: 30 }).getMarker();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; function loadJSON(path, success, error) {&lt;BR /&gt; var xhr = new XMLHttpRequest();&lt;BR /&gt; xhr.onreadystatechange = function () {&lt;BR /&gt; if (xhr.readyState === XMLHttpRequest.DONE) {&lt;BR /&gt; if (xhr.status === 200) {&lt;BR /&gt; if (success)&lt;BR /&gt; success(JSON.parse(xhr.responseText));&lt;BR /&gt; // alert("Hello STart");&lt;BR /&gt; } else {&lt;BR /&gt; if (error)&lt;BR /&gt; error(xhr);&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; };&lt;BR /&gt; xhr.open("GET", path, true);&lt;BR /&gt; xhr.send();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;function initSymbols(militarySymbolArray) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var selectTacticalA = document.getElementById("tacticalIdA");&lt;BR /&gt; var selectTacticalB = document.getElementById("tacticalIdB");&lt;/P&gt;&lt;P&gt;var optionAir = document.createElement('option');&lt;BR /&gt; var optionGround = document.createElement('option');&lt;BR /&gt; var optionSEA = document.createElement('option');&lt;BR /&gt; var optionSUBSURFACE = document.createElement('option');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var optionFriend = document.createElement('option');&lt;BR /&gt; var optionHOSTILE = document.createElement('option');&lt;BR /&gt; var optionUNKNOWN = document.createElement('option');&lt;BR /&gt; var optionNEUTRAL = document.createElement('option');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;optionFriend.text = "FRIEND";&lt;BR /&gt; optionFriend.value = 1;&lt;BR /&gt; selectTacticalA.add(optionFriend, 1);&lt;/P&gt;&lt;P&gt;optionHOSTILE.text = "HOSTILE";&lt;BR /&gt; optionHOSTILE.value = 2;&lt;BR /&gt; selectTacticalA.add(optionHOSTILE, 2);&lt;/P&gt;&lt;P&gt;optionUNKNOWN.text = "UNKNOWN";&lt;BR /&gt; optionUNKNOWN.value = 3;&lt;BR /&gt; selectTacticalA.add(optionUNKNOWN, 3);&lt;/P&gt;&lt;P&gt;optionNEUTRAL.text = "NEUTRAL";&lt;BR /&gt; optionNEUTRAL.value = 4;&lt;BR /&gt; selectTacticalA.add(optionNEUTRAL, 4);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; optionAir.text = "AIR";&lt;BR /&gt; optionAir.value = 1;&lt;BR /&gt; selectTacticalB.add(optionAir, 1);&lt;/P&gt;&lt;P&gt;optionGround.text = "GROUND";&lt;BR /&gt; optionGround.value = 2;&lt;BR /&gt; selectTacticalB.add(optionGround, 2);&lt;/P&gt;&lt;P&gt;optionSEA.text = "SEA";&lt;BR /&gt; optionSEA.value = 3;&lt;BR /&gt; selectTacticalB.add(optionSEA, 3);&lt;/P&gt;&lt;P&gt;optionSUBSURFACE.text = "SUBSURFACE";&lt;BR /&gt; optionSUBSURFACE.value = 4;&lt;BR /&gt; selectTacticalB.add(optionSUBSURFACE, 4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// console.log("militarySymbolArray" + militarySymbolArray);&lt;/P&gt;&lt;P&gt;loadJSON('https://localhost/tacticalTactical/jsonSVGTactical.json',&lt;BR /&gt; function (data) {&lt;/P&gt;&lt;P&gt;militarySymbolArray = data;&lt;BR /&gt; // console.log("militarySymbolArray Total Lenght : " + militarySymbolArray.length);&lt;/P&gt;&lt;P&gt;var tacticalIMG, container = document.getElementById("tacticalTblStyleContainer");&lt;/P&gt;&lt;P&gt;console.log("Before Loop : " + militarySymbolArray.length);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tacticalIdB.onchange = function () {&lt;/P&gt;&lt;P&gt;clearTacticalcontainer(container);&lt;/P&gt;&lt;P&gt;var tacticalIDA = document.getElementById("tacticalIdA").value;&lt;BR /&gt; var tacticalIDB = document.getElementById("tacticalIdB").value;&lt;/P&gt;&lt;P&gt;var tacticalIDValueA = document.getElementById("tacticalIdA").options[tacticalIDA].text;&lt;/P&gt;&lt;P&gt;var tacticalIDValueB = document.getElementById("tacticalIdB").options[tacticalIDB].text;&lt;/P&gt;&lt;P&gt;console.log("tacticalIDValue After : " + tacticalIDValueA + " : " + tacticalIDValueB);&lt;/P&gt;&lt;P&gt;for (let i = 0; i &amp;lt; militarySymbolArray.length; i++)&lt;BR /&gt; {&lt;BR /&gt; // militarySymbolArray.length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var svgCateGoryA = militarySymbolArray&lt;I&gt;.CategoryA;&lt;BR /&gt; var svgCateGoryB = militarySymbolArray&lt;I&gt;.CategoryB;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (svgCateGoryA.toUpperCase() == tacticalIDValueA &amp;amp;&amp;amp; svgCateGoryB.toUpperCase() == tacticalIDValueB) {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var svgCodeImg = militarySymbolArray&lt;I&gt;.SVGCodeID;&lt;BR /&gt; var svgImage = codeToSymbol(svgCodeImg);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;tacticalIMG = document.createElement("img");&lt;BR /&gt; tacticalIMG.className = "pickerItemIcon";&lt;BR /&gt; tacticalIMG.id = svgCodeImg;&lt;BR /&gt; tacticalIMG.src = svgImage.toDataURL();&lt;/P&gt;&lt;P&gt;tacticalIMG.height = "50";&lt;BR /&gt; tacticalIMG.width = "50";&lt;/P&gt;&lt;P&gt;tacticalIMG.onclick = function () {&lt;/P&gt;&lt;P&gt;svgCodeCapture(this.id);&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;container.appendChild(tacticalIMG);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; console.log("AIR Else : " + svgCateGoryA);&lt;BR /&gt; console.log("FRIEND Else : " + svgCateGoryB);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // console.log("After Added Arry : " + militarySymbolArray);&lt;BR /&gt; },&lt;BR /&gt; function (xhr) {&lt;BR /&gt; console.error(xhr);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function svgCodeCapture(pSvgGlobaleCodeImg) {&lt;BR /&gt; svgGlobaleCodeImg = null;&lt;BR /&gt; svgGlobaleCodeImg = pSvgGlobaleCodeImg;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function clearTacticalcontainer(pContainer) {&lt;/P&gt;&lt;P&gt;try {&lt;BR /&gt; while (pContainer.firstChild)&lt;BR /&gt; pContainer.removeChild(pContainer.firstChild);&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; catch (ex) {&lt;BR /&gt; pContainer.innerHTML = ex;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;// Adding Tactical Plan name - Call by Map Onload &lt;BR /&gt; function addTacticalPlan(queryParams, featureLayer)&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; queryParams.outFields = ["PlanName"];&lt;BR /&gt; queryParams.where = "1=1";&lt;BR /&gt; queryParams.returnGeometry = false;&lt;BR /&gt; queryParams.returnDistinctValues = true;&lt;/P&gt;&lt;P&gt;featureLayer.queryFeatures(queryParams, function (response) {&lt;/P&gt;&lt;P&gt;addPlanInSelection(response);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function addPlanInSelection(response)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var features = response.features;&lt;BR /&gt; // console.log(features.length);&lt;/P&gt;&lt;P&gt;for (var i = 0; i &amp;lt; features.length; i++)&lt;BR /&gt; {&lt;BR /&gt; var _feature = features&lt;I&gt;;&lt;BR /&gt; &lt;BR /&gt; var option = document.createElement("option");&lt;BR /&gt; option.text = _feature.attributes["PlanName"];&lt;BR /&gt; option.value = _feature.attributes["PlanName"];&lt;BR /&gt; var select = document.getElementById("cbTacticalPlanLoad");&lt;BR /&gt; select.appendChild(option);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;// Load all Tacical Plan - Plan Name condition &lt;BR /&gt; function loadPlanOnMap() {&lt;/P&gt;&lt;P&gt;var pQueryParams = new esri.tasks.Query();&lt;BR /&gt; var pFeatureLayer = tacticalFeatureLayer;&lt;/P&gt;&lt;P&gt;var planNameStr = document.getElementById("cbTacticalPlanLoad").value;&lt;/P&gt;&lt;P&gt;pQueryParams.returnGeometry = true;&lt;BR /&gt; pQueryParams.outFields = ["*"];&lt;/P&gt;&lt;P&gt;pQueryParams.where = "PlanName='" + planNameStr + "'";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; pFeatureLayer.queryFeatures(pQueryParams, function (response) {&lt;/P&gt;&lt;P&gt;addPlanOnMap(response);&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;function addPlanOnMap(pResponse)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;alert("Hello");&lt;/P&gt;&lt;P&gt;graphicLayertactical.clear();&lt;/P&gt;&lt;P&gt;var features = pResponse.features;&lt;BR /&gt; &lt;BR /&gt; for (var i = 0; i &amp;lt; features.length; i++)&lt;BR /&gt; {&lt;BR /&gt; var _feature = features&lt;I&gt;;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;if (_feature.geometry.x != "NaN")&lt;BR /&gt; {&lt;BR /&gt; &lt;BR /&gt; var mysymbol = new MS.symbol(_feature.attributes["MilitarySymbologyCode"], { size: 30 }).getMarker();&lt;/P&gt;&lt;P&gt;console.log(_feature.geometry);&lt;/P&gt;&lt;P&gt;var symboltactical = new pictureMarkerSymbol({&lt;/P&gt;&lt;P&gt;"url": mysymbol.toDataURL(),&lt;BR /&gt; "width": Math.floor(mysymbol.width),&lt;BR /&gt; "height": Math.floor(mysymbol.height),&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 10,&lt;BR /&gt; new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,&lt;BR /&gt; new esri.Color([255, 0, 0]), 1),&lt;BR /&gt; new esri.Color([0, 255, 0, 0.25]));&lt;/P&gt;&lt;P&gt;myMap.graphics.add(new graphic(_feature.geometry, symboltactical));&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body class="mdc-typography" onload="milsymbolUnitGenerator()" &amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id="viewDiv"&amp;gt;&lt;BR /&gt; &amp;lt;div style='float: right;'&amp;gt;Share&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div id='SymbolPicker' class="symbolPanel"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;table id="tacticalTblStyle"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt; &amp;lt;th onclick="show('SymbolEditorMenu');"&amp;gt;Editor&amp;lt;/th&amp;gt;&lt;BR /&gt; &amp;lt;th onclick="show('SymbolProcessMenu');"&amp;gt;Plan Manager&amp;lt;/th&amp;gt;&lt;BR /&gt; &amp;lt;th onclick="show('SymbolPickerMenu');"&amp;gt;Picker&amp;lt;/th&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id='SymbolEditorMenu' style="display:block;"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;section&amp;gt;&lt;BR /&gt; &amp;lt;div class="demo-tabs__scroller"&amp;gt;&lt;BR /&gt; &amp;lt;div id="tab-bar-scroller" class="mdc-tab-bar-scroller"&amp;gt;&lt;BR /&gt; &amp;lt;div class="mdc-tab-bar-scroller__indicator mdc-tab-bar-scroller__indicator--back"&amp;gt;&lt;BR /&gt; &amp;lt;a class="mdc-tab-bar-scroller__indicator__inner material-icons" href="#" aria-label="scroll back button"&amp;gt;&lt;BR /&gt; &amp;lt;svg fill="rgba(0, 0, 0, .54)" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"&amp;gt;&lt;BR /&gt; &amp;lt;path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z" /&amp;gt;&lt;BR /&gt; &amp;lt;path d="M0-.5h24v24H0z" fill="none" /&amp;gt;&lt;BR /&gt; &amp;lt;/svg&amp;gt;&lt;BR /&gt; &amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="mdc-tab-bar-scroller__scroll-frame"&amp;gt;&lt;BR /&gt; &amp;lt;nav id="scrollable-tab-bar" class="mdc-tab-bar mdc-tab-bar-scroller__scroll-frame__tabs custom-indicator-tab-bar"&amp;gt;&lt;BR /&gt; &amp;lt;a role="tab" aria-controls="panel-1" class="mdc-tab" href="#panel-1"&amp;gt;MIL-STD-2525C&amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;a role="tab" aria-controls="panel-2" class="mdc-tab" href="#panel-2"&amp;gt;APP-6 B&amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;a role="tab" aria-controls="panel-3" class="mdc-tab" href="#panel-3"&amp;gt;MIL-STD-2525D&amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;a role="tab" aria-controls="panel-4" class="mdc-tab" href="#panel-4"&amp;gt;APP-6 D&amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;span class="mdc-tab-bar__indicator"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt; &amp;lt;/nav&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="mdc-tab-bar-scroller__indicator mdc-tab-bar-scroller__indicator--forward"&amp;gt;&lt;BR /&gt; &amp;lt;a class="mdc-tab-bar-scroller__indicator__inner material-icons" href="#" aria-label="scroll forward button"&amp;gt;&lt;BR /&gt; &amp;lt;svg fill="rgba(0, 0, 0, .54)" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"&amp;gt;&lt;BR /&gt; &amp;lt;path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" /&amp;gt;&lt;BR /&gt; &amp;lt;path d="M0-.25h24v24H0z" fill="none" /&amp;gt;&lt;BR /&gt; &amp;lt;/svg&amp;gt;&lt;BR /&gt; &amp;lt;/a&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/section&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;section class="content"&amp;gt;&lt;BR /&gt; &amp;lt;div class="panels"&amp;gt;&lt;BR /&gt; &amp;lt;div class="panel panel-2525c" id="panel-1" role="tabpanel" aria-hidden="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="panel panel-app6b" id="panel-2" role="tabpanel" aria-hidden="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="panel panel-2525d" id="panel-3" role="tabpanel" aria-hidden="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div class="panel panel-app6d" id="panel-4" role="tabpanel" aria-hidden="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/section&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id='SymbolProcessMenu' style="display:none;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="form-container" id="myFormRadio"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;h1&amp;gt;Tactical Plan - Select Process &amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;div id="selection" class="form-container"&amp;gt;&lt;BR /&gt; &amp;lt;label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="radio" id="rdLoad" name='tactical' onclick="showSelection('myFormLoad');" value="Load" checked /&amp;gt; &amp;lt;strong&amp;gt; Load &amp;lt;/strong&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="radio" id="rdSave" name='tactical' value="Save" onclick="showSelection('myFormSave');" /&amp;gt; &amp;lt;strong&amp;gt; Save &amp;lt;/strong&amp;gt;&lt;BR /&gt; &amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="radio" id="rdSaveAs" name='tactical' value="SaveAs" onclick="showSelection('myFormSaveAs');" /&amp;gt; &amp;lt;strong&amp;gt; Save As &amp;lt;/strong&amp;gt;&lt;BR /&gt; &amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="form-container" id="myFormLoad" style="display:block;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;select id="cbTacticalPlanLoad" name="cbTacticalPlanLoad" class="btn Load"&amp;gt;&lt;BR /&gt; &amp;lt;option&amp;gt;SELECT&amp;lt;/option&amp;gt;&lt;BR /&gt; &amp;lt;/select&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;h1&amp;gt; &amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;button type="button" class="btn Load" onclick="loadPlanOnMap()"&amp;gt;Load&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="form-container" id="myFormSave" style="display:none;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;input type="text" id="txtSave" style="background-color :antiquewhite;" disabled /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h1&amp;gt; &amp;lt;/h1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;button type="button" id="saveBtnTacticalPlan" class="btn Load"&amp;gt;Save&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="form-container" id="myFormSaveAs" style="display:none;"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="text" id="txtSaveAs" style="background-color :antiquewhite;" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;h1&amp;gt; &amp;lt;/h1&amp;gt;&lt;BR /&gt; &amp;lt;button type="button" id="saveAsBtnTacticalPlan" class="btn Load"&amp;gt;Save As&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id='SymbolPickerMenu' style="display:none;" class="form-container"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div&amp;gt;&lt;BR /&gt; &amp;lt;table style="width:100%"&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&lt;BR /&gt; &amp;lt;td class="pickerSelectorLabal"&amp;gt;&lt;BR /&gt; &amp;lt;label&amp;gt; &amp;lt;strong&amp;gt; Afliation : &amp;lt;/strong&amp;gt;&amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td class="pickerSelectorSelect"&amp;gt;&lt;BR /&gt; &amp;lt;select id="tacticalIdA" name="TaticalA" class="btn Load"&amp;gt;&lt;BR /&gt; &amp;lt;option&amp;gt;SELECT&amp;lt;/option&amp;gt;&lt;BR /&gt; &amp;lt;/select&amp;gt;&lt;BR /&gt; &amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;div&amp;gt;&lt;BR /&gt; &amp;lt;table style="width:100%"&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&lt;BR /&gt; &amp;lt;td class="pickerSelectorLabal"&amp;gt;&lt;BR /&gt; &amp;lt;label&amp;gt;&amp;lt;strong&amp;gt; Dimension : &amp;lt;/strong&amp;gt; &amp;lt;/label&amp;gt;&lt;BR /&gt; &amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td class="pickerSelectorSelect"&amp;gt;&lt;BR /&gt; &amp;lt;select id="tacticalIdB" name="TaticalB" class="btn Load "&amp;gt;&lt;BR /&gt; &amp;lt;option&amp;gt;SELECT&amp;lt;/option&amp;gt;&lt;BR /&gt; &amp;lt;/select&amp;gt;&lt;BR /&gt; &amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;/table&amp;gt;&lt;BR /&gt; &amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="verticalSplit"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div id="tacticalTblStyleContainer" style="height:100%;overflow:auto"&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 23:12:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-military-symbols-on-map/m-p/628808#M58721</guid>
      <dc:creator>ALOKRANJAN</dc:creator>
      <dc:date>2020-05-22T23:12:00Z</dc:date>
    </item>
  </channel>
</rss>

