Commit Graph

8725 Commits

Author SHA1 Message Date
Thiago Marcos P. Santos
c98f4f476b [core] Emit MapChangeDidFailLoadingMap when the style cannot be loaded or parsed
Currently this signal is never emitted, which can cause the Still mode
to starve in case of an invalid style or failed request.
2016-08-24 20:02:31 +03:00
John Firebaugh
646528bc53 [core] Simplify Thread::invokeSync (#6128) 2016-08-24 09:36:11 -07:00
Thiago Marcos P. Santos
7a84a0e4ea [ios] Fix typo
s/Reponse/Response
2016-08-24 18:17:56 +03:00
Thiago Marcos P. Santos
4bad0867ce [ci skip] Add database files to gitignore 2016-08-24 18:06:02 +03:00
Minh Nguyễn
1b4593efcc [ios, macos] Distinguish between blackColor and clearColor (#6125) 2016-08-24 01:41:26 -07:00
Minh Nguyễn
9720f581ff [macos] Avoid negative content insets (#6102)
Fixed an issue in which a map view that doesn’t occupy the entire window would consider its center point to be the window’s center point rather than the view’s.
2016-08-23 18:12:35 -07:00
Jason Wray
a5b089de62 [ios, macos] Move debug mask options to shared header (#6094)
* [ios, macos] Move debug mask options to shared header

* Limit buffer debug modes to macOS

... because these modes use OpenGL features that aren't supported by iOS.

* Try a different tact: exclude "iPhone"

... which is actually all iOS-like devices.
2016-08-23 20:14:22 -04:00
John Firebaugh
63cce78cf1 [core] Add static getters for property default values (#6124) 2016-08-23 12:49:47 -07:00
Jason Wray
fcb710fafe [ios] Disable implicit animation of user annotation pitch changes (#6122)
- Subtly improves the performance of the shadow, while performing the pitch gesture.
2016-08-23 13:59:26 -04:00
Jason Wray
c034ba4ee1 [ios, macos] Update changelog with database performance note 2016-08-23 13:26:02 -04:00
Jason Wray
74f094faab [core] Update SQLite schema with WAL journal mode and normal sync
Offers 2×-4× performance, depending on device vintage.
2016-08-23 13:26:02 -04:00
John Firebaugh
eb9fe89612 [tests] Test that style mutations due to annotations don't cancel style revalidation 2016-08-23 09:55:32 -07:00
John Firebaugh
86cccc4d24 [core] Don't allow style mutations to be overwritten by revalidation
* Once we get a fresh style, stop revalidating.
* If the style is mutated, stop revalidating and preserve the existing mutations.
2016-08-23 09:55:32 -07:00
John Firebaugh
5511e9a4e8 [tests] Fix a subtle ordering bug in StubFileSource 2016-08-23 09:55:32 -07:00
John Firebaugh
6bbb2e4c2b [tests] Merge single test in set_style.cpp with other Map tests 2016-08-23 09:55:32 -07:00
Ivo van Dongen
df3b44531e [core] #6071 - extract GeoJSONOptions conversion from GeoJSONSource conversion
* [core] geojson_options - retain original error message

* [core] tests - initial style conversion stub methods

* [core] geojsonoptions conversion - initial unit tests

* [core] tests - fix forward reference issue

* [core] geojsonoptions conversion - unit tests

* [core] geojsonoptions conversion - renamed Holder to Value
2016-08-23 14:57:55 +02:00
Tobrun
50da6e5e71 6039 focal point uses MyLocationView padding (#6108)
* [android] - don't auto tint drawables + formatting

* [android] - formatting

* [android] #6039 - fixes focal point when padding mylocationview

* [android] #5977 - MyLocationView.setPadding example + formatting Manifest

* [android] - Reset to default configuration, cleanup class
2016-08-23 12:53:36 +02:00
Konstantin Käfer
e1a6795a73 [build] add CMake source groups to all targets 2016-08-22 19:14:51 +02:00
Konstantin Käfer
e6bcbdd5d3 [core] set correct depth values for CustomLayer so compositing works 2016-08-22 18:32:12 +02:00
Thiago Marcos P. Santos
bf1c7a47b5 [Qt] Add mesa to the library path
Qt 5 gets confused with fglrx that is installed by default on Travis
trusty bots. This way we force both Qt and Xvfb to load on mesa drivers.
2016-08-22 16:52:02 +03:00
Thiago Marcos P. Santos
547af7475e [Qt] Implement a Qt headless renderer
Using legacy QGLWidget because we support Qt4.
2016-08-22 16:52:02 +03:00
Thiago Marcos P. Santos
6761b325fb [Qt] Enable tests on macOS 2016-08-22 16:52:02 +03:00
Thiago Marcos P. Santos
cb3b2997ea [tests] Include what we use 2016-08-22 16:52:02 +03:00
Tobrun
3ef272e389 [android] #6077 - keep rules for Signature and Annotation (#6085)
* [android] #6077 - keep rules for Signature and Annotation, reordered file to mimic package structure project.

* [android] #6077 - proguard workaround for mapbox-java
2016-08-22 14:49:47 +02:00
Minh Nguyễn
44fe8ef7ea [macos] Took NSColor+MGLAdditions private (#5995)
Fixes #5989.
2016-08-21 16:28:16 -07:00
Minh Nguyễn
d6c8463da8 [ios, macos] Copyedit default color property documentation (#6105)
* [ios, macos] Fixed typo in color property docs

* [ios, macos] Predefined colors as default color property values

Use {NS,UI}Color.blackColor and {NS,UI}Color.whiteColor as aliases for common default color values.
2016-08-21 16:04:22 -07:00
Minh Nguyễn
ea41ed0769 [ios] Segmented changes by topic 2016-08-19 17:42:37 -07:00
Minh Nguyễn
0a2fec272d [ios, macos] Updated changelogs 2016-08-19 17:33:22 -07:00
Jason Wray
da7cb247ae ios-v3.4.0-alpha.2 2016-08-19 20:03:41 -04:00
Jesse Bounds
9450323f9e [ios] Automate upload of build output to Fabric
This adds a script that automates the process of uploading the
required build output to Fabric. It requires the `FABRIC_KIT_API_KEY`
env variable and another new script called `validate-fabric-zip.sh`.
2016-08-19 16:22:42 -07:00
Minh Nguyễn
98c6987af4 [ios, macos] Removed unused code 2016-08-19 15:45:17 -07:00
Minh Nguyễn
abc825e19b [ios, macos] Detect zero edge insets more strictly
Edges shouldn’t be able to cancel out other edges, so a summation is inappropriate here.
2016-08-19 15:45:17 -07:00
Minh Nguyễn
0a4f0e40ec [ios, macos] Offsets as vectors, padding as edge insets
An offset style attribute is now exposed publicly as an NSValue representing a CGVector instead of an NSArray of NSNumbers. A padding style attribute is now exposed publicly as an NSValue representing an NSEdgeInsets or UIEdgeInsets instead of an NSArray of NSNumbers. This change also fixes round-tripping of padding values due to a difference between the style specification and Foundation regarding the order of edges around a box. Used a designated initializer on NSEdgeInsets/UIEdgeInsets to ensure correct order when converting from C++ to Objective-C.

Fixes #5947, fixes #6065.
2016-08-19 15:45:14 -07:00
Minh Nguyễn
7f1b325b0c [ios, macos] Optional properties are nullable
null_resettable semantics aren’t currently respected: #6095.
2016-08-19 14:32:50 -07:00
Minh Nguyễn
98787b37bf [ios, macos] Refactored array type conversion
Key the array subtype on the last part of the property name. Don’t assume one of the unaccounted-for properties is an offset.
2016-08-19 14:20:27 -07:00
Minh Nguyễn
cb32f60444 [ios, macos] Removed dead code 2016-08-19 14:20:27 -07:00
Minh Nguyễn
14aeb107f3 [ios, macos] Document style attribute interdependencies 2016-08-19 14:20:27 -07:00
Minh Nguyễn
938540b919 [ios, macos] Specify units
Replaced pixels with points in documentation.
2016-08-19 14:20:27 -07:00
Minh Nguyễn
e6ed9cd638 [ios, macos] Fully describe default values
Also expand values in documentation comments to the full enumeration values.

Fixes #5949.
2016-08-19 14:20:27 -07:00
Minh Nguyễn
99fc6dfce8 [ios, macos] Audited generated source/layer headers
Properties representing optional attributes are qualified with null_resettable. The default value is documented.
2016-08-19 14:20:26 -07:00
Minh Nguyễn
a4fcea4122 [ios, macos] Refer to attributes in kebab-case
Fixes #5951.
2016-08-19 14:20:26 -07:00
Minh Nguyễn
aa03f0cab7 [ios, macos] Replaced let with var in codegen script 2016-08-19 14:20:26 -07:00
Konstantin Käfer
0df60c4651 [core] add ability show visualize the depth buffer to the GLFW and macOS app 2016-08-19 17:41:55 +02:00
Konstantin Käfer
cb33c861b4 [core] parse more Style JSON properties
We're now parsing "name", "center", "zoom", "bearing", and "pitch" from the stylesheet.
2016-08-19 17:34:10 +02:00
Jesse Bounds
dfd40b27a5 [tests] Add tests for shape overlays crossing the antimeridian
This adds two tests:

AntimeridianAnnotationSmall: Test that a shape that is represented with
+-180 longitudinal values is drawn spanning the antimeridian. In other
words, it is rendered as a "small" shape as opposed to one that spans
around the world to reach the other side of the antimeridian. This test
is currently failing at the time of this commit.

AntimeridianAnnotationLarge: Test that a shape that is represented with
points that do not cross the +-180 boundary is rendered as a "large"
shape. In other words, it is rendered by wrapping around the world to
reach the other side of the meridian. This test is currently passing at
the time of this commit.
2016-08-19 16:51:01 +03:00
Bruno de Oliveira Abinader
d70eda8504 [build] Fix macOS compdb path on YCM 2016-08-19 16:51:01 +03:00
Bruno de Oliveira Abinader
7d40d6347e [build] Re-enable 'circle-radius/antimeridian' @ test suite 2016-08-19 16:51:01 +03:00
Bruno de Oliveira Abinader
f77f6b720f [build] geojsonvt @ v6.1.3 2016-08-19 16:51:01 +03:00
Konstantin Käfer
effd853e79 [build] revert macOS deployment target to 10.10 2016-08-19 14:10:27 +02:00
Tobrun
0fd4c9ac9d [android] #6074 - increase default gradle memory usage during build (#6080) 2016-08-19 10:07:20 +02:00