Wmts fix

Suggested fix for issue #2274
I'd prefer to see an error if I haven't specified enough labels for my zoom
levels. The chance that the provider switches from one labeling scheme to
another is minimal.

What you were thinking of may be
    defined(labels) ? defaultValue(labels[level], level) : level;

On Wed, Nov 12, 2014 at 4:06 PM, Matthew Amato <notifications@github.com>
wrote:

> In Source/Scene/WebMapTileServiceImageryProvider.js:
>
> >
> >          queryOptions = combine(defaultParameters, queryOptions);
> >
> > -        queryOptions.tilematrix = level;
> > +        labels = imageryProvider._tileMatrixLabels;
> > +        queryOptions.tilematrix = (!!labels) ? labels[level] : level;
>
> Actually, we might want queryOptions.tilematrix = defined(labels) ?
> defaultValue(labels[level] : level); so that if no specific label exists
> for a given level (but label itself exists) we still use the lable number
> for the default. @kring <https://github.com/kring> might know better if
> that's a good idea or not.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/AnalyticalGraphicsInc/cesium/pull/2275/files#r20224236>
> .
>