The dotAtlas JavaScript API cookbook contains short complete examples demonstrating one specific functionality of dotAtlas.
All the example code is licensed under Apache Software License 2.0, feel free to adjust and copy to your code base as needed.
Note: All the examples use ES6 features, including modules. Therefore, they will run only in modern browsers, such as the latest versions of Firefox, Chrome or Edge.
dotAtlas comes transpiled to ES5, so it will work in older browsers, such as IE11.
Displaying your first dotAtlas map with just a few lines of JavaScript:
Customizing the properties of markers on your map, including color, shape, size and opacity.
Controlling color and opacity of labels, setting label display priorities so that the most important labels show at lower zoom levels.
Controlling properties of different dotAtlas layers, including:
Detecting and drawing hover and selection highlights:
Zooming to reveal the location of specific markers or labels on the map.
Changing colors, sizes, opacities and elevations of existing markers without reloading the whole data set.
Adding a color band legend to the map, reading elevation values at specific coordinates of the map.
Converting Lingo4G analysis result containing document embedding and document clusters to a dotAtlas map, where each marker represents one document.