Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling tilesets without features #352

Merged
merged 1 commit into from
Nov 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions specification/Styling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

3D Tiles styles provide concise declarative styling of tileset features. A style defines expressions to evaluate the display of a feature, for example `color` (RGB and translucency) and `show` properties, often based on the feature's properties stored in the tile's [Batch Table](../TileFormats/BatchTable/README.md).

A style may be applied to a tile that doesn't contain features, in which case the tile is treated as an implicit single feature without properties.

While a style may be created for and reference properties of a tileset, a style is independent of a tileset, such that any style can be applied to any tileset.

Styles are defined with JSON and expressions written in a small subset of JavaScript augmented for styling. Additionally, the styling language provides a set of built-in functions to support common math operations.
Expand Down Expand Up @@ -1260,13 +1262,13 @@ For example:
> * Evaluation of `isNan` and `isFinite` (GLSL 2.0+ supports `isnan` and `isinf` for these functions respectively)
> * The types `null` and `undefined`
> * Strings, including accessing object properties (`color()['r']`) and batch table values
> * Regular expressions
> * Regular expressions
> * Arrays of lengths other than 2, 3, or 4
> * Mismatched type comparisons (e.g. `1.0 === false`)
> * Array index out of bounds

## File extension and MIME type

Tileset styles use the `.json` extension and the `application/json` mime type.

## Property reference
Expand Down