Tutorial

Set user interaction

Mapapps
In this tutorial the user interaction can be set / unset.
The user cant move drag or turn the map, if the interaction is disabled.
User interaction state:
To use the function as seen above, use the following code.


    // send request
    const integrationElement = document.getElementById('mapIntegrationElement').contentWindow
    if(integrationElement){
        integrationElement.postMessage({functionName: functionName, detail: detail}, "*")
    }

    // disable user interaction
    postEvent("setUserInteraction", {userInteraction: false});

    // enable user interaction
    postEvent("setUserInteraction", {userInteraction: true});