Commit Graph

1825 Commits

Author SHA1 Message Date
Justin R. Miller
d57b47b1eb fixes #1675: abstract annotation tile refresh check/render; trigger post-sprite/sprite store load 2015-09-11 15:09:40 -07:00
Minh Nguyễn
0a172a21fd CameraOptions
Plumbed camera options all the way through to MGLMapView. Added a method that lets you specify a direction in addition to center point and zoom level.

Added Map::jumpTo() for parity with mapbox-gl-js. Replaced usage of Map::setLatLng() and Map::setLatLngZoom() with Map::jumpTo() or Map::easeTo() within MGLMapView. Replaced MGLMapView.pitch with MGLMapCamera for setting all supported degrees of freedom simultaneously. Simultaneously move and rotate with course.

Support customizable timing functions on iOS.

iosapp now persists an archived MGLMapCamera instead of separate viewpoint properties and also synchronizes user defaults on termination. This change implements persistence entirely in Objective-C, eliminating the use of the Objective-C++ implementation.

Fixes #1643, fixes #1834. Ref #1581.
2015-09-07 09:22:52 -07:00
Ansis Brammanis
cccae7d153 fix circles at very high zoom levels
5c8be4b848
2015-09-02 18:00:54 -04:00
Bruno de Oliveira Abinader
0ff7cf20e9 Get rid of MapData::{get,set}NeedsRepaint 2015-09-02 23:20:47 +03:00
Bruno de Oliveira Abinader
0b501e0566 Substitute nudgeTransitions with async view invalidation 2015-09-02 23:20:46 +03:00
Bruno de Oliveira Abinader
e920328223 Provide view invalidation call coalescion via uv_async_t 2015-09-02 23:20:46 +03:00
Bruno de Oliveira Abinader
227776dee0 Style no longer requires mainloop access 2015-09-02 23:18:29 +03:00
Mike Morris
322e1aa2c3 Merge pull request #2179 from mapbox/node
Node bindings
2015-09-02 15:46:43 -04:00
Mike Morris
45eb197bd3 remove debug logging and whitespace [skip ci] 2015-09-01 16:46:57 -04:00
Thiago Marcos P. Santos
244fe93f0e Bump geojsonvt version
It was downgraded (probably accidentally) by 60e9712916.
2015-09-01 16:49:35 +03:00
John Firebaugh
55d25a80a7 In still mode, don't load resources until a render request is made 2015-08-31 18:09:11 -07:00
John Firebaugh
abc1c84fb8 Merge branch 'master' into node 2015-08-31 16:45:21 -07:00
Mike Morris
6bfda4fcef local nvm? 2015-08-28 15:49:25 -04:00
Ansis Brammanis
d50ade7aa4 improve dashed and patterned line antialiasing
in perspective view. This is exactly the same approach used for regular
lines. I just forgot to implement it for these types of lines.
2015-08-27 17:42:27 -04:00
Ansis Brammanis
294b307cb3 fix line antialiasing adjustment bug
fix #2189

This puts an upper limit on how much lines can be blurred because of
their y position. It's a hacky fix but the entire way lines are
antialiased in perspective view is hacky.
2015-08-27 16:52:50 -04:00
Minh Nguyễn
0e456940b9 Merge branch 'master' into perspective-without-y-flip 2015-08-25 14:13:16 -07:00
Mike Morris
4540c3c0e8 View::swap -> View::beforeRender View::afterRender
To be able to resize the framebuffer on the map thread
in HeadlessView.
2015-08-25 14:39:49 -04:00
Bruno de Oliveira Abinader
765c4695d8 Revert "only update the render order array when there are changes to tiles"
This reverts commit fd98607c5f.

Fixes #2163.
2015-08-25 11:36:10 -07:00
Bruno de Oliveira Abinader
c7dfbec96e Make Bucket::uploaded an atomic bool
This class is called from multiple threads, so we better make this
synchronization flag atomic.
2015-08-25 11:36:10 -07:00
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