Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

3D extrusion #6745

Closed
Closed

Description

@1ec5

This issue tracks porting mapbox/mapbox-gl-js#3223, which implements the fill-extrude-height and fill-extrude-base properties and light root property added to the style specification in mapbox/mapbox-gl-style-spec#495.

This issue tracks porting mapbox/mapbox-gl-js#3487, which implements the fill-extrusion layer type added to the style specification in mapbox/mapbox-gl-style-spec#554, as well as the light root property added to the style specification in mapbox/mapbox-gl-style-spec#495.

The SDKs will also need to expose APIs for these properties. On iOS and macOS, the light root property will likely look like separate lightAnchor, lightPosition, etc. properties on MGLStyle.

Since most use cases for 3D extrusion, particularly 3D buildings (but not Unix), require the heights to vary feature by feature, this issue essentially depends on data-driven styling: #4860. Note that the scope of this issue is limited to parity with GL JS. mapbox/DEPRECATED-mapbox-gl#17, mapbox/DEPRECATED-mapbox-gl#18, and mapbox/mapbox-gl-js#1489 track some future directions for this technology.

/cc @jfirebaugh @lbud

Activity

  1. added
    GL JS parity
    Core
    MapKit parity
    Google Maps parity
    on Oct 19, 2016
  2. lbud commented on Oct 19, 2016

    @lbud
    Contributor

    🙏 thanks for opening this @1ec5.

    I wrote a branch earlier this summer (based on the original spec proposal, a separate extrusion type) to make sure I could do this, and got to the point of rendering non-data-driven extrusions just fine. It's a very stale branch, but once we have the DDS infrastructure in the works I'm excited to revive it 👹

  3. added this to the ios-v3.5.0 milestone on Nov 20, 2016
  4. matsbov commented on Nov 29, 2016

    @matsbov

    Hi! Will this include 3d-support for node-mapbox-gl-native? I've tried using it for rendering static images from a vector-map and it does not include the fill-extrusion layers.

  5. 1ec5 commented on Nov 29, 2016

    @1ec5
    ContributorAuthor

    Yes. This issue tracks implementing fill-extrusion layers, which replaced the fill-extrude-height and fill-extrude-base properties in mapbox/mapbox-gl-style-spec#554. (I’ve updated the original issue description.) fill-extrusion support will be implemented primarily in the cross-platform mbgl library. All the frontends like node-mapbox-gl-native will get that feature “for free” (other than any runtime styling–related updates that might be needed on some platforms).

  6. nitrag commented on Dec 9, 2016

    @nitrag
    Contributor

    Terrain visualization is more important to me. Hoping this will get us there. Thanks @lbud!

    Maybe MapBox Studio editor will have more control with terrain visualization in the future so we can get a map that looks like http://maps.stamen.com/terrain/#12/37.6439/-122.4346 instead of just a flat/shaded map?

  7. 1ec5 commented on Jan 19, 2017

    @1ec5
    ContributorAuthor

    Hi @jdr6, that's what this issue is about. Please see the original description up top for information on the scope of this issue and its prerequisites.

  8. 1ec5 commented on Jan 19, 2017

    @1ec5
    ContributorAuthor

    Note that Mapbox Studio provides an option for hiding options that are incompatible with certain SDKs. You may want to consider enabling that option if you need to ensure compatibility with the iOS SDK.

  9. removed this from the ios-v3.5.0 milestone on Mar 9, 2017
  10. 1ec5 commented on Mar 21, 2017

    @1ec5
    ContributorAuthor

    It's a very stale branch, but once we have the DDS infrastructure in the works I'm excited to revive it 👹

    The functionality needed for parity with GL JS is being developed in #8431, now that data-driven styling is implemented.

  11. added this to the ios-v3.6.0 milestone on Mar 21, 2017
  12. added
    Tangram parity
    on Apr 13, 2017
  13. jfirebaugh commented on Apr 27, 2017

    @jfirebaugh
    Contributor

    Support for fill extrusions was added in #8431 and will be in the iOS 3.6.0 and Android 5.1.0 releases.

  14. 1ec5 commented on Apr 27, 2017

    @1ec5
    ContributorAuthor

    We’re tracking runtime styling support for style-wide light settings in #8840 (for iOS and macOS) and #8841 (for Android).

    @brunoabinader, I’m not sure where these options would live, so please feel free to open a corresponding ticket for Qt.

  15. brunoabinader commented on May 1, 2017

    @brunoabinader
    Contributor

    @tmpsantos is providing extrusion support for Qt in #8849

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

Metadata

Metadata

Assignees

Labels

CoreGL JS parityGoogle Maps parityMapKit parityTangram parityfeature

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions