var currentScale = esri.geometry.getScale(map.extent,map.width,map.spatialReference.wkid); var scaleRatio = userScale / currentScale; var newExtent = map.extent.expand(scaleRatio); map.setExtent(newExtent);
function zoomToScale(scale){ map.setExtent(esri.geometry.getExtentForScale(map, scale)); }
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.