Skip to content

Make adding GeoJSON easier (skipping style modifications) #327

Closed

Description

@mourner

Make it dead easy to add GeoJSON data to LLMR without forcing the user to set up buckets/structure/styles etc. Maybe set up default ones for cases when GeoJSON id is not specified.

Activity

  1. added this to the milestone on Jun 24, 2014
  2. jfirebaugh commented on Nov 4, 2014

    @jfirebaugh
    Contributor

    Good use case to cover: GeoJSON under labels.

  3. jfirebaugh commented on Feb 28, 2015

    @jfirebaugh
    Contributor

    I'm pretty happy with the current gl-js API:

    map.addSource('geojson', {
    "type": "geojson",
    "data": "/debug/route.json"
    });
    map.addLayer({
    "id": "route",
    "type": "line",
    "source": "geojson",
    "paint": {
    "line-color": "#EC8D8D",
    "line-width": "@motorway_width"
    }
    }, 'country_label_1');
    .

    The last thing I think we should do here is add a placeholder layer with id labels to all the example styles that doesn't render anything but can be used to do map.addLayer({...}, "labels").

  4. mourner commented on Mar 1, 2015

    @mourner
    MemberAuthor

    Yeah, looks pretty good now.

  5. added a commit that references this issue on Oct 24, 2016
  6. added a commit that references this issue on Jan 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions