简体   繁体   English

Citymaps SDK的CEMarker类的fadeTime代表什么?

[英]What does the fadeTime for the Citymaps SDK's CEMarker class represent?

Documentation claims only this: 文档仅声明以下内容:

/** How long it takes the marker to fade in and out when visibility changes. */
@property (nonatomic, assign) CGFloat fadeTime;

Does this CGFloat value represent seconds? 这个CGFloat值代表秒吗? milliseconds? 毫秒? No matter what value I supply: 无论我提供什么价值:

[marker setFadeTime:3000.0f]; // assume milliseconds

or 要么

marker.fadeTime = 3.0f;       // assume seconds

It doesn't seem to change the behavior. 它似乎并没有改变行为。 Any help is appreciated. 任何帮助表示赞赏。

(Apologies - not enough reputation points yet to create a citymaps tag - any 1500+ members, please feel free to assist!) (抱歉-信誉点不足,无法创建citymaps标签-超过1500个成员,请随时提供帮助!)

Thanks 谢谢

I am a developer at Citymaps. 我是Citymaps的开发人员。 Thanks for putting up with our, rather bare, documentation. 感谢您提供我们相当裸露的文档。 Looking at the docs made me realize that we're missing a few key properties on markers, both on iOS and android (oops). 查看文档使我意识到,我们在iOS和android(哎呀)上都缺少标记的一些关键属性。

To answer your question, fadeTime will adjust the speed that the marker fades in or out by when its visibility changes. 为了回答您的问题,fadeTime会根据其可见性的变化来调整标记淡入或淡出的速度。 Right now, visibility will only be changed through the collision detection feature of CEMarkerGroup. 目前,只能通过CEMarkerGroup的碰撞检测功能来更改可见性。 One of those missing properties I mentioned was a 'hidden' property for iOS, or a 'visibility' property on Android, similar to their respective View class. 我提到的那些缺少的属性之一是iOS的“隐藏”属性,或Android的“可见性”属性,类似于它们各自的View类。

I've updated our docs a bit to answer the question of what unit this value is. 我已经对文档进行了一些更新,以回答此值是什么单位的问题。 We try to follow the convention of the platform. 我们尝试遵循平台的惯例。 For iOS, this value is in seconds. 对于iOS,此值以秒为单位。 On Android, this value is in milliseconds. 在Android上,此值以毫秒为单位。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM