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.

add support for multipolygons and polygon interior holes #1729

Closed

Description

@incanus

Punted from #1655. Will need to be exposed in MGLPolygon as well on iOS.

Activity

  1. changed the title [-]add support for polygon interior holes[/-] [+]add support for multipolygons and polygon interior holes[/+] on Dec 15, 2015
  2. added
    iOS
    Android
    on Dec 15, 2015
  3. jfirebaugh commented on Dec 15, 2015

    @jfirebaugh
    Contributor

    GeoJSON sources support the full range of GeoJSON geometries. However if we want to continue expanding the annotations API, we could support this there too.

  4. Zakay commented on Dec 15, 2015

    @Zakay

    +1 really need this!

  5. TYRONEMICHAEL commented on Jan 22, 2016

    @TYRONEMICHAEL

    +1

  6. maciekish commented on Feb 10, 2016

    @maciekish
    Contributor

    +1

  7. dariav commented on Feb 10, 2016

    @dariav

    +1

  8. MaximAlien commented on Feb 26, 2016

    @MaximAlien

    +1

  9. aemchuk commented on Feb 26, 2016

    @aemchuk

    +1 Will be very useful

  10. caHarkness commented on Apr 29, 2016

    @caHarkness

    We have switched from Google Maps to Mapbox (on Android) for the rendering speed of polygons, but this feature is essential. We absolutely need holes!

  11. nealsanche commented on May 9, 2016

    @nealsanche

    +1 I am currently working with a mapping app with very complex polygons with holes that Google Maps API is stumbling on quite profoundly. I'd dearly love to replace it with MapBox and then found out that holes are not currently supported. If I have to, I'd work to contribute a PR to the project so that this could be supported. Would you please contact me, so that I might be about to assess the work that might be involved in making that happen?

  12. 1ec5 commented on May 27, 2016

    @1ec5
    Contributor

    #5110 adds support for holes in polygons to the iOS and OS X SDKs. Note that, unlike in MapKit, a MGLPolygon cannot be nested more than one level deep; a concentric polygon, as it were, would be represented by an MGLMultiPolygon, which currently cannot be added to the map as a single annotation. True multipolygon support will have to wait for #5158.

  13. 22 remaining items

  14. modified the milestones: , android-v4.2.0 on Sep 19, 2016
  15. incanus commented on Oct 4, 2016

    @incanus
    ContributorAuthor

    Just to clarify, we have interior hole support in iOS as of de905ab.

  16. cvance commented on Dec 13, 2016

    @cvance

    will this be fixed in 4.2.0?

  17. 1ec5 commented on Dec 13, 2016

    @1ec5
    Contributor

    No, this feature is now scheduled for v5.0.0, apparently with the expectation that adding support for multipolygons would be a breaking change.

    Technically, polygon hole support could be added beforehand in v4.x (if there is another release between v4.2.0 and v5.0.0) without breaking backwards compatibility. getHoles() and setHoles() methods would be added to com.mapbox.mapboxsdk.annotations.Polygon, for compatibility with com.google.maps.model.Polygon. The underlying core support is already in place; it’s mostly a matter of plumbing through JNI.

  18. removed this from the android-v5.0.0 milestone on Mar 6, 2017
  19. paulVulog commented on Mar 22, 2017

    @paulVulog

    @zugaldia Any update on it ? I was waiting for v5.0.0 to fixit but looks like it is no more the case...

  20. 1ec5 commented on Mar 22, 2017

    @1ec5
    Contributor

    #7397 is the latest attempt, but someone more familiar with Android than I will need to adopt it.

  21. added this to the milestone on Mar 23, 2017
  22. modified the milestones: android-v5.1.0, on Apr 4, 2017
  23. 1ec5 commented on Apr 11, 2017

    @1ec5
    Contributor

    Fixed on Android in #8557.

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

Metadata

Metadata

Labels

Androidannotationsfeature

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions