1.0.0 • Published 5 years ago

vuetify-location-picker v1.0.0

Weekly downloads
12
License
-
Repository
github
Last release
5 years ago

Vuetify Location Picker

Location Picker for Vuetify JS, using Mapbox API.

Online Demo

Demo Source Code

npm page

Installation

npm install --save vuetify-location-picker mapbox-gl
import Vue from 'vue'
import LocationPicker from 'vuetify-location-picker'

Vue.use(LocationPicker)

Usage

In your template section:

<LocationPicker v-model="location" :apiKey="apiKey" />

Properties

NameTypeDefault ValueDescription
location (model)Array[]longitude, latitude
apiKey (required)StringMapbox API Key
geoBooleantrueWhether or not to display button for using browser's geolocation API
heightString'500px'Height of map container.
initialLocationArray-0.496934, 51.437032Center of map on first load.
colorString'orange'Color of map markers. Can pass any CSS color type
mapStylestring'mapbox://styles/mapbox/outdoors-v11'Mapbox style to use.
containerIDstring'map'ID of div that will contain the map.

Dependencies

"mapbox-gl": "^1.12.0",

"vue": "^2.6.11",

"vuetify": "^2.3.14"

1.0.0

5 years ago

0.1.0

5 years ago