refs # 8348

Added functionality for querying all service instances for particular values. Also added tile service instance independent request services for pulling tile data without it being stored and managed by a particular instance.
No, correct input to parse will either be:

    'attribute', 'arrayAttribute[]', or 'specificIndexArrayAttribute[3]'.

Which when split using the regex with be arrays:

    [ 'attribute' ], [  'arrayAttribute', '', '' ], and [
'specificIndexArrayAttribute', '3', '' ].

If something splits to any length other than 1 or 3, the input is
incorrect, so it just returns an empty results array.

On Thu, Oct 9, 2014 at 10:10 AM, Chris Bethune <notifications@github.com>
wrote:

> In tile-client/src/main/webapp/js/layer/client/TileService.js:
>
> > +    tileQueryParser = function( obj, path ) {
> > +        var i, parse, results = [];
> > +        // base case, no more parsing, return value
> > +        if ( path.length === 0 ) {
> > +            return [ obj ];
> > +        }
> > +        // pop next sub path and parse it
> > +        parse = path.shift().split(/[\[\]]/);
> > +        // determine type of path
> > +        switch ( parse.length ) {
> > +            case 1:
> > +
> > +                // search object
> > +                results = tileQueryParser( obj[ parse[0] ], path.slice(0) );
> > +                break;
> > +            case 3:
>
> No case of length 2 needed here?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/oculusinfo/aperture-tiles/pull/29/files#r18646969>.
>