arcgis for JavaScript
如何根據esri.Graphic在地圖esri.Map上根據圖形的范圍大小來自動縮放級別呢?
此問題已解決,代碼如下:
var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([ 255, 255, 255, 0.35 ]), 1), new dojo.Color([ 125, 125, 125, 0.35 ]));
judgeCircle = new esri.geometry.Circle({
center : pointCenter,
geodesic : true,
radius : valuerd * 1000
});
var graphicCrile = new esri.Graphic(judgeCircle, symbol);
map.setExtent(judgeCircle.getExtent());