Commit Graph

2256 Commits

Author SHA1 Message Date
Ansis Brammanis
36d71c95dc move the point origin back to bottom-left 2015-08-25 11:59:02 -04:00
Ansis Brammanis
10f0d8d23a fix circle rendering 2015-08-24 20:33:19 -04:00
Ansis Brammanis
51c93867ae fix LatLng --> point for perspective views 2015-08-24 18:41:51 -04:00
Ansis Brammanis
99c5976498 port minor collision code cleanup, fix #1705
https://github.com/mapbox/mapbox-gl-js/pull/1261
2015-08-24 18:41:51 -04:00
Ansis Brammanis
19c256e349 make fill-image tests less sensitive 2015-08-24 18:41:51 -04:00
Ansis Brammanis
14dee43a71 add map.setPitch(pitch) and map.getPitch() 2015-08-24 18:41:51 -04:00
Ansis Brammanis
9e68e49c89 fix depth clipping in perspective view
The depth range is now set slightly differently. Both ends of the range
are shifted for each layer to solve some precision issues.

Some layers draw multiple things at different depths. For example, fill
layers draw fills and antialiasing separately. To handle this case, I
added setDepthSublayer(n) which a
2015-08-24 18:41:51 -04:00
Ansis Brammanis
0d68c4fedf load correct covering tiles in perspective view
port pointCoordinate from -js to convert screen points to tile
coordinates correctly in perspective view.
2015-08-24 18:41:51 -04:00
Ansis Brammanis
cef1b25444 port invert and transformMat4 from gl-matrix 2015-08-24 18:41:51 -04:00
Ansis Brammanis
554425b753 fix earthquakes in perspective view
Use higher precision for matrix calculations so that the map does not
jump around while zooming.
2015-08-24 18:41:50 -04:00
Ansis Brammanis
bc92c2de39 fix symbol collision detection in perspective view 2015-08-24 18:41:50 -04:00
Ansis Brammanis
494489f9a0 fix symbol rendering in perspective view 2015-08-24 18:41:50 -04:00
Ansis Brammanis
be36ce0198 fix fill antialiasing for perspective views 2015-08-24 18:41:50 -04:00
Ansis Brammanis
3027f8c0aa port line rendering fixes for perspective views 2015-08-24 18:41:50 -04:00
Ansis Brammanis
f0885d36ff port mat2 from gl-matrix 2015-08-24 18:41:50 -04:00
Ansis Brammanis
2535e669e2 hacks to see stuff 2015-08-24 18:41:50 -04:00
Ansis Brammanis
8d22e2bf01 port perspective projection matrix from -js 2015-08-24 18:41:50 -04:00
Ansis Brammanis
d513910712 port mat4.perspective and mat4.rotate_x 2015-08-24 18:41:49 -04:00
Lucas Wojciechowski
648b587959 Fixed missing labels and icons 2015-08-24 14:22:02 -07:00
John Firebaugh
0451aca37e Merge branch 'v8' 2015-08-24 10:47:30 -07:00
Lucas Wojciechowski
e97662972f Support v8 sprite, glyph, and style mapbox:// urls 2015-08-21 14:39:26 -07:00
Konstantin Käfer
e2fadf3157 don't clip glyphs with the frustum 2015-08-21 14:16:43 -04:00
Konstantin Käfer
5989ff4eb7 use the global animationTime instead of querying our own time
this reduces the amount of std::chrono::steady_clock::now() calls
2015-08-20 16:40:31 -04:00
Konstantin Käfer
fd98607c5f only update the render order array when there are changes to tiles 2015-08-20 16:13:46 -04:00
Konstantin Käfer
038b65eded move RenderPass check to the StyleLayer object 2015-08-20 16:13:45 -04:00
Ansis Brammanis
231e83b450 reverse label priority order 2015-08-20 11:59:08 -07:00
Ansis Brammanis
af9396a678 don't draw halo when halo-width is 0
669d891257
2015-08-20 11:59:08 -07:00
Ansis Brammanis
60e9712916 remove text-max-size and icon-max-size
port https://github.com/mapbox/mapbox-gl-js/pull/1419
2015-08-20 11:59:08 -07:00
Lucas Wojciechowski
a85fd681fc Support new glyph URL syntax 2015-08-20 11:59:07 -07:00
John Firebaugh
3598b166bd Remove constants
Fixes #2046
2015-08-20 11:59:07 -07:00
Bruno de Oliveira Abinader
98534631e0 Add circle render type
As specified in:
https://github.com/mapbox/mapbox-gl-style-spec/blob/v8-circle/reference/v8.json

Part of #1740.
2015-08-20 11:59:07 -07:00
Tom MacWright
d1100f34de Rename some style properties
symbol-min-distance ⇢ symbol-spacing
background-image ⇢ background-pattern
line-image ⇢ line-pattern
fill-image ⇢ fill-pattern
2015-08-20 11:58:57 -07:00
Tom MacWright
6df50dba45 Font stacks as arrays 2015-08-20 11:58:57 -07:00
Lauren Budorick
58d6b84b2b Check for v8 2015-08-20 11:58:57 -07:00
Ansis Brammanis
19d42acc84 remove unused gaussian shader 2015-08-20 11:38:56 -04:00
Konstantin Käfer
d400fe0c91 use glClear to draw solid background fills 2015-08-19 18:49:36 -04:00
Konstantin Käfer
c53a9fd00d fix debugging names on iOS 2015-08-19 18:21:12 -04:00
Konstantin Käfer
bb0ae37c25 disable debugging groups in non-debug builds
Use a macro to completely remove all instantiations of mbgl::gl::debugging::group so that we aren't executing the code to generate the arguments to the object instantiation
2015-08-19 18:21:12 -04:00
Konstantin Käfer
85908c3381 reset the ThreadContext after the last loop iteration 2015-08-19 17:47:05 -04:00
Konstantin Käfer
90bae75838 remove mutex from LineAtlas
we're only ever accessing it from the Map thread, so there's no need for a mutex, even less for a recursive one
2015-08-19 14:42:09 -04:00
Bruno de Oliveira Abinader
fa18f1afd0 Trigger a view invalidation upon resume
Causes view to repaint when returning from pause state, fixing the black
screen perceived in some scenarios.

Fixes #2071.
2015-08-19 04:54:07 -04:00
Leith Bade
a093182c27 Merge pull request #2030 from mapbox/2029-log-threadcontext
Fix ThreadContext to check for valid current pointer
2015-08-18 16:38:01 +10:00
Thiago Marcos P. Santos
b312820be8 Restore geojsonvt version to 995ffc72c5
It was downgraded on 34d1c023de.
2015-08-13 17:29:05 +03:00
Bruno de Oliveira Abinader
5ff855bb00 Fix Update flags in mbgl::Transform
Transform::{_moveBy,_setAngle} were returning Update::Nothing, causing
the render to not repaint. Replacing with Update::Repaint fixes the
issue.

Fixes #2036.
2015-08-13 10:17:08 +03:00
Bruno de Oliveira Abinader
ac9d5886f0 Added operator implementations for mbgl::Update enum class 2015-08-13 10:12:48 +03:00
Brad Leege
72aaf3934a Merge branch 'master' into 1856-material-take-2
# Conflicts:
#	android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java
2015-08-12 18:22:17 -05:00
Konstantin Käfer
21ec505648 add benchmark mode that shows the real frame time rather than the vsync time 2015-08-11 16:40:40 +03:00
Leith Bade
9534d6256b Fix ThreadContext to check for valid current pointer 2015-08-11 09:41:21 +10:00
Konstantin Käfer
0a527f623e don't constantly repaint by setting needsRepaint to false
fix by @brunoabinader
2015-08-10 22:39:08 +03:00
Brad Leege
34d1c023de #1856 - Initial conversion to Material Design components 2015-08-07 13:45:56 -05:00