Commit Graph

8854 Commits

Author SHA1 Message Date
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
Mike Morris
da02884433 node-v3.3.3 2016-09-06 20:10:30 -04:00
Thiago Marcos P. Santos
edec56e6c5 [node] switch to NodeRequest member fn callback
For (hopefully) better performance than creating a new v8::Context to
wrap each callback while still avoiding leaking memory with v8::FunctionTemplate.

Adds a JavaScript shim in front of module.exports.Map to wrap the
req.respond API internally and preserve the public callback-passing
API, while still exporting the correct prototype.
2016-09-06 18:14:22 -04:00
John Firebaugh
d6f667a5e7 [core] Observe visibility changes 2016-09-06 14:29:22 -07:00
John Firebaugh
6d770cb40f [core] Initial state of Source::Impl::enabled must be true
Until Style::recalculate() is called to check that there are no visible layers using the source, we have to assume there are. Otherwise, Style::isLoaded() can return a false positive.
2016-09-06 14:29:22 -07:00
John Firebaugh
8e2170c885 [core] Batch source updates 2016-09-06 14:29:22 -07:00
John Firebaugh
6c23a6a095 [core] Avoid triggering re-layout of fill annotation source 2016-09-06 14:29:22 -07:00
John Firebaugh
b4864ca9d5 [core] Trigger Source::Impl::reload when a filter or layout property is modified 2016-09-06 14:29:22 -07:00
John Firebaugh
fe2a26225f [core, ios, android, qt] Observe style layer mutations rather than requiring SDKs to use Map::update
This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation.
2016-09-06 14:29:22 -07:00
John Firebaugh
3a48c60813 [core] Add missing classed paint property getter 2016-09-06 12:52:14 -07:00
John Firebaugh
3635b9f147 [core] Prepare style observer interfaces for source reloading
* Renamed {Source,Tile}Observer::onNeedsRepaint to onTileUpdated. Messages should be in terms of what happened to the observed object, not in terms of what the observer needs to do. This also removes a confusing overlap of virtual methods on StyleObserver.
* Added style::Observer::onUpdate(Update). This is also a violation of the above rule, but I'm hopeful that it will disappear when update batching is implemented.
2016-09-06 12:52:14 -07:00
John Firebaugh
5b4f6335e3 [core] Add Source::Impl::reload 2016-09-06 12:52:14 -07:00
John Firebaugh
21dc12ee93 [core] Ensure that TileWorker can retain tileData after layout 2016-09-06 12:52:13 -07:00
John Firebaugh
5b8d90bf00 [core] Delete the now-unused ptr.hpp 2016-09-06 12:52:13 -07:00
John Firebaugh
0afd14ae29 [core] Eliminate use of util::ptr in GeometryTile* interfaces 2016-09-06 12:52:13 -07:00
John Firebaugh
1c51b43daf [core] Create GeoJSONTile{Layer,Feature} objects lazily
Avoids conversion to GeometryCollection and clipping for features that are not used.
2016-09-06 12:52:13 -07:00
Tobrun
d412f5d111 [android] - get firebase test lab results with gsutil (#6220)
* [android] - get results with gustily

debug

fix debug

debug fix

correct file path

remove duplicate ls

fix bash script + add deploy step + debug file system

install crcmod

zip output

correct option for zipping

add compression to output. This allows including subfolders

cleanup

remove json from artefact

always upload test results

always run step to true

* [android] - disable query rendered test

* fix name in test
2016-09-06 10:49:55 -07:00
Ivo van Dongen
e1a2ee733c [android] jni - fix boolean to JsonPrimitive conversion (#6256) 2016-09-06 17:58:28 +02:00