Commit Graph

2826 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
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
030234c7a6 [core] Rework invokeWithCallback so that the callback is last 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
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
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
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
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
Jason Wray
51b2033fce [ios] Fix jazzy doc generation failure and document MGLGeoJSONSource
Clang/Sourcekitten do not appear to like HTML tags in `@param` definitions.

Also:

- Wraps lines at 80 chars.
- Adds minimal docs for MGLGeoJSONSource so it will be seen by jazzy.
2016-09-02 21:14:56 -04:00
Jesse Bounds
52f23614b3 [ios] Remove iosapp test stub
The PR to add filter predicates (#6049) added logic to apply some
runtime styling to the iosapp as soon as the map finished loading.
This removes that logic.
2016-09-02 15:37:13 -07:00
Jason Wray
aff278ce52 ios-v3.4.0-alpha.4 2016-09-02 18:23:15 -04:00
Minh Nguyễn
05f129212d [ios] Updated changelog 2016-09-02 15:22:28 -07:00
Jesse Bounds
08f55af914 [ios, macos] Use NSDictionary for geojson source options.
This removes a previous implementation of geojson options that used
a new type to transfer the data around. Added in its place is
an options API that takes an NSDictionary that works similarly to
NSAttributedString and many other Cocoa APIs that take options.

The options parser now expects the developer to send values of the
type noted in the documentation and it simply converts the NSNumber
to the correct type (integer, double, or bool) for mbgl. However, an
exception is raised if the value is not an NSNumber.
2016-09-02 14:48:37 -07:00
Fredrik Karlsson
ad095e458d [ios, macos] fixes #5962 added geojson options to support clustering 2016-09-02 14:41:47 -07:00
Jesse Bounds
7e208c46ce [ios] Check for bool value with char
We convert NSNumbers (and NSStrings) to the appropriate mbgl value
so that we can use NSPredicates to  describe mbgl filters we want
to apply to style layers at runtime.

This change fixes an issue where
the conversion from an NSNumber that represented a bool was not
recognized as such. encode(bool) returns a 'c' or 'b' on 32 bit and
64 bit systems respectively and objCType of an NSNumber representing
a bool always returns 'c'. Now the implementation checks for 'c'
always and NSNumbers representing bool don't fall through and
trigger the exception.
2016-09-02 22:42:48 +02:00
Fredrik Karlsson
d77a13eb73 [ios] Added support for filters (NSPredicate)
[ios, macos] cleaned up filters

[ios] added a filter example

[ios] utest filters

[ios, macos] nested predicates

[ios] refactored

[ios] filter -> NSPredicate

[ios] fixed mbgl::Any/AllFilter -> NSPredicate

[ios] translate nested mbgl::NotIn filters

[ios] cleanup and added more utests

[ios] fixed a bug in the None filter conversion and improved utests

[ios, macos] doc

[macos] added missing category

[ios, macos] additional utests

[ios, macos] updated documentation
2016-09-02 22:42:05 +02:00
Cameron Mace
6a39cf5aae [android] Checkstyle fixes round 1 (#6234)
* removed last of hungarian notation from testapp and fixed other checkstyle issues

* added back MapboxMap for espresso
2016-09-02 14:48:49 -04:00
Jesse Bounds
0c4e51adf8 [ios] Silence MGLCalloutView related warnings in tests (#6231)
The annotation view test uses a fake MGLTestCalloutView that
declares conformance to the MGLCalloutView protocol. However,
several properties and a method were not implemented in the test
which caused several warnings that were visible if you compiled
the SDK tests. This change stubs out the properties and method
so the warnings go away.
2016-09-01 16:49:30 -07:00
Cameron Mace
5e8e00561d [android] introduce checkstyle (#6214) 2016-09-01 10:21:49 -04:00
Jason Wray
5a3bba6fc4 [ios] Add -ObjC to static podspec; update custom CocoaPods steps 2016-08-31 22:32:47 -04:00
Jason Wray
fcee1a85cd [ios] Allow implicit animation of annotation views
- Allows the user location annotation to again animate its movements while no tracking mode is enabled.
2016-08-31 15:55:34 -04:00
Tobrun
57e7cc97d0 [android] - fix breaking build on master (#6225)
* [android] - fix breaking build, by implementing mapboxMap on VideoViewActivity

* fix layout file for auto generated tests

* [android] fix resource id
2016-08-31 21:27:01 +02:00
Cameron Mace
fe28b57fe0 [android] added video view example (#6198)
* [android] added video view example

* removed map ready callback
2016-08-31 11:56:57 -04:00
Konstantin Käfer
1e2189266f [macos] Explicitly link the OpenGL framework for compatibility with macOS Sierra 2016-08-31 15:40:32 +02:00
Ivo van Dongen
3e71b84d28 [android][build] Only strip the resulting libraries (#6222) 2016-08-31 15:16:16 +02:00
Jason Wray
dd4d1a9927 [ios] Update INSTALL doc for -ObjC; use local podspec path
- Adds -ObjC flag for static lib.
- Fixes link to iOS SDK site.
- Pushes CocoaPods down the list.
- Changes CocoaPods to use local path, not HTTP.
- Emphasizes that INSTALL.MD is only for custom builds.
2016-08-30 21:23:34 -04:00
Jesse Bounds
c95ffe65a6 [ios] Update change log for centerOffset bug fix 2016-08-30 16:57:43 -07:00
Romain Quidet
4d74e73e5e [iOS] Using contentInset for setCenterCoordinate: and flyToCamera methods everywhere. 2016-08-30 16:37:45 -07:00
Jason Wray
c075386a98 [ios] Remove misleading MGLOverlay documentation (#6211) 2016-08-30 16:19:53 -04:00
Fredrik Karlsson
5588935412 [ios, macos] fix imports (#6209) 2016-08-30 17:57:36 +02:00
Jesse Bounds
22cc375da0 [ios] Avoid updating sprite backed annotations in view update method (#6199)
Previously, annotations backed by sprite had their frames updated
by the view backed annotation update method. This guards against
that by aborting an update for an annotation if an associated
view cannot be found.

In addition, some dead code is removed.
2016-08-29 16:20:29 -07:00
Jason Wray
c075a879b8 ios-v3.4.0-alpha.3 2016-08-29 14:17:18 -04:00