Currently, the style of the point is always a circle when we using the point parameter in style.option. When you want to change the shape of the point, you have to use the style.icon parameter. But icons are linked to a LabelLayer and have the same characteristics. This means that sometimes certain points disappear as they overlap on the map for example.
Expected behavior
We expect to have access to basic shapes such as squares, crosses, triangles and so on.
In addition, it would be preferable to manage custom shapes as a point option and not by using the icon option.
Proposal
There are two proposals in this problem:
Add an option in the point style options to select the point shape.
Add an option in the point style options to add a personal icon using png, svg, context for example.
These two options can use the same principle by being constructed with CanvasRenderingContext2D as was done for the circle.
Discussion
I'm not sure I understand 100% how the style rendering works. I'm just opening a discussion to improve how it works now.
Context
Currently, the style of the point is always a circle when we using the
point
parameter instyle.option
. When you want to change the shape of the point, you have to use thestyle.icon
parameter. But icons are linked to aLabelLayer
and have the same characteristics. This means that sometimes certain points disappear as they overlap on the map for example.Expected behavior
We expect to have access to basic shapes such as squares, crosses, triangles and so on. In addition, it would be preferable to manage custom shapes as a point option and not by using the icon option.
Proposal
There are two proposals in this problem:
These two options can use the same principle by being constructed with
CanvasRenderingContext2D
as was done for the circle.Discussion
I'm not sure I understand 100% how the style rendering works. I'm just opening a discussion to improve how it works now.