[GIS] Integrating ArcGIS Online Web map to the Java script file (test.html)

arcgis-javascript-apiarcgis-online

Is it possible to integrate ArcGIS Online web map to my java script API?

I check the samples but in which only web map is added..

I have few layers in .html file (Like feature,dynamic etc. and I want to integrate one web map to my application.)

Best Answer

Yes, it is possible to use ArcGIS Online web map in your javascript application. There are several samples on the resource center. One of them adds a graphicslayer, but you could also add a feature layer instead, see http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ags_fullmaplayout.html on how to use map.addLayer().