JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q44951F
  • License MIT

Package Exports

  • nelo-mapbox-geocoder

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nelo-mapbox-geocoder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

nelo-mapbox-geocoder

nelo-mapbox-geocoder is a VueJS component for mapbox-gl-geocoder support.

Installation

Use the package manager npm to install nelo-mapbox-geocoder.

npm i nelo-mapbox-geocoder

Usage

<template>
  <div id="app">
    <nelo-mapbox-geocoder
            accessToken="YOUR_ACCESS_TOKEN"
            language="it"
            types="address,country"
            countries="it"
            :callback="getResults"
            defaultLocation="Search..."
    />
  </div>
</template>
<script>

  import Vue from 'vue';
  import NeloMapboxGeocoder from 'nelo-mapbox-geocoder.vue';

  export default Vue.extend({
    name: 'ServeDev',
    components: {
      NeloMapboxGeocoder
    },
    methods:{
      getResults(e){
        console.log(e);
      }
    }
  });
</script>