Introduction
This guide is aimed at experienced Dynamics 365 consultants and shows how to extend the core functionality of Maptaskr for Dynamics 365 to allow internal users to perform predefined custom actions when interacting with layers. It is assumed that readers have a knowledge of JavaScript, experience configuring Maptaskr and have access to layers and permission to expose them to a public website.
Please do your due dilligence when selecting an appropriate layer. Even publically available datasets may have licensing and/or usage restrictions.
By default, Maptaskr for Dynamics 365 does not support executing actions directly from the attribute popup displayed when a layer feature is selected. This tutorial demonstrates how to configure Custom.JS to add a custom button to the attribute popup. When a feature is selected, the popup will appear with the custom button, which can be programmed to execute predefined actions and reference attribute data. With this feature, you can implement your own custom actions seamlessly.
Please note that this tutorial has been written to suit the functionality and capability of Maptaskr v2.2.2.58 and above.
If you are using an older version of Maptaskr, then this guide will not be applicable and you will be required to upgrade to the latest version.