Coder Social home page Coder Social logo

mil-sym-js's Introduction

mil-sym-js

mil-sym-js is a JavaScript port of the java-based mil-std rendering libraries that have been used in US Army Mission Command software for years. In November 2013 Mission Command was given the approval to release and maintain these libraries as public open source.

See SinglePoints in action here: Old Tester, New Tester
Single Point Rendering Web Browser Compatibility Tables

See sample KML output for multipoints here.

JS Renderer Developer's Guide Wiki
[JS Renderer Developer's Guide Word Doc](https://github.com/missioncommand/mil-sym-js/blob/master/Mil Symbology Renderer Developer's Guide for JavaScript.docx)
Google Group Discussion Forum

MIL-STD-2525

The MIL-STD-2525 standard defines how to visualize military symbology. This project provides support for the entire MIL-STD-2525B Change II plus USAS 13-14 and MIL-STD-2525C.

Project Structure

mil-sym-js has a namespace structure that resembles the java layout although differs where we needed to implement java functionality that wasn't available in JavaScript:

When using Ant to build, the output to the "dist" folder will include a few html files that show basic usage of the renderer.

Version

1.0

Tech

mil-sym-js project uses a handful of open source projects to work properly:

  • Ant - Open source Apache build manager for Java projects
  • jQuery - A fast, small, and feature-rich JavaScript library

Limitations

mil-sym-js is designed & tested to work on IE9 or greater and FireFox 24 or greater. Currently, singlepoint rendering with this version of the renderer only works on IE and FireFox. Multipoint rendering will work on most recent browsers. Older versions of FireFox may work but haven't been tested thoroughly. IE9 is the absolute minimum for singlepoint rendering. IE8 may work for just multipoints but hasn't been tested thoroughly.

Singlepoint rendering works on IE9+ and Firefox 22+. It seems to work well with Chrome 32+ & Opera 21+ but hasn't been fully tested.

Build

This project builds with Ant resulting in two JavaScript files.
One has all of the JS code combined into one file.
The other is a minified version of the first file. (i.e. sm-bc.js & sm-bc.min.js)

Open a command prompt to the root folder of the repository on your local machine and enter:

ant clean
ant concat sm-bc minify samples

"sm-bc" represents what you rendering capabilities you want.

s: singlepoint (jquery plugin for singlepoint rendering only available in singlepoint only builds)
m: multipoints
sm: both

b: 2525B support
c: 2525C support
bc: both

allFlavors: every variation will be generated

running "ant concat sm-bc minify samples" would result in the following files being placed in the "dist" folder:

  • fonts (contains fonts needed for singlepoint rendering)
  • renderer.css (to load the font files)
  • jquery-[version].min.js
  • multiPointTester1.html (renders kml for a couple multipoint symbols)
  • multiPointTester2.html (renders kml for a couple multipoint symbols in a loop to test performance)
  • singlePointTester.html (renders a couple of singlepoint symbols to the page)
  • singlePointTester2.html (Allows you to render any single point symbol and adjust rendering attributes & modifiers)
  • single-point-plugin.html (show sample usage with jQuery)
  • sm-bc.js (concatenated renderer code)
  • sm-bc.min.js (concatenated & minified renderer code)

License

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/

mil-sym-js's People

Contributors

mdeutch3 avatar eric-briscoe avatar

Watchers

Gianluca Caporossi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.