0.1.4 • Published 3 years ago

@trilogicsi/address-picker v0.1.4

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Address picker

Example

<AddressPicker
  :here-api-url="hereApiUrl"
  :here-api-key="hereApiKey"
  :original-place="place"
  :marker-threshold="markerThreshold"
  :marker-icon-options="markerIcon"
  :override-style="newStyle"
  @cancel="modalOpen = false"
  @confirm="setPlace"
  @error="handleError"
/>

Props

hereApiUrl!: string
hereApiKey!: string
originalPlace?: Place
markerThreshold?: number = 200 (disabled if 0)
markerIconOptions?: L.IconOptions
overrideStyle?: {
  borderRadius?: number
  baseColor?: string
  errorColor?: string
  successColor?: string
  backgroundColor?: string
  inputBackground?: string
  fontColor?: string
  borderColor?: string
  buttonClass?: string
  buttonDangerClass?: string
  buttonSuccessClass?: string
  inputClass?: string
};

Events

cancel: void
confirm: Place
error: string | Error

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Publish to npm

  npm run build-lib
  npm login
  npm publish --access public