Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

styled rasters #102

Closed
incanus opened this issue Mar 19, 2014 · 3 comments
Closed

styled rasters #102

incanus opened this issue Mar 19, 2014 · 3 comments
Labels
feature GL JS parity For feature parity with Mapbox GL JS

Comments

@incanus
Copy link
Contributor

incanus commented Mar 19, 2014

Now that we have raster tiles (#70), when we get data sources (#101) we should provide for styling rasters (color tint, saturation, etc.)

@incanus
Copy link
Contributor Author

incanus commented Jul 1, 2014

Waiting on #343 now.

@lbud
Copy link
Contributor

lbud commented Aug 11, 2014

Per spec, should support

  "class_raster": {
    "raster-opacity": {
      "type": "number",
      "default": 1,
      "transition": true
    },
    "raster-hue-rotate": {
      "type": "number",
      "default": 0,
      "function": true,
      "transition": true,
      "doc": "Rotates hues around the color wheel by the specified number of degrees."
    },
    "raster-brightness": {
      "type": "array",
      "value": "number",
      "length": 2,
      "default": [
        0,
        1
      ],
      "function": true,
      "transition": true
    },
    "raster-saturation": {
      "type": "number",
      "default": 0,
      "function": true,
      "transition": true
    },
    "raster-contrast": {
      "type": "number",
      "default": 0,
      "function": true,
      "transition": true
    },
    "raster-fade": {
      "type": "number",
      "default": 0,
      "function": true,
      "transition": true,
      "doc": "Duration of the fade when a new tile is added. @TODO rename?"
    }
  }

Looks like right now we've only got opacity.

@lbud lbud added the parity label Aug 11, 2014
@lbud lbud mentioned this issue Aug 13, 2014
@lbud
Copy link
Contributor

lbud commented Aug 13, 2014

closing per #418

@lbud lbud closed this as completed Aug 13, 2014
acalcutt pushed a commit to acalcutt/mapbox-gl-native that referenced this issue Apr 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature GL JS parity For feature parity with Mapbox GL JS
Projects
None yet
Development

No branches or pull requests

2 participants