mln_style/layers/
hillshade_layer.rs1use crate::layer::{LayerStyle, LayerTypeInfo, NoProperties, SourceKind, StyleLayerType};
2use crate::layers::hillshade_layer_properties::{self, HillshadePaintProperties};
3use crate::property::table::{PropertyTable, PropertyVisitor};
4
5pub struct Hillshade;
7
8impl StyleLayerType for Hillshade {
9 const INFO: LayerTypeInfo = LayerTypeInfo { name: "hillshade", source: SourceKind::RasterDem, from_json: true };
10 const PROPERTIES: &'static PropertyTable = &hillshade_layer_properties::PROPERTIES;
11
12 type LayoutProperties = NoProperties;
13 type PaintProperties = HillshadePaintProperties::Transitionable;
14 type Extra = ();
15
16 fn visit_property<V: PropertyVisitor<LayerStyle<Self>>>(slot: usize, visitor: V) -> Option<V::Output> {
17 hillshade_layer_properties::visit(slot, visitor)
18 }
19}