0.1.4 • Published 5 years ago
@trilogicsi/address-picker v0.1.4
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 | ErrorProject setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildLints and fixes files
npm run lintCustomize configuration
Publish to npm
npm run build-lib
npm login
npm publish --access public