Minh Nguyễn
8179f2f6b2
[core] Restored shape annotation z-order
...
Shapes are once again always added to the top z-index.
Fixes #5691 .
Cherry-picked from 74fe96d261 .
2016-07-18 15:21:35 -07:00
John Firebaugh
e802aedb8c
[core, node, android] Remove used "base" parameter from setStyleJSON
2016-06-02 16:33:56 -07:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00
John Firebaugh
d7e1ecd19e
[core] Generalize Map::{add,remove}CustomLayer
2016-06-02 14:51:39 -07:00
John Firebaugh
1fb96d38a0
[tests] Tweak LineAnnotation test so that it reveals a bug; fix the bug
2016-06-02 14:47:35 -07:00
John Firebaugh
2c8d225cf2
[tests] Clean up annotation tests
2016-06-02 14:45:30 -07:00
John Firebaugh
0fba70d5a8
[all] Rationalize annotation API
2016-06-01 17:37:01 -07:00
John Firebaugh
8985b1311b
[core] Use geometry.hpp types for shape annotations
2016-06-01 17:36:50 -07:00
Minh Nguyễn
8ace0d37d1
[core] AnnotationTileLayer vends its own name ( #5163 )
...
Fixes #5159 .
2016-05-26 13:12:23 -07:00
Konstantin Käfer
ec70125e41
[core] move TileData and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
Bruno de Oliveira Abinader
4e04a107e8
Revert "[core] Do not clear custom layers upon style switch"
...
This reverts commit 8ec875b87c .
2016-04-21 20:15:18 +03:00
Bruno de Oliveira Abinader
8ec875b87c
[core] Do not clear custom layers upon style switch
2016-04-21 15:09:54 +03:00
Thiago Marcos P. Santos
a0146e372f
[tests] Accept [C|c]onnect as error message
...
Qt will spit "Connect" instead of "connect"
2016-04-20 20:55:51 +03:00
John Firebaugh
b55692132a
[tests] Use StubFileSource where a real FileSource is not required
2016-04-14 14:18:19 -07:00
John Firebaugh
204c7fee03
[core] Render from the main thread
...
Do not create a thread for the MapContext anymore.
2016-04-14 13:44:08 -07:00
John Firebaugh
1c7c5af69d
[ios] Run core unit tests in CI
2016-04-11 11:00:34 -07:00
John Firebaugh
f964e40e7e
[build] Refactor and simplify build system
...
* Main gyp files are now standardized as platform/<platform>/platform.gyp.
* Each platform gyp file defines appropriate loop_lib and headless_lib variables.
* Each platform gyp file includes mbgl.gypi, which defines base targets which may be useful to all platforms.
* CI targets are consistent across platforms: `make $(PLATFORM) && make test-$(PLATFORM)`.
* Renamed the "linux" test app to "glfw". It's now built in OS X CI.
* Android build flakiness is fixed.
* iOS CI builds the bench and iosapp targets.
* Mesa version is now in one place.
* CI scripts use bash "strict mode" and correct error handling.
* All build output goes to the build directory.
* Removed vestigial iOS/OS X/Android Travis scripts.
2016-04-07 18:01:02 -07:00
Konstantin Käfer
c587eefbb1
[ios] make unit tests work on iOS and iOS Simulator
2016-03-22 11:56:01 -07:00
Konstantin Käfer
db5ac4785f
[test] rearrange test files so they're not in the fixtures folder
2016-03-22 11:56:01 -07:00
Thiago Marcos P. Santos
b8b283588f
[core] Remove goOffline() from DefaultFileSource
...
Use the newly added NetworkStatus::Set().
2016-03-08 10:31:01 -03:00
John Firebaugh
d5eb5240f8
Revert "[gl] Updated CustomLayer tests"
...
These tests are intended to reflect how someone using the custom layer feature might actually write their callbacks. Therefore the callbacks should not use mbgl-specific classes.
This reverts commit 69112a2a09 .
2016-02-18 15:15:24 -08:00
Bruno de Oliveira Abinader
69112a2a09
[gl] Updated CustomLayer tests
2016-02-18 13:27:35 +02:00
John Firebaugh
ce1d8561b4
[tests] Add test for Map::updatePointAnnotation
2016-02-12 16:47:24 -08:00
John Firebaugh
cdedb66387
[core] Reimplement existing caching within an offline-capable database schema
2016-02-10 15:40:20 -08:00
John Firebaugh
dbb8e58aea
[core] Moving caching logic to DefaultFileSource
...
This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
2016-02-10 15:40:20 -08:00
Ansis Brammanis
d34f8eb674
[core][ios][osx][android] make SpriteImage accept PremultipliedImage
...
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)
2016-01-19 18:23:21 -08:00
Konstantin Käfer
5fe586633c
[test] ensure static rendering finishes when a tile can't be loaded
2016-01-15 12:48:23 +01:00
John Firebaugh
5a7d2fd60e
[core] Eliminate platform::assetRoot()
...
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.
2016-01-13 13:40:31 -08:00
John Firebaugh
86c8446d3a
[core] Simplify asset:// implementation
...
* 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.
2016-01-13 13:40:31 -08:00
Konstantin Käfer
7e815aed2e
[test] allow aborting rendering after a timeout
2016-01-08 13:23:01 +01:00
John Firebaugh
7a6076ea9d
[tests] Test with OnlineFileSource
...
When we introduce OfflineFileSource, the behavior of existing tests should
not change.
2015-12-23 14:55:12 -08:00
Minh Nguyễn
e304033552
[core] Fixed annotation icon replacement
...
Another pass at #3146 , including a unit test.
2015-12-15 21:04:15 -08:00
John Firebaugh
65b3220368
[core] Reduce custom layer API to lowest common denominator
2015-12-11 12:44:54 -08:00
John Firebaugh
bde07c8f0e
[core] Custom layers
2015-12-09 13:51:28 -08:00
Konstantin Käfer
d5fb535058
[core] add namespace comment to closing brace
2015-12-03 15:38:36 +01:00
Konstantin Käfer
dc620f48de
[core] Fix std::move() misuse that disables copy elision
2015-12-03 15:38:36 +01:00
John Firebaugh
8afa14fa78
[core] Map::setSprite ⇢ Map::addAnnotationIcon
...
Fixes #3084
2015-12-01 15:10:28 -08:00
Thiago Marcos P. Santos
7caaebb162
[tests] Fix/improve Asset utests
...
ASSET=zip make test-* was broken and now works.
Also added a test stressing concurrent file access.
2015-12-01 11:49:02 +02:00
John Firebaugh
12fc949006
[tests] Don't use icons from the style for annotations
2015-11-30 12:40:09 -08:00
John Firebaugh
1d33790dc0
[core] Fix image type of Map::renderStill
...
It's a premultiplied image. This implies that we were misusing encodePNG
in most cases, as we were passing premultiplied pixels which were then
interpreted as unmultiplied. I changed encodePNG to accept premultipled
pixels, and unpremultiply in the implementations.
2015-11-25 15:57:37 -08:00
John Firebaugh
ed5eb9edc1
[test] Add pixelmatch; use in annotation tests
2015-11-25 15:57:37 -08:00
John Firebaugh
0c1e378bc9
[core] Rewrite image handling
...
* Consolidate Image and StillImage
* Typecheck unassociated vs premultiplied images
* Rewrite default platform image decoding implementation
2015-11-25 15:57:36 -08:00
John Firebaugh
f2772309fe
Rewrite CustomSpriteImages test
...
Previous test was invalid; Map::setSprite is only for annotations.
2015-11-18 16:29:18 -08:00
John Firebaugh
54e08b1f83
[core] Eliminate use of ClassProperties for paint
2015-11-10 11:33:17 -08:00
John Firebaugh
a7219a77aa
[core] Don't crash when removing a shape annotation whose layer was never created
2015-10-30 14:36:07 -07:00
John Firebaugh
c46a8254c4
[core] Style-sourced shape annotation properties
...
This introduces the possibility to source the type and style properties
of a shape annotation from a designated layer in the style.
2015-10-22 15:27:53 -07:00
John Firebaugh
3afc8b4a29
[core] Introduce StyleLayer subclasses
2015-10-22 09:34:40 -07:00
John Firebaugh
df89de5cc5
[core] Rationalize style property classes: <type>{Paint,Layout}Properties
2015-10-22 09:21:30 -07:00
John Firebaugh
00a1c2343a
[core] Remove shape layers from the style ( fixes #2405 )
2015-10-20 13:54:20 -07:00
John Firebaugh
2066295e35
Install RapidJSON from mason
2015-10-01 11:40:47 -07:00