Skip to content
Vantiq Community
Vantiq Community
Vantiq Community
Academy
Business Courses • Technical Courses
Knowledge Base
Product Support
Contact Us
Vantiq
Vantiq.com • Platform
Register / Log In
Vantiq Platform Community
Vantiq Community
Academy Knowledge Base Product Support Contact Us
Search Log In
Business Courses Technical Courses
May 3, 2021
Posted by Patrick Burma

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

 

 

VANTIQ
Forums
Community Portal Forum
Course Questions
Developers Forum
Other Language Forum - Japanese (日本語のフォーラム)
Keywords /
Topics
Assemblies • 2
Catalog • 1
Client Builder • 8
Edge Server • 2
GenAI Builder • 1
Generative AI • 3
Integrated Development Environment • 2
Integration • 5
Mobile Devices • 3
Namespace • 3
Partitioning • 1
Release Info • 6
Security • 5
Server • 2
Service Builder • 6
VAIL • 19
YouTube Facebook X / Twitter LinkedIn
Privacy Policy
©2026 Vantiq, Inc. All rights reserved.