cesiumlab / cesiumlab/XbsjEarthUI
pin用imageUrl的话,没有api可以调图片pin的偏移值吧?类似pinbuilder.extTextPixelOffset
- Dominant language
- JavaScript
- Stars
- 734
- Forks
- 193
- PR merge metrics
- No merged PRs in 30d
Description
pin用imageUrl的话,没有api可以调图片pin的偏移值吧?类似pinbuilder.extTextPixelOffset
---
有 origin属性,可以使用
---
谢谢,但试了下,这个array里只有两位,也不接受负值,只能往下和往左调,没法往上调
---
设置 xxx.isDivImage = true,就可以任意调整origin。
isDivImage为false时,内部使用的是Cesium的billboard,会受Cesium的限制。
---
等下,isDivImage为true的话onmousehover就没用了。
---
如果需要绑定事件,或者其他更复杂的操作,可以pin绑定div来操作
类似下面的示例:
http://earthsdk.com/v/last/Apps/Examples/?menu=true&url=./earth-pin-div.html
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the pin image configuration described in the issue and review the linked earth-pin-div.html example. Check how origin, isDivImage, and mouse-hover behavior interact. Done means the supported way to adjust image-pin offsets while retaining required interactions is clearly identified or documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100