John Firebaugh
b60b6c47c0
[core] Merge SQLiteCache into the platform library
...
OfflineFileSource will depend on SQLite too.
2015-12-22 12:09:14 -08:00
Thiago Marcos P. Santos
373916420a
[tests] Create less threads on the AsyncTask tests
...
So we open less fds as new versions of OSX have
a smaller limit (256).
2015-12-21 22:22:11 +02:00
Bruno de Oliveira Abinader
3e00ab1582
[core] Add more tests to on-demand source load
2015-12-17 18:15:06 -08:00
Bruno de Oliveira Abinader
9d3fe01991
[core] Tests for style with unused sources
2015-12-17 16:53:37 -08:00
Bruno de Oliveira Abinader
93725e062a
[core] Load sources only if there is at least one visible layer
2015-12-17 16:53:37 -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
Konstantin Käfer
95cef66e22
[core] change RapidJSON usage to use CrtAllocator and bump GeoJSON VT
2015-12-14 16:43:35 -08:00
Konstantin Käfer
2f973d0a7e
[core] parse GeoJSON source type
2015-12-11 16:23:42 -08:00
John Firebaugh
65b3220368
[core] Reduce custom layer API to lowest common denominator
2015-12-11 12:44:54 -08:00
Thiago Marcos P. Santos
37ca365469
[tests] Force classic locale on toString tests
...
Fix an issue where the test result can be affected
depending on the current locale settings of the
machine running the tests.
2015-12-10 18:25:51 -08:00
John Firebaugh
bde07c8f0e
[core] Custom layers
2015-12-09 13:51:28 -08:00
John Firebaugh
e04c5f6506
[core] Replace StyleLayerType with RTTI
2015-12-07 18:22:33 -08:00
John Firebaugh
0a0007e0ac
[core] More efficient layer cloning
2015-12-07 11:19:08 -08:00
Konstantin Käfer
478472e501
[core] add std::move to constructors
2015-12-03 15:38:36 +01:00
Konstantin Käfer
d5fb535058
[core] add namespace comment to closing brace
2015-12-03 15:38:36 +01:00
Konstantin Käfer
6feb89cbbc
[core] fix various errors reported by clang-tidy
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
e5181e2668
[core] Use optional where SpriteAtlas return values might not exist
...
Fixes #3162
2015-12-01 18:05:54 -08:00
John Firebaugh
8afa14fa78
[core] Map::setSprite ⇢ Map::addAnnotationIcon
...
Fixes #3084
2015-12-01 15:10:28 -08:00
Adam Hunter
e1091db45e
[core] Use a separate atlas and store for annotation sprites
...
Fixes #1488
2015-12-01 09:15:05 -08:00
John Firebaugh
58886842bc
[core] Move MapData storage to MapContext
...
This allows MapData members to hold GL resources which must be released
on the MapContext thread -- necessary for the following commit.
2015-12-01 09:15:05 -08:00
John Firebaugh
f27c28b6c4
Partially revert "[core] Source should receive a ref to MapData just once"
...
This partially reverts commit d55aa7929c .
2015-12-01 09:07:03 -08:00
Thiago Marcos P. Santos
3d07aaf95d
[core] Don't link with libuv on components not using it directly
2015-12-01 11:49:02 +02: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
Thiago Marcos P. Santos
c117b7e3f4
[core] Removed libuv dependency from AssetFSContext
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
8d3fd199b2
[tests] Add utests for ThreadLocal
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
cb06526b10
[tests] Remove libuv dependency from the tests
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
ff47838474
[tests] Add utests for Timer
2015-12-01 11:49:01 +02:00
Thiago Marcos P. Santos
6762cd0ca9
[tests] Add utests for AsyncTask
2015-12-01 00:00:09 +02:00
John Firebaugh
12fc949006
[tests] Don't use icons from the style for annotations
2015-11-30 12:40:09 -08:00
Bruno de Oliveira Abinader
d55aa7929c
[core] Source should receive a ref to MapData just once
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
31fd2822f5
[core] Replace time_t with std::chrono::seconds
...
Added aliases for std::chrono typedefs (eg. 'Seconds' for
std::chrono::seconds). These aliases are used together with templated
helper functions to replace time_t with std::chrono::seconds for most
cases, in particular for 'modified' and 'expires' values in Response.
2015-11-27 17:47:02 +02: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
54eff4b4c1
[core] Add image tests
2015-11-25 15:57:36 -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
Minh Nguyễn
e3992c41c3
[iOS] Wait for didChange notifications instead of timer
2015-11-25 14:39:32 -08:00
John Firebaugh
36081f6486
[core] For binary image data use uint8_t, not char
2015-11-23 17:28:44 -08:00
Konstantin Käfer
b5f7cafab4
[core] more robust max-age parsing
2015-11-20 14:39:44 +01:00
John Firebaugh
d08861daf4
[core] Force style-sourced annotations to be visible
2015-11-19 19:50:29 -08:00
Minh Nguyễn
dc5a55c670
Fixed Linux builds; code style
2015-11-19 12:35:28 -08:00
Minh Nguyễn
a983dc8259
Ported replaceTokens() tests from GL JS
2015-11-18 19:06:33 -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
Bruno de Oliveira Abinader
adfac6f061
[core] Added ConstrainMode::{HeightOnly,WidthAndHeight}
...
ConstrainMode gives flexibility to our engine to choose between
constraining both vertically and horizontally, or just vertically
(default behavior).
Constrain in both axis means we can no longer pan the map beyond the map
boundaries. This fixes an issue where e.g. annotations disappear upon
crossing the map boundaries.
2015-11-18 09:37:27 +02:00
Bruno de Oliveira Abinader
cb9b397985
[core] Fix LatLngBounds default coordinates
...
LatLngBounds southwest and northeast coordinate points were inverted, so
they could be extended via LatLngBounds::extend(). However, this looks
confusing and error-prone.
A static LatLngBounds::getExtendable() is added to address cases when we
want to extend LatLngBounds.
2015-11-18 09:37:27 +02:00
John Firebaugh
7137239cbd
[core] Use std::unique_ptr for FileSource request
2015-11-16 12:25:47 -08:00
John Firebaugh
1caf89c32b
[core] Pass a value to response callback, not a reference
2015-11-16 12:25:47 -08:00
Thiago Marcos P. Santos
36581f3d30
[core] Do not pass uv_loop_t around
...
This should be abstracted by util::RunLoop
2015-11-16 12:25:47 -08:00
John Firebaugh
f9ebe54a63
[core] Merge Sprite into SpriteStore
2015-11-12 13:03:14 -08:00
John Firebaugh
1e350b7ea4
[core] Reorganize sprite related files
2015-11-12 13:03:14 -08:00