Error: Microsoft JScript runtime error: 'null' is null or not an object
"Microsoft JScript runtime error: 'null' is null or not an object".
This error is returned if the layer for which the MapTips content has been customized is not displayed on page load.
Causes could be that the layer for which the maptips were customized has been unchecked; or scale dependencies may be set, which is causing the layer to not be displayed on page load.
Solution or Workaround
There is one difference in the Properties of the MapTips control in the ‘Common_Maptips’ sample and a default Web mapping application. The ‘ShowOnlyWhenLayerIsVisible’ property is set to True by default, but in the sample it has been set to False.
- Set this property to False in the custom application. Even when the layer is unchecked or the scale dependencies are set, the Web application will work fine without any errors.