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

TypeError: Cannot read property 'toHexString' of undefined #15

Closed alberto-acevedo closed 7 years ago

alberto-acevedo commented 7 years ago

This issue was encountered in WebWorldWind when using the SEC renderer with geojson format

sourceClass: "MultiPointHandler" sourceMethod: "JSONize"

data used: name: "Discolored Water" symbolId: "WO-DHHDD----A--" points: "6.3,24 6.8,24.5 7.3,24" pixelWidth: 1589 pixelHeight: 966 bound: "-1.3002689902303186,21.76166988385108,7.099433057025056,26.434979493477332" modifiers: CN:"Discolored Water" GJFORMAT:1 SYMSTD:1

format:2 --> geojson milstd: 1

fontInfo: Object name:"arial" size:10 style:"bold"

Same problem with PERCHES/STAKES, Drydock, "Underwater Hazard"

michael-spinelli commented 7 years ago

I'll check in a fix when my network issues get resolved.

michael-spinelli commented 7 years ago

fixed in mil-sym-js release v0.3.24