Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

195
Visualizações
Milsymbol for 2525D icons erroring on call to .asSVG()

Installed Milsymbol 2.0.0-rc2 as instructed here https://www.npmjs.com/package/milsymbol/v/2.0.0-rc2n

Am using the asCanvas() call to generate symbols and this works fine but there is speculation that Canvas has a memory leak as the browser locks up after 2 hours of running so I am trying to switch over to using the asSVG() format.

Documentation states that I can generate a symbol by passing in the correct parameters and calling .asCanvas or .asSVG()

formattedas per the exmple, my call to canvas works.

var canvasElement = new ms.Symbol("SFG-UCI----D").asCanvas();

formatted as per the example, my call to asSVG() produces an error and the icons do not print on the map.

new ms.Symbol("sfgpewrh--mt", {
    size: 35,
    quantity: 200,
    staffComments: "for reinforcements".toUpperCase(),
    additionalInformation: "added support for JJ".toUpperCase(),
    direction: (750*360/6400),
    type: "machine gun".toUpperCase(),
    dtg: "30140000ZSEP97",
    location: "0900000.0E570306.0N"
}).asSVG();

Assuming I was missing the SVG library, I installed that from here https://www.npmjs.com/package/svg but the call to .asSVG() still results in an error.

Anyone know what part/piece/knowledge I am missing? TIA

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda