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

Square basic shape symbol does not work #11

Closed bevins2 closed 8 years ago

bevins2 commented 8 years ago

Basic shape SQUARE (symbol code PBS_SQUARE-----) does not work. Passing in width into the AM field. Nothing appears on map.

mdeutch3 commented 8 years ago

A recent change was made to the renderer that sets the rotation to 0 internally if the client does not set the AN azimuth array. Are you running the latest version or setting the azimuth array?

bevins2 commented 8 years ago

We are not setting AN. I will pull latest renderer and retest.

bevins2 commented 8 years ago

Tested latest, still no square. Here are params we are passing to the renderer:

modifiers: {"AM":[100],"LINECOLOR":"000000","LINEWIDTH":3}

width: 977 height: 875 symbolCode "PBS_SQUARE-----" control points: "40,40"

michael-spinelli commented 8 years ago

The change Deutch is talking about hasn't made it into an official release yet.

mdeutch3 commented 8 years ago

If you want to try it with the release you have it should work by adding AN:[0] to the modifiers.

bevins2 commented 8 years ago

Is there a fix coming for this?

bevins2 commented 8 years ago

Oh, I just saw Mike's comment. So try the AN for now, and in future it will be put there.

michael-spinelli commented 8 years ago

fixed in release v0.2.0