WMTSLayer bug

Discussion created by bennetjo on Jun 8, 2015
Latest reply on Jul 29, 2016 by rscheitlin

A bug in the WMTSLayer constructor prevents any instances of this class from being created.  In the constructor, the call to _parseResourceInfo occurs before the _formatDictionary property is instantiated.  However, the call to _parseResourceInfo includes a read of the _formatDictionary property, which, being undefined at the time, results in an unhandled exception.


Noticed in version 3.13.


If you have a locally hosted copy of the API, you can fix this yourself by moving the instantiation of _formatDictionary higher up in the constructor.