Constructor
new MapStyle(options)
构造函数
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 参数列表
Properties
|
Members
blur :Number
设置模糊范围
Type:
- Number
Example
map.style.blur = 0.5; //设置模糊范围 0代表全屏模糊 1代表没有模糊
map.style.blur = [-0.5,0.5,-0.5,0.5]; //屏幕中心为原点,下上左右不模糊的区域
fog :Boolean
是否开启雾效
Type:
- Boolean
Example
map.style.fog = true;//开启雾效果
fogDensity :Number
雾的浓度
Type:
- Number
Example
map.style.fogDensity = 0.5;//设置雾的浓度为0.5
fogExpDensity :Number
浓雾的浓度
Type:
- Number
Example
map.style.fogExpDensity = 2;//设置浓雾的浓度为2
night :Boolean
是否开启白天黑夜
Type:
- Boolean
Example
map.style.night = true;//开启白天黑夜效果