Commit Graph

10181 Commits

Author SHA1 Message Date
Jordan Kiley
e04aaa4522 [ios] Update podspec for v3.5.0-rc.1 (#8422) 2017-03-15 14:50:10 -07:00
Jordan Kiley
2c0005c262 [ios, macos] Add more information to interpolation mode docs (#8425)
Addresses #8192 until #8354 lands.
2017-03-15 13:57:37 -07:00
Anand Thakker
458de43b9e Increase precision of shader variable (#8423)
Fixes #7599
2017-03-15 15:02:02 -04:00
Jesse Bounds
2b4b94d3a7 [ios, macos] Update changelogs for 8374 2017-03-14 15:46:31 -07:00
Minh Nguyễn
4430e65603 [ios, macos] Expanded feature querying documentation
Also fixed a couple incorrect Swift method names on macOS.
2017-03-14 14:42:57 -07:00
Ivo van Dongen
7a13bee72e [core] don’t query rendered features until all data is available 2017-03-14 13:28:32 -07:00
Jordan Kiley
e8f6c75896 [ios, macos] API doc revisions (#8396)
- Changed `make style-code-darwin` to `make darwin-style-code` in relevant files
- Added some doc clarifications:
   - `MGLInterpolationModeExponential` and `MGLInterpolationModeInterval` can be used with `MGLCameraStyleFunction` (I am not sure how to accurately reflect this in the documentation for `MGLCompositeStyleFunction`)
    - Do not add a style layer to the style property on a map view before the style has finished loading
    - Create individual style layers from a `MGLShapeCollectionFeature`
2017-03-14 12:31:31 -07:00
John Firebaugh
1850da1465 [android] Link with a version script to restrict symbol visibility 2017-03-14 09:28:49 -07:00
Jason Wray
48e17724a1 [ios] Enable one-finger quickzoom gesture on iPad 2017-03-13 16:49:46 -04:00
Minh Nguyễn
e91be23b7f [ios, macos] Fixed documentation parameter mismatches
Also enabled compiler warnings about incorrect Doxygen commands.
2017-03-13 12:35:09 -07:00
Minh Nguyễn
936cc33d52 [ios, macos] Resolved unused variable warnings
Resolved unused variable warnings in Release configuration that occurred because they were only used within NSAssert() invocations, which are omitted from Release builds.
2017-03-13 11:05:38 -07:00
Antonio Zugaldia
5120cbada4 [android] Change version name back to 5.0.0-SNAPSHOT 2017-03-12 16:37:51 -07:00
Antonio Zugaldia
9f4a446b44 [android] Update CHANGELOG.md 2017-03-12 16:37:51 -07:00
Antonio Zugaldia
fae8a02701 [android] make BubbleLayout public 2017-03-10 16:00:51 -08:00
Fabian Guerra Soto
5bf751af06 updated pod spec release version (#8358) 2017-03-10 16:00:13 -08:00
Minh Nguyễn
b74d7bfdb4 [ios, macos] Corrected polyline equality
Now that annotation classes override -isEqual:, it’s no longer appropriate to rely on -isEqual: or -containsObject: to check for the preexistence of an annotation. Those methods become deep equality tests, which have worse performance. Checking for identity allows the developer to add a polyline and polygon with identical coordinates, title, etc. to the map.

Implemented a missing -[MGLPolyline isEqual:].

Removed outdated comments about -annotationTagForAnnotation: being expensive.
2017-03-10 15:08:00 -08:00
Fabian Guerra Soto
ffce46cae6 Raise exception when MGLAnnotationView.annotation property is nil (#8339)
* [ios] MGLAnnotationView annotation property made writable

* [ios] standarized exception name for annotations
2017-03-10 14:49:22 -08:00
Antonio Zugaldia
6c6e895b23 [android] [auto] Update properties to version 5.0.0-beta.3 in preparation for build. 2017-03-10 13:48:56 -08:00
Fabian Guerra Soto
20712b7c84 Per-attribute transition properties on MGLStyleLayer (#8225)
* [ios, macos] new struct MGLTransition

* [ios] MGLTransition struct moved to MGLTypes.h

* [ios] MGLTransition implemented for style layer properties

* [ios, macos] added support for getting property transitions

* [ios, macos] updated to MGLDurationFromTimeInterval and MGLTimeIntervalFromDuration

* [ios, macos] added transition properties test

* [ios, macos] modified key strings imp

* [ios, macos] The impl for transition properties were changed to public methods

* [ios, macos] Changelog update

* [ios] Fixed layer space formatting

* [core] The name space was fixed for getters that returned TransitionOptions

* [ios, macos] Added rawLayer transition property tests

* [ios] Added a factory method for MGLTransition and transition-related methods to NSValue(MGLAdditions)

* [ios, macos] Copyedited changelog blurbs about transition properties
2017-03-10 11:33:31 -08:00
Minh Nguyễn
4a0ce1365f [ios, macos] Copyedited changelog blurb about source querying 2017-03-10 11:08:32 -08:00
Ivo van Dongen
a3121fc7a3 [android] query source features 2017-03-10 11:08:32 -08:00
Ivo van Dongen
a7fd788b5d [macos, ios] query source features 2017-03-10 11:08:32 -08:00
Ivo van Dongen
517659b1b4 [core] query source features 2017-03-10 11:08:32 -08:00
Ivo van Dongen
4d325879b8 [core] rename query options for query rendered features 2017-03-10 11:08:32 -08:00
Minh Nguyễn
d82092d606 [ios, macos] Fixed camera function exception message
This exception message had a typo; developers would’ve been advised to use a method that doesn’t exist, due to case sensitivity. Moreover, the method has been renamed since this message was written.
2017-03-10 10:22:44 -08:00
Tobrun
ed16a7d632 [android] - zoom to rounded levels 2017-03-10 09:37:00 -08:00
Minh Nguyễn
2581af3cb6 [ios, macos] Update changelogs for v3.5.0-beta.3 (#8343)
* [ios, macos] Updated changelogs

Mentioned #8298, #8139. Copyedited recent additions.

* [ios, macos] Reorganized changelogs
2017-03-10 08:20:04 -08:00
Konstantin Käfer
e9cf787779 [darwin] Use explicit initialization rather than global static variables for the default RunLoop
When linking Mapbox GL as a static library, the object file (MGLFoundation.o) containing the global static variable initialization was not linked into the resulting binary since it was not referenced. This resulted in the RunLoop not being initialized in the main thread.

Reverts 03a14ff000
2017-03-10 06:48:42 -08:00
Antonio Zugaldia
01f126cbc6 [android] remove unnecessary manifest permissions 2017-03-09 18:30:03 -08:00
Antonio Zugaldia
359507345d [android] remove unnecessary manifest inclusion 2017-03-09 18:30:03 -08:00
Antonio Zugaldia
8d5e86dd1f [android] Include the telemetry service to simplify set up 2017-03-09 18:30:03 -08:00
Tobrun
d1e50b3ab8 [android] - add style loading callback (#8291)
* [android] - add style loading callback that is invoked when a style finishes loading.

* fixup language + add support for adding a callback when invoking setStyle with the default styles.
2017-03-09 17:20:56 -08:00
Tobrun
803c1c46fe [android] - harden mapZoomButtonController to avoid null pointer exceptions (#8332) 2017-03-09 17:20:44 -08:00
Tobrun
1693b389d7 [android] - move touch handling of MarkerViews back to View#setOnClickListener. Workaround panning issue by dispatching touch events to the parent ViewGroup. (#8272) 2017-03-09 16:59:10 -08:00
Antonio Zugaldia
b8283e838e [android] renames MultiPoint to BasePointCollection 2017-03-09 15:44:27 -08:00
Antonio Zugaldia
495d73d187 [android] fix checkstyle 2017-03-09 15:44:07 -08:00
Antonio Zugaldia
c533b7077d [android] update version to local package build config 2017-03-09 15:44:07 -08:00
Antonio Zugaldia
4ca65b9701 [android] set user agent on initialization 2017-03-09 15:44:07 -08:00
Antonio Zugaldia
9f42383d8a [android] re-add build config fields 2017-03-09 15:44:07 -08:00
Antonio Zugaldia
db3ffb9a2a [android] bump versions to beta.3 2017-03-09 15:44:07 -08:00
Tobrun
c9f63baccd [android] - build aar once (#8297) 2017-03-09 12:26:48 -08:00
John Firebaugh
65f74224ab Merge master into release-ios-v3.5.0-android-v5.0.0 2017-03-08 17:31:03 -08:00
John Firebaugh
e044e0aab9 [core] Avoid using std::function in property_setter.hpp 2017-03-08 16:50:28 -08:00
Molly Lloyd
692f5e0a9f Pack min + max into one attribute 💪
Some devices supported by Mapbox GL provide only 8 vertex attributes; this change packs existing attributes to get us just under that limit.

For properties using a composite function, pack the min and max values into a single attribute with two logical components instead of using two separate attributes and buffers. Special logic is included for color attributes, whose integer components must be packed into the available bits of floating-point attributes. (We don't have access to ivec types in GL ES 2.0.)

For source functions, continue to bind just a one-component attribute even though the GLSL type is vec2 (or vec4 for colors). The type-checking done by gl::Attribute is relaxed slightly to accommodate this.
2017-03-08 15:23:25 -08:00
Tobrun
e115d55ef6 MyLocationView activate/deactivate LocationSource (#8255)
* [android] - activate/deactivate the locationSource when toggling the MyLocationView state.

* correct accuracy width
2017-03-08 15:01:15 -08:00
John Firebaugh
3afae825c7 Use ICU compiled with -Os 2017-03-08 14:05:19 -08:00
John Firebaugh
b83b14feb0 [core] De-duplicate shader prelude source 2017-03-08 13:49:24 -08:00
Fabian Guerra Soto
05dd34f584 [ios, macos] Removed duplicated NSDate test files, improved duration converstion for NSDate+MGLAdditions (#8290) 2017-03-08 13:15:52 -08:00
John Firebaugh
84aac92b4e [test] Increase memory test ceiling slightly 2017-03-08 13:10:38 -08:00
Konstantin Käfer
a517323bfc [build] increase binary size log duration to 60 days 2017-03-08 13:10:04 -08:00