summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLMultiPoint.mm
Commit message (Collapse)AuthorAgeFilesLines
* [core] GCC 4.9 is unable to deduce ctors when using bracket initBruno de Oliveira Abinader2017-07-121-1/+1
|
* [ios, macos] Fail gracefully on invalid coordinatesMinh Nguyễn2017-04-061-0/+4
| | | | Invalid coordinates no longer cause an exception to be raised immediately when used in conversion methods and model objects. Instead, the appropriate invalid values are used, consistent with MapKit. Exceptions are still raised when invalid model objects are used with the map.
* [darwin] Use MGLLatLngFromLocationCoordinate2D where appropriateJohn Firebaugh2017-04-061-1/+1
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-5/+5
|
* [ios, macos] features and annotations now conforms to NSSecureCodingFredrik Karlsson2016-12-221-3/+35
|
* [ios, macos] More ways to reshape an MGLMultiPoint (#7251)Minh Nguyễn2016-12-061-33/+64
| | | | | | | | | | | | | | | | | | * [ios, macos] Completed API for mutating multipoints Added the complete set of methods for mutating the vertices of an MGLMultiPoint. Also rewrote MGLMultiPoint documentation to refer to vertices instead of points. * [ios, macos] Removed inaccurate MGLOverlay commentary This paragraph is full of references to features that exist in MKOverlay but not MGLOverlay. * [ios, macos] Lazily compute multipoint bounds Invalidate the bounds whenever the coordinates change, but don’t recompute the bounds until they’re requested. Simplified -intersectsOverlayBounds: for immutable overlay classes. Added a utility function for testing whether two MGLCoordinateBounds intersect, based on mbgl::LatLngBounds::intersects(). Removed unused color conversion code.
* [ios, macos] Marked C array parameters as constMinh Nguyễn2016-11-291-3/+3
| | | | Fixes #7214.
* [ios, macos] Fix integer formatting in formatted exception strings (#7173)Jesse Bounds2016-11-231-4/+4
|
* [ios, macos] Use NSNumber in exception strings (#7083)ios-v3.4.0-beta.3Jesse Bounds2016-11-151-4/+4
|
* [ios, macos] Use std::vector for MGLMultiPoint coordinate storage (#6890)Jesse Bounds2016-11-141-61/+39
| | | | Refactor the previous C array based implementation to use C++ std::vector. This is done to avoid potential safety and security issues with the previous approach.
* Add MGLPointCollection for GeoJSON multipoints (#6742)Jesse Bounds2016-10-201-28/+0
| | | | | | | | | | | | | | | | * [ios, macos] Introduce MGLPointCollection This makes MGLMultiPoint abstract again so that it is only a place for shared functionality of polygons and polylines. The multipoint feature replaces the point collection feature and can be used to initialize a MGLGeoJSONSource. The previously added swift_names for polyline and polygon are removed, for now. This also updates the iOS and macOS annotation adding logic so that unwanted shapes really are avoided. Previously the combined OR conditions meant that an annotation had to logically be NOT a kind of all three types so the check always let the annotation slip through. This also expands the guard to deflect the new MGLPointCollection.
* [ios, macos] Teach features and shapes about GeoJSON and mbgl typesJesse Bounds2016-10-141-0/+28
| | | | | | MGLShape subclasses can now return NSDictionaries that represent the shapes' GeoJSON geometries. MGLFeature classes can now return NSDictionaries that represent the features as GeoJSON features. This makes it trivial to serialize iOS and macOS shapes and features into GeoJSON. MGLFeature instances can also return a representation of themselves as an mbgl::Feature. This capability is used in a refactoring of the implementations of MGLGeoJSONSource to more efficiently transform MGLFeatures into mbgl::Features so they can be fed directly into mbgl::GeoJSONSource without having to round trip through NSJSONSerialization. The MGLFeature identifier is converted into the mbgl::identifier type based on the type of the identifier. The MGLFeature attributes are recursively converted into an mbgl::PropertyMap and each value is converted into one of the types that the PropertyMap's Value variant supports.
* [ios, macos] fixes #6160: allow updating multipoint coordinates (#6565)Justin R. Miller2016-10-041-38/+71
|
* Color class (#5361)Young Hahn2016-06-151-2/+2
| | | | | | * Color class * Switch to list initialization
* [ios, osx] Add an assertion to -[MGLMultiPoint annotationObjectWithDelegate:]John Firebaugh2016-06-011-0/+5
|
* [core] Use geometry.hpp types for shape annotationsJohn Firebaugh2016-06-011-16/+0
|
* [ios, osx] Holes in polygonsMinh Nguyễn2016-05-271-17/+8
| | | | | | | | 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
* [ios] Add description strings to constituent classesJason Wray2016-03-101-0/+6
|
* [ios, osx] Consolidate remaining files in platform/{ios,osx}John Firebaugh2016-02-121-0/+131