Commit Graph

7649 Commits

Author SHA1 Message Date
Minh Nguyễn
2ec95bc490 [ios, osx] Renamed version constant, linked to more info
Renamed MGLStyleCurrentVersion to MGLStyleDefaultVersion to emphasize the constant’s role as an indicator of the default version used by SDK classes, which may be behind depending on release schedules. In the documentation for each style URL method, include the actual version number instead of the constant. In unit tests, verify that this documentation is in sync with the constant.

Link each style URL method’s documentation to a forthcoming webpage on mapbox.com that describes the style in rich detail.
2016-05-06 11:06:52 -07:00
Minh Nguyễn
5ccb43477f [ios, osx] Renamed Hybrid to Satellite Streets
The style ID has also changed, but the unversioned method will continue to point to the old v8 style ID.
2016-05-06 11:06:51 -07:00
Minh Nguyễn
4a112c00f1 [ios, osx] Pin unversioned style URL APIs to v8 styles 2016-05-06 11:06:51 -07:00
Tobrun
da422ff44d [android] #4702 - upgrade default styles, deprecate Style string definition in favour versioned styling methods. 2016-05-06 11:06:50 -07:00
Minh Nguyễn
2a4eeadb29 [core, ios, osx] Version default style URL APIs; deprecated Emerald
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.

Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp.

Replaced Emerald with Outdoors in iosapp and osxapp.

Fixes the iOS and OS X side of #4577 and #4702.
2016-05-06 10:57:54 -07:00
Minh Nguyễn
d28b6f3719 [ios, osx] Avoid recomputing tile cache size on every redraw
The tile cache size is only recomputed when an input changes.

Fixes #4026.
2016-05-06 08:47:18 -07:00
Minh Nguyễn
8a7087af68 [osx] Display print dialog after drawing
Fixes #4956.
2016-05-06 08:11:50 -07:00
Tobrun
1ade5e3aa6 [android] #4748 - add javadoc for unregistering location listeners 2016-05-06 15:32:04 +02:00
Tobrun
def05ab5f8 [android] #4763 - introduce StyleInitializer class 2016-05-06 14:40:45 +02:00
Thiago Marcos P. Santos
3863561eb7 [build] qtpositioning5-dev and qtlocation5-dev are now on Travis whitelist
Do not call `sudo` for installing them anymore. This will make it
possible to migrate to a container'ed Trusty bot when available.
2016-05-06 13:42:03 +03:00
Tobrun
ff080a0f4b [android] #4894 - correctly calculate LatLngBounds 2016-05-06 10:18:33 +02:00
John Firebaugh
59a7fbf8e4 [core] Implement has/!has filters (#4952) 2016-05-05 14:30:37 -07:00
John Firebaugh
a66901ed07 [tests] Update test suite 2016-05-05 13:57:01 -07:00
John Firebaugh
9330d674a9 [core] Use geometry.hpp's point 2016-05-05 11:30:53 -07:00
John Firebaugh
f89cfacab2 [core] Inline LatLng::project definition the one place it's used 2016-05-05 11:16:57 -07:00
John Firebaugh
ce2a06e677 [core] Privatize math.hpp and vec.hpp 2016-05-05 11:16:57 -07:00
Thiago Marcos P. Santos
a818917714 [Qt] Make it possible to disable libwebp and libjpeg-turbo at build time
Pull less dependencies.
2016-05-05 18:47:14 +03:00
John Firebaugh
10e522d10b [core] Privatize various util headers (#4945) 2016-05-04 14:09:51 -07:00
Thiago Marcos P. Santos
bdf4f81553 [Qt] Include what you use
Build fix for some Qt versions.
2016-05-04 22:01:09 +03:00
Dane Springmeyer
0c6bce2819 [core] consistently protect against invalid tag encoding in vector tile 2016-05-04 10:12:15 -07:00
Bruno de Oliveira Abinader
433ca3026b [build] Fix parallel 'make linux' call 2016-05-04 18:12:56 +03:00
Cameron Mace
265df1faa4 [android] #4896 - added permission request and id fixes 2016-05-04 12:35:05 +02:00
Cameron Mace
90cd425c5a [android] added user dot customization example
Fixes #4896
2016-05-04 12:35:05 +02:00
Minh Nguyễn
89afbc648e ios-v3.3.0-alpha.1 2016-05-04 02:50:15 -07:00
Minh Nguyễn
9a280b8d9d [ios] Corrected map accessibility value
Corrected the English override strings for the map view’s accessibility value. Prior to this change, the accessibility value would say “0 annotation” instead of “0 annotations” for some reason.

The zoom level in the map view’s accessibility value is off by two.
2016-05-04 02:23:20 -07:00
Brent W
7e6995d153 [core] Merge pull request #4914 from bwhtmn/camera-padding
Fix a bug in applying padding to the camera.

Fixes #4862.
2016-05-04 01:28:27 -07:00
Minh Nguyễn
5f0a01705f [ios] Fixed KIF tests
Link to the libKIF.a in the shared build products directory instead of at a nonexistent, hard-coded path. Fixed a compilation error in the KIF tests caused by importing a project-internal header even after the KIF project was moved out of the test project. Updated accessibility labels.
2016-05-04 00:54:02 -07:00
John Firebaugh
a64fe5062f [core] Simplify FilterEvaluator and fix crash
Previous implementation was assigning a temporary to FilterEvaluator<T>::extractor.
2016-05-04 09:56:34 +03:00
Brad Leege
23c4502236 [android] #4847 - Updating paths to testable .apks 2016-05-03 19:57:08 -05:00
John Firebaugh
c8391729c7 [core] Use geometry.hpp feature type 2016-05-03 17:25:49 -07:00
John Firebaugh
01b3eac52f [build] '<@(foo_static_libs)' must precede '<@(foo_ldflags)'
'<@(foo_ldflags)' typically includes -lbar arguments that the static libs depend on, and order matters for ld.

The build was previously working merely by lucky ordering.
2016-05-03 16:59:04 -07:00
John Firebaugh
e8e709d96d [node] Add -Wl,-z,now flag for linux 2016-05-03 15:57:18 -07:00
Brad Leege
7e2ec7fc24 [android] #4847 - Re-enabling StrictMode 2016-05-03 16:31:16 -05:00
Tobrun
2380b4de13 [android] bring back ScreenshotActivityTest 2016-05-03 16:31:16 -05:00
Dane Springmeyer
c82b02c508 [core] port to protozero (#4906) 2016-05-03 13:57:17 -07:00
Antonio Zugaldia
7d1a4c5ec1 [android] Create a new local reference frame to avoid a local reference table overflow
Fixes #4706
2016-05-03 13:10:37 -04:00
Bruno de Oliveira Abinader
78584b7fed [Qt] Removed unused resource 2016-05-03 17:11:47 +03:00
Tobrun
65adb9eadf [android] #4912 - remove lollipop attribute from background drawable, made default bg color white, revert default color to TRANSPARENT when reading attributes. 2016-05-03 14:22:52 +02:00
Thiago Marcos P. Santos
ee75d18473 [Qt] Add new features to the Qt QML app
Cool features like Flipable, satellite maps and
sliders interacting with the map properties.
2016-05-03 14:35:00 +03:00
Thiago Marcos P. Santos
96a2c93609 [Qt] Use mbgl constants to define zoom limits 2016-05-03 14:35:00 +03:00
Thiago Marcos P. Santos
a60f401e5a [Qt] Add pitch property to QML MapboxGL Type 2016-05-03 14:34:59 +03:00
Thiago Marcos P. Santos
7aa0a88c64 [Qt] Fix panning the map not updating the center property 2016-05-03 13:51:52 +03:00
Dane Springmeyer
d4070d3356 Merge pull request #4919 from mapbox/follow-to-4916
Boost headers are no longer needed in project files after #4916
2016-05-02 16:53:10 -07:00
John Firebaugh
7800445c85 [core] Use gyp's direct_dependent_settings to propagate variant cflags 2016-05-02 13:12:24 -07:00
John Firebaugh
34f9618d31 [core] Replace boost::lexical_cast with std::to_string
This removes the only boost dependency from public headers.
2016-05-02 13:08:51 -07:00
John Firebaugh
fd0f9d1319 [core] Remove duplicate copy of utf.hpp 2016-05-02 12:26:33 -07:00
John Firebaugh
c8c36c395c [core] Remove unused 2016-05-02 11:26:37 -07:00
Thiago Marcos P. Santos
41f63db98b [Qt] Implement bearing on the QML Mapbox Map type 2016-05-02 19:33:54 +03:00
Thiago Marcos P. Santos
91cdcbebf4 [Qt] Implement pan() method 2016-05-02 19:33:54 +03:00
Thiago Marcos P. Santos
d3f08f1442 [Qt] Constrain zoom levels when min/max changes 2016-05-02 19:33:54 +03:00