-
Notifications
You must be signed in to change notification settings - Fork 1.3k
add support for multipolygons and polygon interior holes #1729
Comments
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 really need this! |
+1 |
+1 |
2 similar comments
+1 |
+1 |
+1 Will be very useful |
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! |
+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. |
MGLPolygon (and by extension MGLMultiPolygon) now supports interior rings. The data is preserved in feature querying results, and interior rings are respected when adding polygon overlays to the map. Fixes #1729. [ios, osx] Updated changelog
Last night I was able to render a polygon with holes on Android. Added the On Fri, May 27, 2016, 1:35 AM Minh Nguyễn [email protected] wrote:
Robots and Pencils Inc | 1507 14th Ave SW Calgary AB T3C 0W4 |
That's great, @nealsanche! Would you mind posting a pull request so we can consider your changes? |
Absolutely. I will do that this morning. On Fri, May 27, 2016, 9:35 AM Minh Nguyễn [email protected] wrote:
Robots and Pencils Inc | 1507 14th Ave SW Calgary AB T3C 0W4 |
Okay, I've added a PR: #5170 |
Anyway, I'm sure after seeing that PR you'll want to re-implement it. But it gets me past the hurdle I was working though. |
#5110 has been merged and is expected to be in iOS SDK v3.3.0-beta.1 and the next OS X SDK release. Leaving this issue open for Android. |
Polygons, multipolygons, and multiline strings are supported by the core API as of #5200. |
|
Just to clarify, we have interior hole support in iOS as of de905ab. |
will this be fixed in 4.2.0? |
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. |
@zugaldia Any update on it ? I was waiting for v5.0.0 to fixit but looks like it is no more the case... |
#7397 is the latest attempt, but someone more familiar with Android than I will need to adopt it. |
Fixed on Android in #8557. |
Punted from #1655. Will need to be exposed in
MGLPolygon
as well on iOS.The text was updated successfully, but these errors were encountered: