You have to wait for the map to load before you can interact with it. See http://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=graphics_add ...
確定! 回上一頁