|
你好,IOS上点击标注闪一下就消失了
- aMap.addAnnotations({
- annotations: [{
- id: 1,
- lon: location.lon,
- lat: location.lat
- }],
- icons: ['widget://image/ah4.png'],
- draggable: true,
- timeInterval: 2.0
- }, function(ret) {
- aMap.setBubble({
- id: 1,
- bgImg: 'widget://res/bubble_bg.png',
- content: {
- title: '大标题',
- subTitle: '概述内容',
- illus: 'http://ico**.**/ajax/iconpng/?id=145044.png'
- },
- styles: {
- titleColor: '#000',
- titleSize: 16,
- subTitleColor: '#999',
- subTitleSize: 12,
- illusAlign: 'left'
- }
- }, function(ret) {
- if (ret) {
- alert(JSON.stringify(ret));
- }
- });
- if (ret.eventType == 'click') {
- }
- });
复制代码 |
|