CSDN地址:blog.csdn.net/weixin_4397…
教程示例网站: thomaz529.github.io/
微信:CesiumPlus
一、原理
Cesium内置图钉接口,new Cesium.PinBuilder()。
1、fromColor(color, size) :创建指定颜色和大小。
2、fromMakiIconId (id, color, size) :创建具有指定 maki 图标标识符、颜色和大小的图钉。
3、fromText (text, color, size):创建具有指定文本、颜色和大小的图钉。文本将尽可能大,同时完全包含在图钉内。
4、fromUrl (url, color, size):创建具有指定图标、颜色和大小的图钉。
二、效果图