Thiago Marcos P. Santos
9279b198df
[test] Added a test to make sure 404 does not trigger a retry
2017-02-07 12:17:40 +01:00
Thiago Marcos P. Santos
318690645e
[test] Added unit test for style request failures
2017-02-07 12:17:40 +01:00
Dane Springmeyer
09c6934791
regex is no longer used after 6c91c3e
2017-02-02 15:48:00 -06:00
Ivo van Dongen
8a5bff8ee6
[core] default value support in categorical function conversion
2017-02-02 09:44:42 -08:00
John Firebaugh
141e995806
[core] Add support for data-driven styling
2017-02-02 09:44:42 -08:00
Konstantin Käfer
62ea1f2185
[core] remove trailing whitespace, add trailing newlines, add space after //
2017-01-27 11:44:16 +01:00
Bruno de Oliveira Abinader
88b7fc3929
[Qt] Implement mapbox::sqlite::{Database,Statement} using QtSql
2017-01-23 19:06:53 +02:00
Bruno de Oliveira Abinader
80d72123df
[core] Move lastInsertRowId/changes to sqlite::Statement
2017-01-23 19:06:53 +02:00
John Firebaugh
d076ba0567
[core] Clean up merge_lines.cpp and add bounds checking
2017-01-18 13:38:05 -06:00
Bruno de Oliveira Abinader
49da57393a
[core] Remove platform-specific main.cpp from MBGL_TEST_FILES
2017-01-18 19:06:32 +01:00
John Firebaugh
531a1c3070
[core] Fix calculation of delayed transitions
2017-01-17 15:18:14 -06:00
Konstantin Käfer
6658268115
[core] abort early when placing a glyph in GlyphAtlas if the bitmap is invalid
2017-01-17 19:23:20 +01:00
Konstantin Käfer
b6c1119172
[core] harden Glyph PBF parsing
2017-01-17 19:23:20 +01:00
Konstantin Käfer
1fc8159481
[test] add tests for paths with leading slashes
2017-01-17 17:38:57 +01:00
Konstantin Käfer
4b0cb858ba
[core] include leading slash in URL.path
2017-01-17 17:38:57 +01:00
Konstantin Käfer
3b8e50a2a9
[core] add tests for function parsing
2017-01-16 10:28:21 +01:00
John Firebaugh
b65b1e2c48
[tests] Sidestep a gcc or gtest bug
...
https://github.com/google/googletest/issues/458
https://github.com/google/googletest/issues/322
Not seen in CI because of 0ef52d7f7c/scripts/travis_setup.sh (L17-L22)
2017-01-11 12:43:15 -08:00
John Firebaugh
e7778509c5
[core] Fix flickering caused by regression in #7586
...
It should be safe to invoke GeometryTileWorker::setData multiple times without invoking GeometryTileWorker::setLayers. Therefore GeometryTileWorker::redoLayout() must not consume the layers.
2017-01-10 10:15:22 -08:00
John Firebaugh
ea4c0b77c3
[core] Replace FeatureIndex::collisionTile with a method parameter
...
This reduces state and simplifies the test added in the prior commit.
2017-01-10 10:15:22 -08:00
John Firebaugh
40051fb68e
[core] Keep symbol and non-symbol buckets segregated
...
Discard prior symbol buckets only when new symbol buckets became available, in order to eliminate flickering when tiles are refreshed.
2017-01-10 10:15:22 -08:00
John Firebaugh
0c0064c050
[core] Get rid of user-specified refs
2017-01-04 17:38:33 -08:00
Minh Nguyễn
b35deb85bc
Happy new year! 🎉
2017-01-04 14:05:56 -08:00
John Firebaugh
083cee8956
[core] Correct boolean function interpolation
2016-12-22 18:14:00 -08:00
Ansis Brammanis
38b5cb0c77
[core, ios] replace altitude with fov
...
ported from -js: eb6c6596c6a7a61363d30356674e0002153b1d19
`altitude` was a terribly-named variable that was used to indirectly
control the fov. This should eliminate some confusion.
`altitude` was equivalent to `cameraToCenterDistance / height`
2016-12-21 15:46:36 -08:00
Konstantin Käfer
77db372123
[core] refactor URL parsing
2016-12-21 13:00:32 +01:00
Minh Nguyễn
a6b1773a44
Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-master
...
Also reran make style-code and manually discarded anything related to fill extrusion layers.
2016-12-20 12:41:40 -08:00
John Firebaugh
dad57df38e
[core] Fix symbol rendering for multipoints
...
Ports https://github.com/mapbox/mapbox-gl-js/pull/3763 and https://github.com/mapbox/mapbox-gl-js/pull/3806 .
2016-12-20 08:30:39 -08:00
Ivo van Dongen
bb6973ae90
[core] guard against duplicate layer ids
2016-12-13 10:03:05 -08:00
Ivo van Dongen
028db7feba
[core] guard against duplicate layer ids
2016-12-12 09:05:23 -05:00
Konstantin Käfer
dc1bda435f
[core] add util::isURL() for checking whether a string starts with a URL scheme
2016-12-07 10:46:43 +01:00
Minh Nguyễn
9456bec172
[test] Fixed Map-GetImage
...
Followup to #7096 .
2016-12-05 18:48:00 -08:00
Roman Blum
1045934d5e
[core, ios, macos] Add image accessor to MGLStyle ( #7096 )
...
* [core] Add interface to get image from sprite atlas
* [tests] Add tests for Map::getImage
* [ios, macos] WIP: get MGLImage for name from style
* [ios, macos] Fixed -imageForName:
Convert from sprite images to platform images using the existing encodePNG() function, which is also used for printing. Allow -imageForName: to return nil without an assertion failure. Added a basic test.
2016-12-05 17:16:13 -08:00
Ivo van Dongen
2c4e7ae70f
[core] guard against duplicate source id’s
2016-12-02 11:25:30 -08:00
John Firebaugh
7d16824fda
[core] Functions must have at least one stop
...
This is already enforced by the style validator in mapbox-gl-style-spec. Enforce it here too.
2016-12-01 09:00:06 -08:00
Chris Loer
5f29c3ba26
[core] Full support for line breaking bidirectional text using ICU bidi functionality.
...
- Trim whitespace from labels before determining their max-width for alignment.
- Fix crash on labels that contain lines with only a single character of whitespace.
2016-11-30 11:54:08 -08:00
Ivo van Dongen
60e451174f
[core] guard against duplicate source id’s
2016-11-30 19:35:29 +02:00
John Firebaugh
3d2d57cd30
[core] Assert valid range for color components
2016-11-29 06:52:24 -08:00
Konstantin Käfer
4fe071b518
[build] upgrade to variant 1.1.4 and dependencies
2016-11-28 18:02:00 +01:00
Ivo van Dongen
c810d16f0d
[android][build] core tests - initial setup for rendering tests
2016-11-27 18:50:24 +02:00
Ivo van Dongen
d2c9750b6d
[core] fix up online file source test so it compiles on android
2016-11-27 18:50:24 +02:00
Konstantin Käfer
e76de05402
[build] move logging to util
2016-11-22 20:58:51 +01:00
Konstantin Käfer
117863f111
[build] move headless rendering files to platform/default
2016-11-22 20:58:51 +01:00
Konstantin Käfer
3bc79e316e
[build] move default ThreadPool implementation to platform/default
2016-11-22 20:58:51 +01:00
Bruno de Oliveira Abinader
97288cae96
[test] Check all zoom levels in Annotations.SymbolAnnotation
2016-11-18 09:13:53 +01:00
John Firebaugh
38fcbe21d4
[core] Convert style properties to a tuple-based approach
...
This converts the style property classes (CirclePaintProperties and so on) to the same tuple-based approach as gl::Attribute and gl::Uniform. The approach is outlined in https://github.com/mapbox/cpp/blob/master/C%2B%2B%20Structural%20Metaprogramming.md .
The main advantage of this approach is it allows writing algorithms that work on sets of style properties, without resorting to code generation or manually repetitive code. This lets us iterate on approaches to data-driven properties more easily.
Another advantage is that the cascading, unevaluated, and evaluated states of a set of properties exist as independent structures, instead of individual properties holding their own state. This is a more functional approach that makes data flow clearer and reduces state.
2016-11-17 15:13:38 -08:00
Chris Loer
d4fc66af39
[core] Add minimal line breaking support for RTL text.
2016-11-17 14:33:03 -08:00
Chris Loer
40b0c8d076
[core] Use UTF-16 instead of UTF-32 for label features to avoid extra conversions and reduce in-memory size.
...
Continue to use uint32 as glyph ID to maintain Glyph PBF, even though we're only using 16 bits of that uint32.
Use std::codecvt instead of boost::unicode_iterator for UTF8->UTF16 conversions.
2016-11-17 14:33:03 -08:00
Bruno de Oliveira Abinader
ad38ff230b
[linux] Ensure EGL uses OpenGL ES 2.0 client API
2016-11-17 01:01:15 +01:00
Bruno de Oliveira Abinader
50f0f919c3
[test] Use shared headless display
...
Prevents some OpenGL implementations from bailing out.
2016-11-17 01:01:15 +01:00
John Firebaugh
d9862fa38c
[tests] Disable "ContinuousRendering" test; causing spurious CI failures
2016-11-15 13:55:16 -08:00