Harmoware-VIS Documents
  • Introduction
  • Using
    • Mapbox Accesstoken Setting
    • User Application Examples
  • API
    • State
    • Actions
    • getCombinedReducer
    • Container
    • connectToHarmowareVis
    • HarmoVisLayers
  • Layers
    • Base Layer properties.
    • MovesLayer
    • DepotsLayer
    • LineMapLayer
  • Control component
    • MovesInput
    • DepotsInput
    • LinemapInput
    • LoadingIcon
    • AddMinutesButton
    • ElapsedTimeRange
    • ElapsedTimeValue
    • PauseButton
    • PlayButton
    • ForwardButton
    • ReverseButton
    • NavigationButton
    • SimulationDateTime
    • SpeedRange
    • SpeedValue
    • FpsDisplay
  • css
Powered by GitBook
On this page

Was this helpful?

  1. API

HarmoVisLayers

PreviousconnectToHarmowareVisNextLayers

Last updated 3 years ago

Was this helpful?

Display the layer that inherits the class of on the map obtained from mapbox.

Examples

<HarmoVisLayers
  viewport={this.props.viewport} actions={this.props.actions}
  mapboxApiAccessToken={MAPBOX_TOKEN}
  layers={ [ ... ] }
  mapGlComponents={ this.getComponentsDom(this.props.movedData) } // Example
/>

Properties

Properties

PropTypes

Default

Description

visible

Boolean option

true

Whether the map is visible.

actions

object required

--

state actions

viewport

object required

--

state viewport

mapboxApiAccessToken

string required

--

The access token of mapbox.com

mapStyle

string option

'mapbox://styles/mapbox/dark-v8'

A map style URL of mapbox.com

layers

array required

--

Array of Layer instance (※)

onViewportChange

func option

this.props.actions.setViewport

Actions setViewport

mapGlComponents

any

null

"react-map-gl" control DOM

mapboxAddLayerValue

mapboxgl.Layer[] option

Display buildings in 3D Value

mapboxAddSourceValue

object {id:string, source:object}[] option

--

terrain

Boolean option

false

Show terrain.

terrainSource

object { id:string,

source:object} option

{ id:'mapbox-dem', source:{ 'type': 'raster-dem',

'url': 'mapbox://mapbox.mapbox-terrain-dem-v1',}}

setTerrain

object { source:string,

exaggeration?:number} option

{source:'mapbox-dem'}

Check the for details.

Check the for details.

Check the for details.

※ The HarmoVisLayers is a component that render the layers that inherits the class of .

Layer
deck.gl
Layer
deck.gl
Display buildings in 3D
reference
reference
reference