The 401 error is because you are trying to access a restricted document. Use getDocumentUrl() method and that will get the file URL with an auth token.
var icon = client.getDocumentUrl(“docs/dot.png”);
Then reference the icon in your marker “icon:icon,” and you should be all set.
The 401 error is because you are trying to access a restricted document. Use getDocumentUrl() method and that will get the file URL with an auth token.
var icon = client.getDocumentUrl(“docs/dot.png”);
Then reference the icon in your marker “icon:icon,” and you should be all set.
https://dev.vantiq.com/docs/system/cbref/index.html#getdocumenturl