如何在ArcGIS Online中構建自己的應用程式模板初級篇-顯示地圖
阿新 • • 發佈:2018-12-24
function init() { var urlObject = esri.urlToObject(document.location.href); if(urlObject.query && typeof (urlObject.query.webmap) != "undefined") { var WEBMAP_ID = urlObject.query.webmap; } else { var WEBMAP_ID = "ceac2dfaea0449119724e8b78e99013a" } var mapDeferred = esri.arcgis.utils.createMap(WEBMAP_ID, "map", { mapOptions : { slider : true }, ignorePopups : false, bingMapsKey : "" }); mapDeferred.addCallback(function(response) { console.log(response); _map = response.map; dojo.connect(dijit.byId('map'), 'resize', _map,_map.resize); }) }