Skip to main content

Global Function

Maptaskr PCF Loaded

window.maptaskrReady()

Description

To allow you to get access to, and register events with the maptaskrPCF window variable, we have added code to execute the window.maptaskrReady function to let you know the map has loaded, and is ready to have events registered.

Usage

To use this function, create a function call somewhere on the page, that registers the function maptaskrReady onto the window object.

<script>

window.maptaskrReady = function() {

console.log("Maptaskr has Loaded");

console.log(window.maptaskrPCF);

//put your event registrations here
//window.maptaskrPCF.on("ShapeDrawingCompleted", ...)
    }
</script>

Once the map PCF control is loaded, and the object available, you can register your events, or call the Data Accessor functions.