new Meta(selector, context) → {ElementSelector}
Meta main function
Parameters:
| Name | Type | Description |
|---|---|---|
selector |
String | 选择器,可以为类名,id,字符串,Element |
context |
Object | 上下文 |
Returns:
- Meta实例
- Type
- ElementSelector
Example
map.animateTo({
zoom : 13,
center : [0, 0],
pitch : 30,
bearing : 60
}, {
duration : 6000,
easing : 'out'
}, function(frame) {
if (frame.state.playState === 'finished') {
console.log('animation finished');
}
});