Hi guys,i develop a sample code for mobile with javascript and i load into it a webmap id that is on my arcgis online account.Is it possible to set a custom extent for the webmap?This is my cod
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Applicazione Web jQuery Mobile</title>
<link href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" rel="stylesheet" type="text/css"/>
<script src="http://code.jquery.com/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js" type="text/javascript"></script>
<script>var dojoConfig = { parseOnLoad:true };</script>
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4compact/"></script>
<script>
dojo.require("esri.map");
dojo.require("esri.arcgis.utils");
dojo.require("esri.dijit.Legend");
var map;
function init(){
var webmapid = "6eb589248e684df282db5bcd993d1ebe";
esri.arcgis.utils.createMap(webmapid, "mapDiv").then(function(response){
map = response.map;
var legend = new esri.dijit.Legend({
map:map,
layerInfos:(esri.arcgis.utils.getLegendLayers(response))
},"legendDiv");
legend.startup();
});
}
dojo.ready(init);
</script>
</head>
<body>
<div data-role="page" id="page">
<div data-role="header">
<h1>Pagina uno</h1>
</div>
<div data-role="content">
<div id="mapDiv" style="height:380px"></div>
</div>
<div data-role="footer" data-position="fixed">
<h4>Piè di pagina</h4>
</div>
</div>
</body>
</html>
Any help please?Thanks