Commit Graph

2256 Commits

Author SHA1 Message Date
Minh Nguyễn
97c143a338 [core] Fly across the meridian or antemeridian, whichever is shorter
ref mapbox/mapbox-gl-js#1853
2015-12-19 20:33:18 -08:00
Minh Nguyễn
af9de6c0ac [core] Refined and commented flyTo
Rewrote the flyTo implementation to more closely match GL JS’s implementation and the paper on which it is based.

Rewrote CameraOptions documentation. Only document units for generic types like double. The semantics of LatLng and Duration are already baked into the types; one just needs to look up the types’ definitions. Also, the […) is set notation, so the braces are supposed to be mismatched.

Fixes #3296.
2015-12-19 20:31:40 -08:00
John Firebaugh
ec5afdd8b7 [core] Merge default_file_source_impl.hpp into default_file_source.cpp
After previous refactors, no other files include default_file_source_imp.hpp.
2015-12-18 15:48:20 -08:00
Brad Leege
925687ab06 [android] #3244 - Removing debug log statements 2015-12-18 14:39:02 -06:00
Brad Leege
f7d1a40350 [android] Camera API 2015-12-18 11:33:40 -08:00
John Firebaugh
e2ad0e008a [core] Fix background-pattern origin
Regressed in 6e41664cb0. This restores it
to the same behavior as gl-js, backed by test-suite tests.
2015-12-18 10:46:10 -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
Bruno de Oliveira Abinader
5a63ce5576 [core] Avoid loading source if a source request is currently ongoing 2015-12-17 16:53:37 -08:00
John Firebaugh
bf37904883 [core] Unbind current VAO before calling custom layer render function 2015-12-17 15:15:55 -08:00
John Firebaugh
fd248c1894 [core] Don't crash when destroying a copied CustomLayer 2015-12-17 15:15:55 -08:00
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