Node's Perpetuum Mobile

    vietmaps-gl-geocoder

    1.0.4 • Public • Published

    VietMap GL Geocoder Build Status

    A geocoder control for vietmaps-gl-js using the Mapbox Geocoding API. For a JavaScript geocoder without a graphical user interface see the Mapbox SDK for JS.

    Usage

    https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/

    If you are supporting older browsers, you will need a Promise polyfill. es6-promise is a good one, if you're uncertain.

    Usage with a module bundler

    This module exports a single class called MapboxGeocoder as its default export, so in browserify or webpack, you can require it like:

    var MapboxGeocoder = require('vietmaps-gl-geocoder');

    Using without a Map

    It is possible to use the plugin without it being placed as a control on a mapbox-gl map. Keep in mind that the Mapbox Terms of Service require that POI search results be shown on a Mapbox map. If you don't need POIs, you can exclude them from your search results with the options.types parameter when constructing a new Geocoder.

    Deeper dive

    API Documentation

    See API.md for complete reference.

    Examples

    Contributing

    See CONTRIBUTING.md.

    Install

    npm i vietmaps-gl-geocoder

    DownloadsWeekly Downloads

    1

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    134 kB

    Total Files

    11

    Last publish

    Collaborators

    • aic.developer