This tutorial demonstrates how to initialize a Vexcel map without any pre-loaded layers, giving you complete control over which imagery layers are displayed. This approach allows you to create a clean starting point and selectively enable only the specific layers your application needs.
You'll learn how to:
- Initialize a map with empty layer configurations
- Configure the initialConfig property to disable default layers
- Programmatically enable specific imagery layers on demand
- Create user interface controls for toggling layer visibility
Layer control is essential for applications that require fine-grained management of map content, optimized performance, or customized visualization. By starting with no layers and selectively enabling only what's needed, you can create more efficient maps, reduce initial load times, and provide users with a cleaner, more focused experience tailored to specific use cases.
index.html
main.js