Could you tell me how you did this or do you have a template I can use? Here is my email Jon.Beets@us.af.mil
Thanks...
basically you need to replace the webmap object by your own object rather than one that comes from arcgisonline. in layout.js file you need to modify the "initMap()" function.follow the instructions for "Create a map using json" from herehttp://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_webmap.htmlor see the excerpt. hope that helps
//CUSTOMWEBMAP
webmap = {};
webmap.item = {
"title":"put in your title",
"snippet": "?",
"extent" : [[151.1531, -33.909], [151.2702, -33.8514]]
};
dojo.byId("title").innerHTML = pmgConfig.title || webmap.item.title;
// SITE TITLE
if(pmgConfig.siteTitle){
pmgConfig.pmgSubTitle = pmgConfig.title || webmap.item.title;
setPageTitle();
}
dojo.byId("subtitle").innerHTML = pmgConfig.subtitle || webmap.item.snippet || "";
var descriptionInfo = pmgConfig.sidebarContent || webmap.item.description || "";
dojo.byId("descriptionContent").innerHTML = '<h2>About this map</h2>' + descriptionInfo + '<div class="clear"></div>';
webmap.itemData = {
"operationalLayers": [{
"url": "<address to your ags service>",
"visibility": true,
"opacity": 1,
"title": "whatever name"
}],
"baseMap": {
"baseMapLayers": [{
"opacity": 0.5,
"visibility": true,
"url": "<address to your ags service>"
}],
"title": "whatevername"
},
"version": "1.1"
};
var mapDeferred = esri.arcgis.utils.createMap(webmap, "map", {
mapOptions: {
slider: false,
wrapAround180:true,
nav: false
},
ignorePopups:false,
geometryServiceURL: "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"
});
// var mapDeferred = esri.arcgis.utils.createMap(itemInfo, "map", {
// mapOptions: {
// slider: false,
// wrapAround180:true,
// nav: false
// },
// ignorePopups:false,
// bingMapsKey: pmgConfig.bingMapsKey,
// geometryServiceURL: "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"
// });