missioncommand / mil-sym-js

(RETIRED) MIL-STD-2525 symbol rendering JavaScript library for modern web applications
Apache License 2.0
76 stars 25 forks source link

Change location of text and border color of obstacles. #54

Open OscBer97 opened 1 year ago

OscBer97 commented 1 year ago

Hello

Im having some problems with modifying the layout/design of a dynamic minefield (G*MPOFD---****X). First I am trying move the label text to the anchorpoint. To make the label look the same as for general obstacle zone (G*MPOGZ---****X), is this possible? And if so, how do I do it?

The second problem I am having is when I try to add an outline color to the created obstacle zone. In MilStdAttributes.js I have found the OutlineColor attribute, but when I change it nothing happens, I have tried playing around with OutlineAlpha, OutlineWidth and some of the other attributes but nothing adds a border… How do I add an outline color to a obstacle zone?

michael-spinelli commented 1 year ago

1st question, which label are you talking about? I'm not sure what you're trying to do: image

2nd question, Obstacles are always green. image

michael-spinelli commented 1 year ago

Sorry, you said outline color, not line color. Let me take a look.

michael-spinelli commented 1 year ago

I believe the outline color/width/alpha only works for single point graphics.