AnsweredAssumed Answered

KML on ArcGIS API Not Displaying Inserted Text In Map

Question asked by behClevest on Aug 9, 2017

Using Following code from ArcGIS JavaScript API 3.21 , I am trying to display a converted map to kmz file by ArcMap at ArcGIS JavaScript API 

 

var map;
  require([
    "esri/map", "esri/layers/KMLLayer",
    "dojo/parser", "dojo/dom-style",

    "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!"
  ], function(
    Map, KMLLayer,
    parser, domStyle
  ) {
    map = new Map("map", {
      basemap: "topo",
      center: [-108.663, 42.68],
      zoom: 6
    });

    parser.parse();

    var kmlUrl = "http://mydomain.com/data/app.kmz";
    var kml = new KMLLayer(kmlUrl);
    map.addLayer(kml);
    kml.on("load", function() {
      domStyle.set("loading", "display", "none");
    });
  });

 

I have an .mxd map which looks like with an inserted white TEXT "Map Of Some Where" in the middle. I used the Map to KML tool to export the map to kml file

but the output on ArcGIS API looks like when I load it to API map (Without inserted TEXT)

 

Can you please let me know why this is happening and how I can fix this?

Outcomes