您好 官网上是这样的例子
{Array(String)} 此类支持的事件类型。
//使用下面的方法将图层添加到map var animatorVector = new SuperMap.Layer.AnimatorVector("animatorVector", {}, { //设置速度为每帧播放0.05的数据 speed:0.05, //开始时间为0 startTime:0, //每秒渲染12帧 frameRate:12, //结束时间设置为10 endTime:10 }); layer.events.on({"drawfeaturestart": drawfeaturestart}); function drawfeaturestart(feature) { } 但是我把drawfeaturestart": drawfeaturestart换成"drawFrame":drawFrame就无法监听执行
//使用下面的方法将图层添加到map var animatorVector = new SuperMap.Layer.AnimatorVector("animatorVector", {}, { //设置速度为每帧播放0.05的数据 speed:0.05, //开始时间为0 startTime:0, //每秒渲染12帧 frameRate:12, //结束时间设置为10 endTime:10 }); layer.events.on({"drawfeaturestart": drawfeaturestart}); function drawfeaturestart(feature) { }
但是我把drawfeaturestart": drawfeaturestart换成"drawFrame":drawFrame就无法监听执行