Javascript library for 2525C/D and APP6B (I made this)

611 views
Skip to first unread message

Måns Beckman

unread,
Mar 8, 2015, 5:37:40 AM3/8/15
to mil...@googlegroups.com
Hi, 

I have built a javascript library that creates 2525C and APP6 symbols as SVG symbols. (Just a hobby project that became quite big and started out with me just wanting a couple of symbols for a demo) (2525D symbols are under development at the moment.) What I think is a bit special about my library is that it is totally stand alone, not using any fonts or images from the server, everything you need is simply in one javascript file. And since I create the SVG all by my self it's possible to change a lot more of properties than usual, like colours, line widhts, and other things. (One thing that I haven't seen anyone else do is that the mobility indicator actually snaps to the icon if you remove the frame on a equipment symbol.)

It's really easy to use the symbols in other libraries like LeafLet or OpenLayers for maps, or d3 for Networks and other kinds of visualisation. And I have also created a totally stand alone webpage where you can create unit symbols for your presentations and reports, just open it in IE9+ and you can right click and copy paste the generated symbol into your presentation/report. Just simply save the single html page on your computer if you want to use it when you don't have an internet connection, or want to move it to an air gapped system. 
Other developers has also already built setups where the use node.js and phantom.js to create a symbol service on a server, what I have heard it didn't require many lines of code.

I know that there are other libraries out there that does the same thing, but I think that mine is different in some ways that makes it really handy for some applications, like it's flexibility and possibilities to change all properties of the symbols.

The library is released under the BSD license. The main focus for development at the moment is to finish 2525D support and optimising the code size so that it becomes even smaller.

The library does not support tactical graphics like attac arrows and such. (At the moment)

More information and Examples can be found at:

Source Code:

Best Regards
Måns

John Scott

unread,
Mar 8, 2015, 7:42:43 PM3/8/15
to Måns Beckman, mil...@googlegroups.com
+1 
great work 
js

-------------------------------------------
John Scott
@johnmscott
--
--
You received this message because you are subscribed to the "Military Open Source Software" Google Group.
To post to this group, send email to mil...@googlegroups.com
To unsubscribe from this group, send email to mil-oss+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mil-oss?hl=en
 
www.mil-oss.org

---
You received this message because you are subscribed to the Google Groups "Military Open Source Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mil-oss+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex O'Ree

unread,
Mar 21, 2015, 1:10:01 PM3/21/15
to mil...@googlegroups.com, Måns Beckman
Not to put you down or anything, but it amazes me that people continue to write military symbol renderers when the US Army gives theirs away for free. And it's open source.


Java, Javascript and Android friendly

John Scott III

unread,
Mar 21, 2015, 2:57:51 PM3/21/15
to mil...@googlegroups.com, Måns Beckman
Agree, but that only happened maybe 12 months ago? 

Sent from my iPhone

Måns Beckman

unread,
Mar 22, 2015, 2:08:55 PM3/22/15
to John Scott III, mil...@googlegroups.com
I know about missioncommand and they have been in contact with me
about some collaboration, but when I started my coding I didn't know
about them. And for symbol graphics I would use their code.
However, what makes my code special is that it is totally stand alone,
no fonts or anything needed. I my opinion sharper and better looking
SVG symbols, and also my code can do things I don't think they can,
like mono color symbols, unfilled symbols, moving mobility indicators
when unframing symbols.

And for me it's just a hobby, so I did it to see if I could. ;-)

/Måns
Reply all
Reply to author
Forward
0 new messages