How to use the @mapbox/mapbox-gl-style-spec.latest.source_vector 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
render() {
    return <div>
      
         this.props.onChange({
            ...this.props.source,
            url: url
          })}
        /&gt;
      
      {this.props.children}
    </div>
  }
}
github maputnik / editor / src / components / sources / SourceTypeEditor.jsx View on Github external
return tiles.map((tileUrl, tileIndex) =&gt; {
      return 
        
      
    })
  }
github maputnik / editor / src / components / sources / SourceTypeEditor.jsx View on Github external
render() {
    return <div>
      {this.renderTileUrls()}
      
         this.props.onChange({
            ...this.props.source,
            minzoom: minzoom
          })}
        /&gt;
      
      
         this.props.onChange({
            ...this.props.source,
            maxzoom: maxzoom
          })}
        /&gt;
      
      {this.props.children}
  </div>

  }
}
github maputnik / editor / src / components / modals / SourcesModal.jsx View on Github external
render() {
    return <div>
      
         this.setState({ sourceId: v})}
        /&gt;
      
      
         this.setState({mode: mode, source: this.defaultSource(mode)})}
          value={this.state.mode}
        /&gt;
      
      </div>