Skip to main content

Introduction

This guide is aimed at experienced Dynamics 365 consultants and shows how to tweak the Custom.js file to listen to zoom level changes to enable/disable certain layers that could be taxing to device performance. It is assumed that readers have a knowledge of JavaScript and experience configuring Maptaskr. This guide should be read in conjunction with the Custom.JS guide which provides detailed step-by-step instructions on how to integrate Custom.JS with Maptaskr.

Maptaskr will respect max/min scale settings of ArcGIS layers but doesn't automatically prevent users from switching layers on outside of their visible range. Additionally, you may not have direct control over the layers due to corporate restrictions and find that some layers will cause a significant performance impact at higher zoom levels (further away) due to the number of features that need to be loaded at once.

This guide demonstrates a method of limiting access to layers based on zoom level with a very small code footprint.

warning

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.