Skip to content

Conversation

@prasar-ashutosh
Copy link

Mapbox Polygon support

This pull request is an attempt to implement the feature: #2675

Background
We are using superset with Druid in our project at Dataspark, Singtel, Singapore. We needed Mapbox with Polygon support in our project. So we have attempted to solve this problem using react-map-gl , deck.gl and d3. The new visualization is called "Mapbox with Polygon".

Usage

  • Create a new slice
  • Select the datasource as : "birth_france_by_region"
  • Select the visualization type : Mapbox with Polygon and click on "create a new Slice"
    screen shot 2018-01-30 at 5 52 30 pm
  • In the Query section , select the DEPT_ID under "Codes of region/province/department" and select a metric.
  • Click on Query. Zoom in/out to adjust if needed. hover around the map to see the details.

screen shot 2018-01-30 at 6 10 01 pm

Features
The visualisation supports the following filters/selectors

  1. Time
    screen shot 2018-01-30 at 6 00 16 pm

  2. Query
    screen shot 2018-01-30 at 6 01 07 pm

  3. Options

    • GeoJosn : select the geojson layer
    • RGB color sheme : select the Color scheme
    • Map Style : Select the map style
    screen shot 2018-01-30 at 6 03 02 pm
  4. Viewport
    screen shot 2018-01-30 at 6 05 50 pm

  5. SQL
    screen shot 2018-01-30 at 6 12 21 pm

  6. Filters
    screen shot 2018-01-30 at 6 12 50 pm

Feature implementation for Mapbox with Polygon
#2675
@mistercrunch
Copy link
Member

We already have support for DeckGL polygons here:
superset/assets/visualizations/deckgl/layers/polygon.jsx

Also many other layer types and multi-layers charts! We haven't released it yet, coming in the next release.

@mistercrunch
Copy link
Member

Thanks for the PR regardless, looking forward to future collaborations.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants