osh-js icon indicating copy to clipboard operation
osh-js copied to clipboard

Allow clients to specify label styling

Open nickgaray opened this issue 4 years ago • 3 comments

image Label styling, such as color and optionally border should be allowed for any PointMarkerLayer.

nickgaray avatar Sep 30 '21 01:09 nickgaray

The example image provided shows a black label with white outline

nickgaray avatar Sep 30 '21 01:09 nickgaray

I agree, the biggest difficulty is to have something homogeneous between the different views. But for now, we can add the properties in the Layer and implement them in the Cesium view

mdhsl avatar Sep 30 '21 10:09 mdhsl

Instead of doing something specific for Cesium label outlines, I think it would be better to have a general mechanism to add any custom configuration that is specific to a particular view implementation (i.e. not handled by generic styler properties). It could be done via a callback providing the graphical object created by the view impl for example, so it can be further customized.

alexrobin avatar Sep 30 '21 11:09 alexrobin