You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
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
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.
+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?
#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.
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.
Activity
[-]add support for polygon interior holes[/-][+]add support for multipolygons and polygon interior holes[/+]jfirebaugh commentedon Dec 15, 2015
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.
Zakay commentedon Dec 15, 2015
+1 really need this!
TYRONEMICHAEL commentedon Jan 22, 2016
+1
maciekish commentedon Feb 10, 2016
+1
dariav commentedon Feb 10, 2016
+1
MaximAlien commentedon Feb 26, 2016
+1
aemchuk commentedon Feb 26, 2016
+1 Will be very useful
caHarkness commentedon Apr 29, 2016
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!
nealsanche commentedon May 9, 2016
+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?
1ec5 commentedon May 27, 2016
#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.
22 remaining items
incanus commentedon Oct 4, 2016
Just to clarify, we have interior hole support in iOS as of de905ab.
cvance commentedon Dec 13, 2016
will this be fixed in 4.2.0?
1ec5 commentedon Dec 13, 2016
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()andsetHoles()methods would be added tocom.mapbox.mapboxsdk.annotations.Polygon, for compatibility withcom.google.maps.model.Polygon. The underlying core support is already in place; it’s mostly a matter of plumbing through JNI.paulVulog commentedon Mar 22, 2017
@zugaldia Any update on it ? I was waiting for v5.0.0 to fixit but looks like it is no more the case...
1ec5 commentedon Mar 22, 2017
#7397 is the latest attempt, but someone more familiar with Android than I will need to adopt it.
1ec5 commentedon Apr 11, 2017
Fixed on Android in #8557.