Skip to content

Commit c202b17

Browse files
refactor(web): add label to filter feature by style sample (#1610)
Co-authored-by: lby <icesunex@hotmail.com>
1 parent 7ca72a3 commit c202b17

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

web/src/beta/features/PluginPlayground/Plugins/presets/layerStyles/filterFeaturebyStyle.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,19 @@ const samplePointData = {
7373
url: "https://reearth.github.io/visualizer-plugin-sample-data/public/geojson/sample_population_marker.geojson"
7474
7575
},
76-
marker: {},
76+
marker: {
77+
label: true,
78+
labelBackground: true,
79+
labelBackgroundColor: "#00000080",
80+
labelPosition: "top",
81+
labelText: {
82+
expression: "\${ls_name}",
83+
},
84+
labelTypography: {
85+
color: "#FFFFFF",
86+
fontSize: 12,
87+
},
88+
},
7789
};
7890
7991
// Add the layer to Re:Earth

0 commit comments

Comments
 (0)