Skip to content

Add more detail to Usage section in README #199

Open

Description

@katydecorah

We should build out the usage section in the README to better explain how to use gl-geocoder

https://github.com/mapbox/mapbox-gl-geocoder#usage

Ideas:

  • Include brief sentence on how to implement.
  • Link to gl-js examples to highlight different features and implementation options.

Activity

  1. added this to the v4.0.0 milestone on Mar 13, 2019
  2. andrewharvey commented on Mar 14, 2019

    @andrewharvey
    Collaborator

    Link to gl-js examples to highlight different features and implementation options.

    There's a bunch of examples we link to already, am I missing something?

    Screenshot from 2019-03-14 13-11-19

  3. scottsfarley93 commented on Mar 22, 2019

    @scottsfarley93

    What about one quick example pulling out how to construct the plugin? Basically something like:

    var geocoder = new MapboxGeocoder({
      accessToken: mapboxgl.accessToken,
      ... more options here? ...
    });
    
    map.addControl(geocoder);
    

    We have a good set of examples, but perhaps one here in this repo's readme would be helpful in getting people started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions