Commit Graph

2256 Commits

Author SHA1 Message Date
Konstantin Käfer
6a78a4763d [iOS] fix benchmarking app and update to style v8 2015-10-02 14:57:26 +02:00
John Firebaugh
2066295e35 Install RapidJSON from mason 2015-10-01 11:40:47 -07:00
Mike Morris
b46c102eb0 mason variant@1.0 2015-09-30 15:34:40 -07:00
bsudekum
7112d43609 [node] Handle tiles which 404 better 2015-09-29 18:20:22 -07:00
Adam Hunter
fa2d7453a5 Fix up of some naming issues, etc. 2015-09-29 15:07:39 -07:00
Adam Hunter
3f9f259619 Added GL logging utility 2015-09-29 15:07:39 -07:00
John Firebaugh
af392b9434 Rewrite annotation invalidation strategy
First, move style mutation code out of StyleParser and into AnnotationManager,
coalescing it with the mutation code for shape layers.

Second, allow AnnotationManager to keep track of stale tiles entirely
internally. There's no reason to pass sets of TileIDs around.

Third, correct the logic for invalidating the shape source. Since
AnnotationManager does not track shape invalidations on a tile-by-tile basis,
don't try to invalidate the shape source tile-by-tile.

Fixes #1675
Fixes #2322
Fixes #2095
2015-09-28 14:10:23 -07:00
John Firebaugh
24a5834428 Move updateAnnotationTiles[IfNeeded] to AnnotationManager 2015-09-28 14:10:01 -07:00
John Firebaugh
0c4c7ed901 map/annotation.* ⇢ annotation/annotation_manager.* 2015-09-28 14:10:01 -07:00
John Firebaugh
588fed9a9d Move Annotation class to cpp file 2015-09-28 14:10:01 -07:00
John Firebaugh
bc9aaa5e91 Move entire loop body to helper function 2015-09-28 14:10:00 -07:00
John Firebaugh
dd0e6e0257 Inline AnnotationManager::addTileFeature 2015-09-28 14:10:00 -07:00
John Firebaugh
028abaab00 Ensure that LiveTileData can be reparsed
Annotation tiles may become partially parsed just like regular tiles,
for example if a point annotation is added to the map before the style's
sprite has been loaded. In such cases, they need to be reparsed or the
annotation will not be rendered. Previously, the code path for reparsing
would be short-circuited by a dynamic_cast<VectorTileData*> followed by
a null check. This commit removes that case and adds (back) a virtual
reparse method to the TileData interface.
2015-09-28 14:10:00 -07:00
Konstantin Käfer
a84cf62424 [core] include api.mapbox.com in canonicalization
and move the canonicalization to mapbox.cpp since it's not specific to the SQLiteCache
2015-09-28 15:06:41 +02:00
Leith Bade
feae692dba Fix freezing on Android when rotating
Fixes #1941
2015-09-22 16:23:39 +10:00
Henry Dooley
2141d95196 [core] Annotation cleanup
Eliminate dead code and unecessary STL container usage. Refactor large
methods into smaller functional units.
2015-09-16 17:06:13 -07:00
Lucas Wojciechowski
311bf93abe Revert "[node] Enable npm to build mapbox-gl-native package from source"
This reverts commit 4e1ead344b.
2015-09-16 16:27:53 -07:00
Ansis Brammanis
f1edf1043b fix circle clipping bug
91d2e0ee5c
2015-09-16 12:15:43 -07:00
John Firebaugh
d83be11947 Don't leak GlyphAtlas textures (fixes #2338) 2015-09-16 10:04:23 -07:00
Lucas Wojciechowski
4e1ead344b [node] Enable npm to build mapbox-gl-native package from source
- Allow node bindings to be built if git submodules cannot be checked out
 - Made geojsonvt a mason package instead of a git submodule
 - Use globally installed mason if it cannot be checked out via git submodules
2015-09-15 11:17:53 -07:00
Bruno de Oliveira Abinader
a3ea4acb7c [core] convert remaining types to use OpenGL header defined variants 2015-09-15 13:22:07 +02:00
Bruno de Oliveira Abinader
c33a6bddc6 [core] GL types for buckets, textures, buffers 2015-09-15 13:22:04 +02:00
Bruno de Oliveira Abinader
05d01194b7 [core] GLObjectStore now uses GLuint 2015-09-15 13:22:02 +02:00
Bruno de Oliveira Abinader
b2fcde5e8b [shader] GL types for all Shader attributes 2015-09-15 12:50:20 +02:00
Bruno de Oliveira Abinader
1f1b3fbbc2 [shader] Shaders vertex and fragments are now GLchar* 2015-09-15 12:50:20 +02:00
Konstantin Käfer
5ef7011089 don't delete the shaders before the program
some GPU drivers have issues with deleting shader objects that are attached to programs. while this is allowed by the spec, it seems that some drivers are crashing nonetheless.
2015-09-14 15:16:16 +02:00
Konstantin Käfer
6db8e65394 don't validate the program
it's not in a state where validation always succeeds with all drivers, e.g. because textures might not be attached yet
2015-09-14 15:15:08 +02:00
Bruno de Oliveira Abinader
2156aa35ca [shader] bind() is now a pure virtual
- Shader::bind() now receives a GLbyte*
- BUFFER_OFFSET now uses GLbyte
2015-09-14 11:29:49 +03:00
Bruno de Oliveira Abinader
8d6b9696bf [shader] Moved 'a_pos' GL attribute to Shader
Avoids duplicated code in all derived classes.
2015-09-14 11:29:48 +03:00
Minh Nguyễn
60d0db0d2d Increased precision of coordinate conversion methods
Fixes #2230.
2015-09-11 11:56:25 -07:00
Ansis Brammanis
b4b56c951e increase precision for coordinate conversions
This fixes the earthquakes while panning at high zoom levels.

Cherry-picked from 9607171612c4a40e41eddaff5230ad571571a5b9 on the perspective-improved-gestures branch.
2015-09-11 11:56:25 -07:00
Justin R. Miller
0d899df9dd fixes #1675: abstract annotation tile refresh check/render; trigger post-sprite/sprite store load 2015-09-08 18:03:10 -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