Commit Graph

8871 Commits

Author SHA1 Message Date
Tobrun
217c43d125 [android] - disable closable strictmode (#6327) 2016-09-15 15:43:52 -07:00
Konstantin Käfer
5f49f28d3e [build] add specific .clang-tidy file for things that use RapidJSON writers 2016-09-15 14:05:23 +02:00
Konstantin Käfer
d1d523686c [core] upgrade RapidJSON to 1.1.0 2016-09-15 14:05:23 +02:00
Konstantin Käfer
d6c958ba5f [test] use recursive wrapper for recursive variant types 2016-09-15 13:42:10 +02:00
Konstantin Käfer
ca8f32a914 [core] add explicit std::hash<mbgl::style::ClassID> implementation to appease GCC 2016-09-15 13:41:59 +02:00
Brad Leege
e49c96f05c [core] #3980 - Putting friend class SymbolLayout back 2016-09-14 16:57:54 -07:00
Brad Leege
d0f9ba4998 [core] #3980 - Switching Core GL instances of map to unordered_map 2016-09-14 16:40:20 -07:00
John Firebaugh
a9f5224664 [core] Avoid gratuitous SymbolBucket creation 2016-09-14 13:41:56 -07:00
John Firebaugh
c8217a8739 [core] Extract SymbolLayout from SymbolBucket
SymbolLayout lives on the worker thread and contains the persistent data needed for repeated placement. SymbolBucket contains the data generated during placement, and is transferred to the main thread for rendering.

This eliminates the risky sharing of GeometryTile::buckets between the main thread and worker thread during TileWorker::redoPlacement.

While here, rationalize the names of states a SymbolLayout may be in:

* Pending: Waiting for the necessary glyphs or icons to be available.
* Prepared: The potential positions of text and icons have been determined.
* Placed: The final positions have been determined, taking into account prior layers.

In TileWorker, all SymbolLayouts are stored in a single vector. Each SymbolLayout knows what state it is in, and TileWorker can easily determine how much progress it can make toward a final result.
2016-09-14 13:41:56 -07:00
Jason Wray
0bdd968d2b [core] Remove schema v4 migration path 2016-09-14 15:49:00 -04:00
Jason Wray
9237ad3c58 [tests] Add v3 & v4 database migration tests 2016-09-14 15:48:53 -04:00
Jason Wray
83d0b39adb [ios, macos] Remove changelog lines for WAL db change 2016-09-14 15:46:45 -04:00
Jason Wray
4daff7f2f8 [core] Revert SQLite WAL journaling 2016-09-14 15:45:47 -04:00
John Firebaugh
ffa8c48926 [core] Another band-aid (#6322) (#6333) 2016-09-14 12:04:37 -07:00
Jesse Bounds
922bb3bc37 [ios] Use content inset to calculate edge padding (#6313)
This reverts a previous change that used only the contentInset
when setting the center coordinate of the map view.
Instead of contentInset, edgePaddingForFollowing is used. This fixes
a regression that caused the user dot annotation to be misplaced
when the map was configured to show the annotation in any place other
than in the center of the map.

In addition, edgePaddingForFollowing is updated to account for
contentInset when it calculates its UIEdgeInsets. This fixes a bug
where the user dot would move to the center of the content frame
(when it was adjusted for content insets) but the map would not scroll
along with it yielding the effect of the user dot being misplaced.
2016-09-13 22:24:37 -07:00
John Firebaugh
8f3736fbfd [core] Band-aid to prevent GeometryTile::redoLayout race condition from causing a crash (#6322) 2016-09-13 15:40:55 -07:00
Brad Leege
1a2680b5b7 [android] #6321 - New Staging Server PK Access Token (#6323) 2016-09-13 14:26:21 -07:00
Antonio Zugaldia
d9306dde2e [android] #6317 - avoids NullPointerException when checking mMapboxMap.getUiSettings() (#6318) 2016-09-13 15:44:03 -04:00
Ivo van Dongen
ed4e37ba9f [android] HttpFileSource - rate limit 2016-09-13 14:21:38 +02:00
Ivo van Dongen
dc4659b4a8 [linux] HTTPFileSource - rate limit 2016-09-13 14:21:38 +02:00
Ivo van Dongen
0839df6a7a [qt] HttpFileSource - rate limit 2016-09-13 14:21:37 +02:00
Ivo van Dongen
c04e79ae48 [darwin] HttpFileSource - rate limit 2016-09-13 14:21:37 +02:00
Ivo van Dongen
290bd07a92 [core] OnlineFileSource - rate limit 2016-09-13 14:21:37 +02:00
Bruno de Oliveira Abinader
fdaf26b2c0 [qt] Fix bug in fromQStringList 2016-09-13 13:00:24 +03:00
Bruno de Oliveira Abinader
fdd114d275 [qt] Separate transition options accessors from class API 2016-09-13 13:00:24 +03:00
Bruno de Oliveira Abinader
cbd4115477 [ios, macos] Separate transition options accessors from class API 2016-09-13 12:38:59 +03:00
Bruno de Oliveira Abinader
9d2d2d3a91 [glfw] Separate transition options accessors from class API 2016-09-13 12:38:59 +03:00
Bruno de Oliveira Abinader
22fc8cdc1a [test] Added Map class accessors tests 2016-09-13 12:38:59 +03:00
Bruno de Oliveira Abinader
beb67fb7b2 [core] Separate transition options accessors from class API
Now the style class transition options have its own getter/setter, which
persists for each style until a new style is set.
2016-09-13 12:38:59 +03:00
Bruno de Oliveira Abinader
0cc062a5fd [core] Check if style exists prior to accessing via Map functions 2016-09-13 12:38:59 +03:00
Tobrun
4f23d0cda8 [core] - move wrap test (#6311) 2016-09-12 12:50:13 -07:00
Minh Nguyễn
b7aa872def [macos] Updated reference to MGLFilterTests 2016-09-09 14:02:56 -07:00
Jason Wray
e26fa4dd4c [core] Move SQLite logging setup to before database initialization
- Ensure that sqlite3_config() is always called before db init.
- Should only be called once, now.
- Move sqliteVersionCheck into mapbox::sqlite namespace.
2016-09-09 05:42:20 -04:00
John Firebaugh
29f4204d1c [core] Don't use std::move on forwarding references 2016-09-08 16:36:47 -07:00
John Firebaugh
030234c7a6 [core] Rework invokeWithCallback so that the callback is last 2016-09-08 16:36:47 -07:00
John Firebaugh
e4995e8d3a [core] Extract WorkTaskImpl from run_loop.hpp 2016-09-08 16:36:47 -07:00
Tobrun
a85f7540c7 6277 disable leak canary during instrumenation tests (#6294)
* [android] - disable leak canary during instrumentation tests

* update leak canary to beta2
2016-09-08 15:17:45 -07:00
Tobrun
75e1ce5d00 [android] - ensure access token is set when trying to load a style (#6280) 2016-09-08 15:17:11 -07:00
Tobrun
691dc6de79 [core] - add unit test for wrap (#6289)
* [core] - add unit test for wrap

* use double instead of integer
2016-09-08 15:16:42 -07:00
Tobrun
234f6caf7c [android] - run ndk-stack as part of the build (#6288)
* [android] - run ndk-stack as part of the build

* Set BUILDTYPE to debug

* [android] - correct path ndk-stack arg
2016-09-08 11:14:24 -07:00
Tobrun
36a744c96a [android] - throw concrete exception when generated test cases fail to read the Activity members (#6281) 2016-09-08 10:10:33 -07:00
Jason Wray
4ef8f815c9 [core] Implement SQLite error logging (#6291) 2016-09-08 13:01:19 -04:00
Jesse Bounds
4c8d61abf1 [ios, macos] Put MGLStyleLayer inits in respective classes
Previously, we declared MGLStyleLayer initializers in the MGLStyleLayer
protocol as optional methods. This made it easy to opt in and out
of initializers that did or or did not make sense for the subclass.
However, this approach was dangerous since it was easy for an
application developer to initialize an MGLStyleLayer subclass with an
init method that was actually not implemented in that class causing
an exception at runtime.

This commit moves the init methods that each subclass supports to
each subclass so xcode (and the compiler) help the developer avoid
the previously possible runtime exception.

In addition, a new init method is added that takes the source layer
and passes that on to `mbgl::style:Layer` (but only on classes
where this is possible in core). This allows an application developer
to style a specific source layer (i.e. the contour lines of the mapbox
terrain vector source).

Finally, this refactors MGLStyleLayer classes to use an MGLSource instead of a
string identifier for the source when initializing the style.
2016-09-08 09:17:35 -07:00
Konstantin Käfer
f3191dbbb4 [core] change bool *AlongLine to SymbolPlacementType 2016-09-07 17:56:38 +02:00
Konstantin Käfer
1845919c25 [core] change bool onRight to Side 2016-09-07 17:56:38 +02:00
Konstantin Käfer
3d960c8136 [core] change bool round to LinePatternCap 2016-09-07 17:56:38 +02:00
Konstantin Käfer
85e222c825 [core] change bool overdraw to PaintMode::Overdraw 2016-09-07 17:56:38 +02:00
Konstantin Käfer
ff0c895eaa [core] change bool wrap/repeating to enum class SpritePatternMode 2016-09-07 17:56:38 +02:00
Konstantin Käfer
426242fe41 [core] change bool to enum class bool TileLoadState 2016-09-07 17:56:38 +02:00
John Firebaugh
8edf995946 [android] Remove declaration of deleted method (#6276) 2016-09-07 08:42:19 -07:00