How to use the @mapbox/mapbox-gl-style-spec.latest.source_raster_dem function in @mapbox/mapbox-gl-style-spec

To help you get started, we’ve selected a few @mapbox/mapbox-gl-style-spec examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github maputnik / editor / src / components / sources / SourceTypeEditor.jsx View on Github external
case 'geojson_url': return 
      case 'geojson_json': return 
      case 'tilejson_vector': return 
      case 'tilexyz_vector': return 
      case 'tilejson_raster': return 
      case 'tilexyz_raster': return 
      case 'tilejson_raster-dem': return 
      case 'tilexyz_raster-dem': return 
        
           this.props.onChange({
              ...this.props.source,
              encoding: encoding
            })}
            value={this.props.source.encoding || latest.source_raster_dem.encoding.default}
          />
        
      
      default: return null
    }
  }
}
github maputnik / editor / src / components / sources / SourceTypeEditor.jsx View on Github external
render() {
    const commonProps = {
      source: this.props.source,
      onChange: this.props.onChange,
    }
    switch(this.props.mode) {
      case 'geojson_url': return 
      case 'geojson_json': return 
      case 'tilejson_vector': return 
      case 'tilexyz_vector': return 
      case 'tilejson_raster': return 
      case 'tilexyz_raster': return 
      case 'tilejson_raster-dem': return 
      case 'tilexyz_raster-dem': return 
        
           this.props.onChange({
              ...this.props.source,
              encoding: encoding
            })}
            value={this.props.source.encoding || latest.source_raster_dem.encoding.default}
          />
        
      
      default: return null
    }
  }
}