- Code: Select all
<html>
<head>
<title>test</title>
<meta name="generator" content="BBEdit 12.0" />
<meta charset="UTF-8" />
<script src="milsymbol.js"></script>
</head>
<body>
<script>
document.write(new ms.Symbol('10031000001211050051', { size: 100}).asSVG());
</script>
</body>
</html>
The long number is the so called SDIC or Symbol ID Code that uniquely identifies a symbol. My questions are: which would be the best way to load the library and have it always available in my solution and how would you trigger the js function to draw the symbol? Thanks for any suggestion.