summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* [ios, osx] Optionally animate content insets changeMinh Nguyễn2016-01-202-1/+48
|
* [ios] Made user dot position configurableMinh Nguyễn2016-01-201-0/+28
| | | | The user dot or user puck’s position is now configurable via a new alignment property in any user tracking mode. Also, -setUserTrackingMode:animated: is now exposed publicly, and setting its animated parameter to NO skips the initial animation.
* [core] Add ref counting to the main loopThiago Marcos P. Santos2016-01-201-0/+3
| | | | | | | | Should not be used at all, added for a corner case on OSX network backend where the request is processed on a worker thread managed by OSX and we need to wait for that reply before destroying the thread that pushed the request.
* Revert "Revert WebP support due to broken builds"Bruno de Oliveira Abinader2016-01-201-0/+5
| | | | | | | This reverts commit 6709bdcacd5a45a10b554f3f225206c9494e5e43. There was an issue with the script that removes '-lwebp' from WebP linker flags, since we're statically linking. This is now fixed.
* [core][ios][osx][android] make SpriteImage accept PremultipliedImageAnsis Brammanis2016-01-191-14/+6
| | | | | | | | | | | | the SpriteImage constructor signature changes from SpriteImage( uint16_t width, uint16_t height, float pixelRatio, std::string&& data, bool sdf = false); to SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-192-12/+24
|
* Revert WebP support due to broken buildsJohn Firebaugh2016-01-191-5/+0
| | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993.
* [linux] Added WebP tile supportBruno de Oliveira Abinader2016-01-191-0/+5
| | | | | | | - Android support is currently disabled due to a libwebp build issue. - iOS and OS X support will appear after the next Mapbox iOS SDK release. Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354
* [ios] Flip points, not edge insetsMinh Nguyễn2016-01-181-2/+0
|
* [ios] Account for top/bottom barsMinh Nguyễn2016-01-181-0/+16
|
* [core, osx] Added optional padding to convenience methodsMinh Nguyễn2016-01-181-2/+6
| | | | Methods that offer a convenient way to jump or ease now accept an optional padding parameter. MGLMapView specifies the padding to ensure that keyboard-based zooming and rotation respects the toolbar.
* [osx] Content insetsMinh Nguyễn2016-01-181-0/+25
| | | | Added a contentInsets property to MGLMapView that behaves similarly to NSScrollView.contentInsets. Adjust it according to the window’s content layout rectangle using KVO. Automatically apply the content insets whenever creating a CameraOptions or getting the center coordinates.
* [core] Added padding option to CameraOptionsMinh Nguyễn2016-01-183-8/+40
| | | | | | Moved EdgeInsets to geo.hpp so CameraOptions and Transform can refer to it. Added a padding option to CameraOptions that alters the frame of reference for the center option. Added optional padding parameters to LatLng getters and setters. Working towards #2600.
* [core] use stale glyphsKonstantin Käfer2016-01-151-1/+3
| | | | Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
* [ios] Fixed static analyzer warningsMinh Nguyễn2016-01-141-1/+1
|
* [osx] Fixed static analyzer warningsMinh Nguyễn2016-01-141-1/+1
|
* [core] Add an explicit "not modified" indicator to ResponseJohn Firebaugh2016-01-141-0/+3
|
* [core] Eliminate FileCache interfaceJohn Firebaugh2016-01-142-30/+3
| | | | There is only one implementation and we're unlikely to add more.
* [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