milsymbol icon indicating copy to clipboard operation
milsymbol copied to clipboard

Anchor Information

Open cursorcl opened this issue 3 years ago • 2 comments

When I like to draw symbols asCanvas in Cesium and apply getAnchor() -x and -y offset the icon is showed far of the setting position.

It always happend when I enable infoFields how in the image. problem

How I know the correct offset to apply?

cursorcl avatar May 05 '21 15:05 cursorcl

Sort of like this should work.

https://cesium.com/blog/2016/07/20/cesium-and-milsymbol/

On 5 May 2021, at 17:47, Eliecer Osorio @.***> wrote:

 When I like to draw symbols asCanvas in Cesium and apply getAnchor() -x and -y offset the icon is showed far of the setting position.

It always happend when I enable infoFields how in the image.

How I know the correct offset to apply?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

spatialillusions avatar May 05 '21 16:05 spatialillusions

It is precisely from this page that I have taken the example.

When placing the texts, the size of the resulting canvas grows and the offset is apparently not correct.

cursorcl avatar May 05 '21 19:05 cursorcl

Just used the octagon offset in another program, if it doesn't work, it is a bug in Cesium and not in milsymbol. If you still think it is a milsymbol bug, please provide a code example.

spatialillusions avatar Feb 24 '23 08:02 spatialillusions