Add information about Json layers on the Arcgis map

I am trying to load working level data from the following JSON with no luck.

So far I have tried the following

  • add it as a graphics layer using graphicLayer = new esri.layers.GraphicsLayer(); graphicLayer.add(json); map.add(graphicLayer);
  • tried to normalize it and add as a graphic using normalizeUtils.normalizeCentralMeridian

Is there something that I am missing for reference I'm trying to follow this example http://resources.arcgis.com/en/help/arcgis-web-map-json/index.html#/ArcGIS_feature_service_operational_layers/02qt00000017000000/

In my first case with Arcgis, I have a JSON sample of a previously drawn line on a map that I am trying to load with no luck. Here is the JSFiddle of what I'm trying.

https://jsfiddle.net/42wehk86/3/

Really appreciate if anyone can shed some light on this.

+6
source share
1 answer

If you want to create a map from an ArcSIS JSON web map, then you must use createMap(itemIdOrItemInfo, mapDiv, options?)fromesri/arcgis/utils

Sample

0
source

All Articles