Commit Graph

2046 Commits

Author SHA1 Message Date
John Firebaugh
110f1ec796 [ios, android] Add methods to remove a custom layer 2015-12-17 15:15:55 -08:00
Minh Nguyễn
986e0ae39e [core] Added special case for atomic flyTo()
startTransition isn’t well-suited to atomic transitions, which are expected to be synchronous and end up at the final state.
2015-12-17 10:24:58 -08:00
John Firebaugh
8a17d30c50 [android] Custom layer bindings 2015-12-16 11:03:32 -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
Thiago Marcos P. Santos
0f37b670ba [core] Do not use std:: namespace for log2()
As some versions of libstdc++ don't have it.
2015-12-15 18:23:45 -08:00
Romain Quidet
b8be1f0632 code review updates: sprite_atlas brackets and nullable removed for reuseIdentifier of annotationImage 2015-12-15 16:36:17 -08:00
Romain Quidet
af45d87e54 2210: Sprites can be removed / updated correctly 2015-12-15 16:36:17 -08:00
Minh Nguyễn
e1854f0f26 [core] Corrected flying trajectory; pitched flight
Corrected some fairly opaque code that was incorrectly ported from GL JS the first time around in #3171, causing the trajectory to extend far into the Earth’s orbit. Also transition pitch while flying, call transition frame/finish callback functions, and recognize the same “speed” and “curve” parameters that GL JS does.

Fixes #3296, fixes #3297.
2015-12-15 12:52:13 -08:00
Konstantin Käfer
2700ea87a4 [core] fix font rendering at the top edge of the viewport 2015-12-15 11:41:58 -08:00
Konstantin Käfer
4fc8226838 [core] allow changing the orientation
You can now change the orientation of north to be to the right, bottom, left in addition to the default of top
2015-12-15 11:41:58 -08:00
John Firebaugh
4a803f1a78 [core] Don't use glClear optimization for layers that aren't the bottommost
Fixes #3292
2015-12-14 17:01:16 -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
John Firebaugh
9b8f5d3be1 [core] Fix another place GL state was required but not set 2015-12-14 15:50:42 -08:00
Thiago Marcos P. Santos
9af7594d61 [core] Use global namespace on some <cmath> functions
Improves compatibility as some old std libs don't have them
on the std:: namespace.
2015-12-11 17:12:31 -08:00
Konstantin Käfer
8d711e9c80 [test] update test suite to include more comprehensive GeoJSON tests 2015-12-11 16:23:43 -08:00
Konstantin Käfer
c4a01d51ea [core] don't fail on invalid inline GeoJSON data 2015-12-11 16:23:43 -08:00
Konstantin Käfer
0f9922cff5 [core] create GeoJSON tiles from inline GeoJSON in sources 2015-12-11 16:23:42 -08:00
Konstantin Käfer
2f973d0a7e [core] parse GeoJSON source type 2015-12-11 16:23:42 -08:00
Konstantin Käfer
132b68e4fc [core] split Source parsing into separate functions 2015-12-11 15:25:12 -08:00
Konstantin Käfer
2b9f20461a [core] move SourceInfo to its own file 2015-12-11 15:25:12 -08:00
John Firebaugh
65b3220368 [core] Reduce custom layer API to lowest common denominator 2015-12-11 12:44:54 -08:00
Konstantin Käfer
93c000dd18 [core] viewport is handled by embedding applications 2015-12-10 14:16:11 -08:00
Vladimir Agafonkin
bd56c8634b [core] update annotation simplification [skip ci]
This matches VT default
https://github.com/mapbox/tilelive-bridge/commit/6bd5b3cc68e86990cc9cf2b
fde5e956373cb5b0c
2015-12-10 13:16:40 -08:00
Vladimir Agafonkin
b44331245a [core] update geojson-vt options
- fix the code to use the same simplification tolerance
- remove outdated indexMaxZoom/Points values and rely on default
- bump buffer 2x to fix bleeding linecaps on thick lines
2015-12-10 12:59:49 -08:00
Konstantin Käfer
da7b6bb8b9 [core] upgrade to GeoJSON VT 3.0.0 2015-12-10 12:54:58 -08:00
Konstantin Käfer
655b777635 [core] don't rebuild shaders unless they change 2015-12-10 11:59:51 -08:00
Adam Hunter
095a8be300 Implementation of flyTo. 2015-12-09 17:14:22 -08:00
John Firebaugh
bde07c8f0e [core] Custom layers 2015-12-09 13:51:28 -08:00
John Firebaugh
45c7b472ad [core] Ensure GL state is set to necessary values in more places 2015-12-09 12:10:23 -08:00
Konstantin Käfer
7bfeaca85c [core] Reverse direction of line-offset 2015-12-08 10:49:23 -08:00
John Firebaugh
e04c5f6506 [core] Replace StyleLayerType with RTTI 2015-12-07 18:22:33 -08:00
John Firebaugh
203b443d26 [core] Avoid making a new copy of layers for redoPlacement 2015-12-07 11:19:08 -08:00
John Firebaugh
cdd129335c [core] Make Paint/LayoutProperties constructor explicit 2015-12-07 11:19:08 -08:00
John Firebaugh
0a0007e0ac [core] More efficient layer cloning 2015-12-07 11:19:08 -08:00
John Firebaugh
47be1f5774 [core] Remove unused header 2015-12-03 12:44:43 -08:00
John Firebaugh
398ab663be [core] Clean up Painter 2015-12-03 12:44:43 -08:00
Konstantin Käfer
964a1e7b62 [core] rudimentary support for offsetting lines 2015-12-03 11:41:53 -08:00
Konstantin Käfer
c279fb1717 [core] throw values, catch references 2015-12-03 15:38:36 +01:00
Konstantin Käfer
0c351eb523 [core] use default instead of empty function body 2015-12-03 15:38:36 +01: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
John Firebaugh
8a66b7047f [core] Remove mutex from Style
There's no cross-thread sharing to be protected here.
2015-12-01 11:16:57 -08:00
John Firebaugh
b7674040ab [core] Privatize layers and sources 2015-12-01 11:16:57 -08:00
John Firebaugh
bafbf6c04b [core] Don't share util::ptr<StyleLayer> across threads 2015-12-01 11:16:57 -08:00
John Firebaugh
96f5ae7cb8 [core] Don't share Style& across threads 2015-12-01 11:16:57 -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