/*
 * 气象监测图层默认配置
 */
export const tempWeatherLayerLayout = {
  visibility: 'visible',
  'icon-image': 'temp_weather',
  'icon-offset': [0, -16],
  'icon-allow-overlap': true, //表示图标被其他图层盖住依然展示
  'text-allow-overlap': true, //表示文本被其他图层盖住依然展示
}
export const tempWeatherLayerPaint = null
export const tempWeatherLayerFilter = ['!has', 'cluster']

/*
 * 气象监测聚合图层默认配置
 */
export const tempWeatherClusterLayerLayout = {
  visibility: 'visible',
  'icon-image': 'point_cluster_blue',
  'icon-allow-overlap': true,
  'text-allow-overlap': true,
  'text-field': '{point_count}',
  'text-anchor': 'center',
  'text-size': ['case', ['<', ['get', 'point_count'], 10], 20, 16],
}
export const tempWeatherClusterLayerPaint = {
  'text-color': '#fff',
}
export const tempWeatherClusterLayerFilter = ['has', 'cluster']
