3维地图是插件的.自定义方法如下:
function boxchoose(){
var boxchoose = new SuperMap.Web.UI.Action3Ds.BoxChoose(sceneControl);
sceneControl.set_sceneAction(boxchoose);
}
SuperMap.Web.UI.Action3Ds.BoxChoose=function(){
SuperMap.Web.UI.Action3Ds.BoxChoose.initializeBase(this);
this._name = "boxchoose";
this._sceneControl = sceneControl;
//对应的场景操作类型为漫游
this._type = SuperMap.Web.UI.Action3Ds.SceneActionType.PAN;
}
//扩展Action的属性和方法
SuperMap.Web.UI.Action3Ds.BoxChoose.prototype =
{
/*
* 析构方法
*/
dispose:function()
{
this._sceneControl = null;
},
/*
* 鼠标单击方法
*/
onMouseDown:function(e)
{
alert(e);
//把点击获得的多个点连城线,或者连城一个封闭的多边形?
}
};
SuperMap.Web.UI.Action3Ds.BoxChoose.registerClass('SuperMap.Web.UI.Action3Ds.BoxChoose',SuperMap.Web.UI.Action3Ds.SceneAction,Sys.IDisposable);