masterarbeit

Adding Layers from local drive

Discussion created by masterarbeit on Sep 5, 2010
Latest reply on Sep 6, 2010 by a.schaefer-esri-de-esridist
Hello,
I want to add layers to my map with JavaScript API. There are some examples in the Resource Center "Creating a custom tiled layer type" title such as;

"This function adds the layer to the map."
function init() {
  var map = new esri.Map("map");
  map.addLayer(new my.PortlandTiledMapServiceLayer());
}


But, I want to add my layers from my local drive (C:\), because I want to open my map in a browser without internet access. How can I do this, can you give a sample code?

Thanks.

Outcomes