0.1.0 • Published 5 years ago
@talixo/maps v0.1.0
Talixo map
UI Component which represents map
How to install
Package is available as @talixo/map
in NPM registry, so you can use it in your project
using npm install @talixo/map --save
or yarn add @talixo/map
.
Requirements
Your package should additionally have some extra dependencies:
@talixo/shared: ^0.1.0
lodash: ^4.17.10
prop-types: ^15.6.1
react: ^16.2.0
react-google-maps: 9.4.5
recompose: 0.26.0
These packages are required by @talixo/map
, but you have to install them manually,
to avoid having different versions of these in your application.
Supported props
Maps
Property name | Type | Required | Default | Description |
---|---|---|---|---|
className | string | no | n/a | additional class name passed to wrapper |
apiKey | string | yes | n/a | your Api Key from GoogleMaps |
zoom | number | no | 6 | zoom |
center | Location | no | n/a | centered position |
interactive | boolean | no | true | enable to move and zoom map |
Directions
Property name | Type | Required | Default | Description | |
---|---|---|---|---|---|
startPoint | Location | yes | n/a | start point of directions | |
endPoint | Location | yes | n/a | end point of directions | |
via | Location | Location[] | no | n/a | either single waypoint or list of waypoints |
onLoad | function | no | n/a | handler after successfully loaded directions | |
onError | function | no | n/a | handler after error while loading new directions |
Marker
Property name | Type | Required | Default | Description |
---|---|---|---|---|
position | Location | yes | n/a | start point of directions |
info | nodes | no | n/a | info window content |
open | boolean | no | is controlled | should the info window be opened? |
onClick | function | no | n/a | handler on click on marker |
onClose | function | no | n/a | handler on click on close button in info window |
Property shapes
Location
Property name | Type | Required | Default | Description |
---|---|---|---|---|
lat | number | yes | n/a | geo-point latitude |
lng | number | yes | n/a | geo-point longitude |
Changelog
- 0.1.0 - initial version
1.0.0-alpha.35
5 years ago
1.0.0-alpha.31
6 years ago
1.0.0-alpha.30
6 years ago
1.0.0-alpha.27
6 years ago
1.0.0-alpha.24
6 years ago
1.0.0-alpha.20
6 years ago
1.0.0-alpha.19
6 years ago
1.0.0-alpha.16
6 years ago
1.0.0-alpha.15
6 years ago
1.0.0-alpha.14
6 years ago
1.0.0-alpha.13
6 years ago
1.0.0-alpha.12
6 years ago
1.0.0-alpha.7
6 years ago
1.0.0-alpha.6
6 years ago
1.0.0-alpha.5
6 years ago
1.0.0-alpha.4
6 years ago
1.0.0-alpha.2
6 years ago
0.1.0
6 years ago