Skip to content

Add new choroplethmapbox locationmode for geojson properties.id #4154

Closed

Description

@cpsievert

It seems like choroplethmapbox traces support MultiPolygons geometry types, but this example fails without error/warning:

https://codepen.io/cpsievert/pen/KKPqgje

Perhaps I am missing something?

Activity

  1. cpsievert commented on Aug 29, 2019

    @cpsievert
    Author

    Interestingly, this same geojson file works as a layout.mapbox.layers -- https://codepen.io/cpsievert/pen/NWKgpzg

  2. etpinard commented on Aug 29, 2019

    @etpinard
    Contributor

    Looks like that geojson

    https://gist.githubusercontent.com/cpsievert/66a06baaed96aa47e21ac02fd1d57efb/raw/8ee5ef67ac363910056f0c2aec896381c67a4d64/huh.json

    doesn't set any feature id fields. It does set properties.id, but we unfortunately don't support extracting data for properties.id yet. It would be a nice addition to the library though.

  3. changed the title [-]choroplethmapbox with MultiPolygons[/-] [+]choroplethmapbox doesn't render without feature id fields[/+] on Aug 29, 2019
  4. cpsievert commented on Aug 29, 2019

    @cpsievert
    Author

    Ahh, thanks for catching that!

  5. etpinard commented on Aug 29, 2019

    @etpinard
    Contributor

    No problem @cpsievert - ok if I turned this into a type: feature ticket?

  6. cpsievert commented on Aug 29, 2019

    @cpsievert
    Author

    👍

  7. changed the title [-]choroplethmapbox doesn't render without feature id fields[/-] [+]Add new choroplethmapbox locationmode for geojson `properties.id`[/+] on Aug 29, 2019
  8. added this to the v1.52.0 milestone on Nov 29, 2019
  9. self-assigned this
    on Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions