spatialillusions / milsymbol

Military Symbols in JavaScript
www.spatialillusions.com/milsymbol
MIT License
571 stars 139 forks source link

Stack and Country icon modifications not showing. #304

Closed Pip1987 closed 1 month ago

Pip1987 commented 1 month ago

Not sure if I'm setting these right, but when I set stack to 2 and country to usa with the following initializer $("#symbol").html(new ms.Symbol("30001000000000000000", { stack:2, country: 'USA'}).asSVG());

For the flag I have also tried to match the generated json file with country_flag instead of country but get the same thing. All other symbols appear to be working just fine.

I expect to get: image but I get the following instead: image

spatialillusions commented 1 month ago

Stack and country flag are milsymbol extensions that aren't part of the milsymbol library. They are in a way breaking how symbols should be visualized according to MIL-STD-2525, so I kept them outside.

If you are interested in the functionality, please send me an email if you would be interested in paying for that code.