0.1.0 • Published 3 years ago

@talixo/maps v0.1.0

Weekly downloads
8
License
MIT
Repository
github
Last release
3 years ago

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 nameTypeRequiredDefaultDescription
classNamestringnon/aadditional class name passed to wrapper
apiKeystringyesn/ayour Api Key from GoogleMaps
zoomnumberno6zoom
centerLocationnon/acentered position
interactivebooleannotrueenable to move and zoom map

Directions

Property nameTypeRequiredDefaultDescription
startPointLocationyesn/astart point of directions
endPointLocationyesn/aend point of directions
viaLocationLocation[]non/aeither single waypoint or list of waypoints
onLoadfunctionnon/ahandler after successfully loaded directions
onErrorfunctionnon/ahandler after error while loading new directions

Marker

Property nameTypeRequiredDefaultDescription
positionLocationyesn/astart point of directions
infonodesnon/ainfo window content
openbooleannois controlledshould the info window be opened?
onClickfunctionnon/ahandler on click on marker
onClosefunctionnon/ahandler on click on close button in info window

Property shapes

Location

Property nameTypeRequiredDefaultDescription
latnumberyesn/ageo-point latitude
lngnumberyesn/ageo-point longitude

Changelog

  • 0.1.0 - initial version
1.0.0-alpha.35

3 years ago

1.0.0-alpha.31

3 years ago

1.0.0-alpha.30

3 years ago

1.0.0-alpha.27

3 years ago

1.0.0-alpha.24

3 years ago

1.0.0-alpha.20

4 years ago

1.0.0-alpha.19

4 years ago

1.0.0-alpha.16

4 years ago

1.0.0-alpha.15

4 years ago

1.0.0-alpha.14

4 years ago

1.0.0-alpha.13

4 years ago

1.0.0-alpha.12

4 years ago

1.0.0-alpha.7

4 years ago

1.0.0-alpha.6

4 years ago

1.0.0-alpha.5

4 years ago

1.0.0-alpha.4

4 years ago

1.0.0-alpha.2

4 years ago

0.1.0

4 years ago