You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following properties can be passed to the `LControlHeightGraph` component:
59
+
60
+
The following properties can be passed to the `LHeightGraph` component:
61
61
62
62
### data
63
+
63
64
Takes an array of GeoJSON FeatureCollections as described
64
65
in the [Leaflet.Heigthgraph Readme](https://github.com/GIScience/Leaflet.Heightgraph/#supported-data)
65
66
by default.
66
67
67
-
Specify the `parser` property to use other Array or Object input formats.
68
+
The component will assume the data is in `geoJson` format unless you specify another supported parser via options (see [options](#options) below)
68
69
69
70
Currently supported formats for parser values:
70
-
-`'ors'`: The response of the [openrouteservice directions endpoint](https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/geojson/post)
71
-
in geojson fromat. Don't forget to set `elevation=true`.
72
71
73
-
Other relevant formats can be made available by contributing a parser.
72
+
-`ors`: The response of the [openrouteservice directions endpoint](https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/geojson/post)
73
+
in geojson format. Don't forget to set `elevation=true`.
74
+
75
+
-`geojson`: data in a `geoJson` format.
76
+
77
+
-`noParser`: the data does not need to be parsed [see expected data structure](./src/data/no-parser-example.js)
78
+
79
+
Other relevant formats can be made available by contributing a parser.
74
80
75
81
examples: see [data folder](./src/data)
76
82
77
83
default: `[]`
84
+
85
+
### width via grid/view breakpoint
86
+
87
+
This component supports specifying a dynamic width based current screen resolution and as a portion of the parent width, similar to what is used in the [vuetify](https://dev.vuetifyjs.com/en/components/grids).
88
+
So if can be defined the element width for mutiples scenarios, like: md8, lg10, xl6.
0 commit comments