From bbea34b2d59b7e0f256cd9e9c97399970af9d433 Mon Sep 17 00:00:00 2001 From: soal Date: Sun, 17 Feb 2019 22:50:36 +0300 Subject: [PATCH] README updated --- README.md | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index b81e9e30..20fd29cc 100755 --- a/README.md +++ b/README.md @@ -9,43 +9,24 @@ First of all you need to install Mapbox GL and Vue-mapbox. [See vue-mapbox doc]( Install mabbox-gl-geocoder and vue-mapbox-geocoder: ```bash -npm i @mapbox/mapbox-gl-geocoder vue-mapbox-geocoder -``` - -Then, on plugin registration you need to add plugins option: - -```javascript -import Vue from 'vue' -import VueMapbox from 'vue-mapbox' -import Mapbox from 'mapbox-gl' -import MapboxGeocoder from '@mapbox/mapbox-gl-geocoder' - -Vue.use(VueMapbox, { - mapboxgl: Mapbox, - plugins: [{ mapboxGeocoder: MapboxGeocoder }] // Notice plugins property -}) - -new Vue({ - el: '#app', - render: h => h(require('./App')) -}) +npm i @mapbox/mapbox-gl-geocoder vue-mapbox vue-mapbox-geocoder ``` Now you can add geocoder control like other controls: ```vue