spatialillusions / milsymbol

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

This library is fantastic! Can we use it also to parse 2525 Charlie codes? #294

Closed cbiggins closed 5 months ago

cbiggins commented 5 months ago

This is working brilliantly for us and does exactly what it says on the tin. Thanks very much!

A quick question, can we gather information from a charlie code as well as create the symbol? For example, if given a code could we establish if it is a friendly sea unit? Or an enemy infantry unit? We were about to write our own parser for these codes and I thought maybe there'd be existing parsing in this lib.

Thanks again!

cbiggins commented 5 months ago

I've just found the getMetadata() function which seems to do exactly as I need.

symbol.getMetadata()

Thanks again.