File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 11# v-mapbox-geocoder 🌎
22
3- [](https://github.com/geospoc/v-mapbox-geocoder/packages) [](https://github.com/geospoc/v-mapbox-geocoder/actions?query=workflow%3A%22Ship+js+trigger%22) [](https://github.com/geospoc/v-mapbox-geocoder/releases) [](https://github.com/algolia/shipjs) [](https://david-dm.org/geospoc/v-mapbox-geocoder?type=peer) [](http://david-dm.org/geospoc/v-mapbox-geocoder?type=dev) [](https://github.com/geospoc/v-mapbox-geocoder) [](https://github.com/geospoc/v-mapbox-geocoder/master)  [](https://github.com/geospoc/v-mapbox-geocoder/graphs/contributors) [](https://deepscan.io/dashboard#view=project&tid=9381&pid=11871&bid=177149)
3+ [](https://github.com/geospoc/v-mapbox-geocoder/packages) [](https://github.com/geospoc/v-mapbox-geocoder/actions?query=workflow%3A%22Ship+js+trigger%22) [](https://github.com/geospoc/v-mapbox-geocoder/releases) [](https://github.com/algolia/shipjs) [](https://david-dm.org/geospoc/v-mapbox-geocoder?type=peer) [](http://david-dm.org/geospoc/v-mapbox-geocoder?type=dev) [](https://github.com/geospoc/v-mapbox-geocoder) [](https://github.com/geospoc/v-mapbox-geocoder/master)  [](https://github.com/geospoc/v-mapbox-geocoder/graphs/contributors) [](https://deepscan.io/dashboard#view=project&tid=9381&pid=11871&bid=177149)
44
55[ v-mapbox] ( https://github.com/vinayakkulkarni/v-mapbox ) plugin for [ mapbox-gl-geocoder] ( https://github.com/mapbox/mapbox-gl-geocoder ) support.
66
7- ## Usage
7+ ## Setup
8+
9+
10+ First of all you need to install ` mapbox-gl-geocoder ` and ` v-mapbox ` . [ See v-mapbox doc] ( https://v-mapbox.netlify.app )
811
9- First of all you need to install Mapbox GL and v-mapbox. [ See v-mapbox doc] ( https://v-mapbox.netlify.app )
12+ > _ Generate a [ Personal Access Token] ( https://github.com/settings/tokens/new ) with ` read:packages ` scope_
13+
14+ ``` bash
15+ # Skip if you're logged in, else login to GPR using above generated PAT
16+ $ npm login --registry=https://npm.pkg.github.com --scope=@geospoc
1017
11- ``` bash
1218# Install mapbox-gl-geocoder v-mapbox and v-mapbox-geocoder:
13- $ npm i @mapbox/mapbox-gl-geocoder v-mapbox @geospoc/v-mapbox-geocoder
19+ $ npm install @mapbox/mapbox-gl-geocoder v-mapbox @geospoc/v-mapbox-geocoder --save
1420```
1521
16- Now you can add geocoder control like other controls:
22+ ## Usage
1723
1824``` html
1925<template >
You can’t perform that action at this time.
0 commit comments