summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* [core] Consolidated zoom and angle anchor logicMinh Nguyễn2016-01-141-0/+4
| | | | Made anchor a CameraOption for easeTo().
* [core] Cleaned up TransformMinh Nguyễn2016-01-142-2/+9
| | | | | | Eliminated many redundant methods on Transform. Minimized usage of TransformState::x and TransformState::y. Added convenient constructors for AnimationOptions. When scaling, passing in view’s origin as the anchor no longer anchors the scaling operation at the view’s center. To specify no anchor, use NaN. Increased precision of worldSize(), now that it’s used much more heavily in transform methods.
* [core] Separated AnimationOptions from CameraOptionsMinh Nguyễn2016-01-142-11/+11
|
* [core] Remove request coalescing in OnlineFileSourceJohn Firebaugh2016-01-131-1/+1
|
* [core] Eliminate platform::assetRoot()John Firebaugh2016-01-132-4/+1
| | | | I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths.
* [core] Simplify asset:// implementationJohn Firebaugh2016-01-131-1/+1
| | | | | | | | * Move asset:// URL handling to DefaultFileSource. * AssetFileSource implements FileSource interface and follows familiar implementation patterns. * Move default implementation to platform/default, zip implementation to platform/android. * Don't bother with modified / expires / etag -- assets are not cached so it doesn't matter. * Don't bother with interleaving individual IO calls on the implementation thread. That adds a lot of complexity for very little benefit.
* [core] Refactor to instance methods on OnlineFileRequestImplJohn Firebaugh2016-01-131-0/+2
|
* [ios, osx] Fixed Xcode 7.3 buildMinh Nguyễn2016-01-111-2/+2
| | | | Fixed a compiler error that’s new in Xcode 7.3. Also corrected a typo in MGLMapView on OS X.
* [ios] Add telemetry setting directly to attribution button action sheetJason Wray2016-01-092-8/+11
| | | | | - Deprecate and no-op `+[MGLAccountManager mapboxMetricsEnabledSettingShownInApp]` - Check for attribution button hiding and make sure ToS are understood
* [core] Privatize SQLiteCacheJohn Firebaugh2016-01-082-47/+4
|
* [ios] Added some missing coordinate conversion methodsMinh Nguyễn2016-01-071-0/+22
| | | | These methods were public in the OS X SDK but not here.
* [ios] Refined custom callout view supportMinh Nguyễn2016-01-064-41/+73
| | | | Renamed MGLCalloutView to MGLCompactCalloutView and MGLCalloutViewProtocol to MGLCalloutView to avoid an awkward workaround for a Swift name collision. Replaced individual title and subtitle properties with a single representedObject property that lets you use custom annotation properties in the custom callout view. Overrode a problematic SMCalloutView method. Added lots more documentation.
* [ios] expose custom callout api, wrap around SMCalloutView classRomain Quidet2016-01-063-3/+51
|
* [ios] Removed appledoc workaroundMinh Nguyễn2016-01-052-7/+5
|
* [ios] more inline docs updates for jazzyJason Wray2016-01-051-238/+464
| | | | | - Change all smart quotes to dumb quotes to workaround SourceKitten bug. - Port changes from OS X (#3135)
* [ios] Generate API documentation using jazzyMinh Nguyễn2016-01-0513-496/+726
| | | | | | Replaced appledoc usage with jazzy, which understands modern Objective-C syntax by virtue of using Clang ASTs. Nevertheless, we have to make lots of changes to our documentation syntax, which was tailored to appledocs quirks. The new syntax jives much better with what Xcode expects in terms of auto-indentation and Quick Help. Fixes #1420.
* [core] Make it possible to limit the size of the SQLite cacheThiago Marcos P. Santos2015-12-271-0/+3
|
* [tests] Test with OnlineFileSourceJohn Firebaugh2015-12-231-0/+34
| | | | | When we introduce OfflineFileSource, the behavior of existing tests should not change.
* [core] Rationalize error handling for resource loadingJohn Firebaugh2015-12-231-20/+0
| | | | | | | | | * Standardize on std::exception_ptr as the error representation (fixes #2854). * Don't format textual strings at the error source; pass on the constituent data via observer method parameters instead. * Use the null object pattern to simplify observer notification code. * Further refactoring for ResourceLoading tests.
* [tests] Rewrite resource loading testJohn Firebaugh2015-12-222-0/+15
| | | | Make it more readable and easier to debug.
* [ios] Meters per point at latitudeMinh Nguyễn2015-12-221-5/+7
| | | | Renamed -metersPerPixelAtLatitude: to -metersPerPointAtLatitude:, leaving the old name as a deprecated alias. In Cocoa Touch terminology, “point” is the visual unit backed by pixels.
* [core] Prepare for OfflineFileSourceJohn Firebaugh2015-12-211-14/+7
| | | | | * Rename existing DefaultFileSource to OnlineFileSource * Restore a DefaultFileSource that's a passthrough to OnlineFileSource
* [ios, osx] Optional peak altitude for flyingMinh Nguyễn2015-12-202-0/+29
|
* [core] Clamp pitch in easeTo(), flyTo()Minh Nguyễn2015-12-191-0/+1
| | | | Also factored out the maximum pitch into a constant.
* [ios, osx] Allow zero-duration flightMinh Nguyễn2015-12-192-10/+23
| | | | | | For consistency with -setCamera:…, a duration of 0 jumps instantaneously to the new location, while a negative value uses the distance-dependent default. Due to the produced curve and applied easing, flyTo() doesn’t model a parabola or ballistic trajectory, but it does simulate powered flight to some extent.
* [core] Reformulated flyTo optionsMinh Nguyễn2015-12-191-8/+9
| | | | The speed and curve fields in CameraOptions have been replaced with velocity and minZoom fields, which expressed in screen units. Scaling and easing make it difficult to derive options that are expressed in physical units.
* [core] Refined and commented flyToMinh Nguyễn2015-12-191-5/+42
| | | | | | | | Rewrote the flyTo implementation to more closely match GL JS’s implementation and the paper on which it is based. Rewrote CameraOptions documentation. Only document units for generic types like double. The semantics of LatLng and Duration are already baked into the types; one just needs to look up the types’ definitions. Also, the […) is set notation, so the braces are supposed to be mismatched. Fixes #3296.
* [android] Camera APIBrad Leege2015-12-181-5/+5
|
* [ios, android] Add methods to remove a custom layerJohn Firebaugh2015-12-172-0/+3
|
* [ios] Renamed custom style layer invalidation methodMinh Nguyễn2015-12-161-1/+1
| | | | Cf. -[UIView setNeedsDisplay] and -[MKOverlayRenderer setNeedsDisplay].
* [ios, android] Add a method to invalidate custom layers, forcing a repaintJohn Firebaugh2015-12-161-0/+2
|
* [ios] Silence undocumented typedef warnings from appledocMinh Nguyễn2015-12-161-0/+3
| | | | ref #3203
* Revert "Revert "[ios] Custom style layer""Minh Nguyễn2015-12-162-0/+23
| | | | This reverts commit 081e4e44516937a6139fad5823dd5ec3200cc343.
* [android] Move includes to platform subdirectoryJohn Firebaugh2015-12-162-219/+0
|
* Revert "[ios] Custom style layer"John Firebaugh2015-12-162-23/+0
| | | | ec9a4cd3285da280d43c7ddd0ca96fe37d9c5278
* [ios] Custom style layerMinh Nguyễn2015-12-162-0/+23
| | | | | | Exposed Map::addCustomLayer() publicly as an undocumented, block-based API. This change avoids the terms “layer”, “initialize”, “render”, and “altitude” because they overload existing terminology in the SDK, UIKit, or MapKit. (“Layer” is qualified as “style layer”.) There are outstanding questions about ARC memory management, but this approach works in both Objective-C and Swift for pure OpenGL programming. Added a demo to iosapp that draws a green layer below any labels in Mapbox Streets.
* code review updates: sprite_atlas brackets and nullable removed for ↵Romain Quidet2015-12-151-1/+1
| | | | reuseIdentifier of annotationImage
* 2210: MGLAnnotationImage image can be updateRomain Quidet2015-12-151-2/+2
|
* [ios, osx] Added flyToCamera: variation that uses default durationMinh Nguyễn2015-12-152-5/+18
|
* [ios, osx] Added flyTo to OS X; refactored camera settersMinh Nguyễn2015-12-152-2/+10
|
* [core] Corrected flying trajectory; pitched flightMinh Nguyễn2015-12-151-0/+2
| | | | | | Corrected some fairly opaque code that was incorrectly ported from GL JS the first time around in #3171, causing the trajectory to extend far into the Earth’s orbit. Also transition pitch while flying, call transition frame/finish callback functions, and recognize the same “speed” and “curve” parameters that GL JS does. Fixes #3296, fixes #3297.
* [core] allow changing the orientationKonstantin Käfer2015-12-154-0/+15
| | | | You can now change the orientation of north to be to the right, bottom, left in addition to the default of top
* [node] code review cleanupMike Morris2015-12-151-1/+1
|
* [osx] Map cameraMinh Nguyễn2015-12-132-0/+26
| | | | Shared MGLMapCamera between iOS and OS X. Unfortunately -camera and -setCamera: implementations need to be copy-pasted for now.
* [osx] Default callout view controllerMinh Nguyễn2015-12-132-1/+20
|
* [osx] Documentation comments for public classesMinh Nguyễn2015-12-135-43/+637
| | | | | | | | | | Added documentation comments for all the public headers that aren’t being shared with iOS. Removed an animated: parameter from -selectAnnotation: and -deselectAnnotation:: because callout popovers may extend beyond the entire window, there is no need to scroll the map to make the entire callout visible. Added missing geometric conversion methods. Renamed -mapView:regionWillChangeAnimated: et al. to say “camera” instead of “region”. “Region” leaves ambiguity about whether properties like rotation and pitch trigger this method. “Camera” associates these methods with the camera property, which seems apt.
* [osx] Commented private headers and implementation filesMinh Nguyễn2015-12-132-2/+44
|
* [osx] Moved Mapbox.{h,m} into framework proper; set version variablesMinh Nguyễn2015-12-131-15/+0
|
* [osx] Added inline comments to MGLMapViewMinh Nguyễn2015-12-131-1/+2
|
* [osx] Annotation cursorsMinh Nguyễn2015-12-131-0/+3
| | | | Also added an option to osxapp for assigning a random cursor to all the annotations each time an annotation is added or removed.