Data Accessor Functions
These functions are accessible through the window['maptaskrPCF']
object and can be used to interact with the map application. They provide various capabilities for retrieving data, handling events, and more.
List of available functions
Get Drawn Shapes
Description
The getDrawnShapes
function allows you to retrieve a collection of shapes that were drawn and currently displayed on the map.
Usage
var drawnShapes = window['maptaskrPCF'].getDrawnShapes();
console.log('drawnShapes', drawnShapes);
Returns
The array of drawn shapes currently displayed on the map.
Get Uploaded Shapes
Description
The getUploadedShapes
function allows you to retrieve a collection of shapes that were uploaded and currently displayed on the map.