Commit Graph

2502 Commits

Author SHA1 Message Date
Tobrun
fd5ee40506 [android] #5631 - add a concrete java exception when creating a marker without the required position field.
[android] #5631 - updated test cases to handle invalid position on a Marker
2016-07-14 09:36:51 +02:00
Brad Leege
5fb0e878b4 [android] #5680 - Adding 1000 event cap to send telemetry data 2016-07-13 18:32:14 -07:00
jingsam
5300488883 Update README.md 2016-07-13 15:37:33 -04:00
Thiago Marcos P. Santos
389c7615eb [core] Revert workaround for std::atomic on ARMv5
Got fix on r12.

https://github.com/android-ndk/ndk/issues/31
2016-07-13 17:56:51 +03:00
Tobrun Van Nuland
b9c273d197 [android] #5649 - add a ViewPager example
[android] #5649 - add back pressed event for action bar home icon
2016-07-13 16:43:01 +02:00
Tobrun Van Nuland
9387523376 [android] #5649 - fixes fragment null pointer when creating a SupportMapFragment without a OnMapReadyCallback 2016-07-13 16:43:01 +02:00
Justas Medeisis
566c6cf618 [android] #5649 - Request MapView parents not to intercept scroll gestures. 2016-07-13 16:43:00 +02:00
Bruno de Oliveira Abinader
1cb59e20c4 [node] Added 'removeLayer' binding 2016-07-13 16:19:28 +03:00
Tobrun
3dacbdd42e [android] #5438 - add bearing to MyLocationView for the SDK camera object
[android] #5438 - integrate MyLocationView set bearing inside the MapView setBearing

[android] #5438 - invalidate the MapView instead of calling update from core.

[android] #5438 - add bearing MyLocationView to setBearing focal point on MapView

[android] #5438 - Get correct bearing when camera object is rotated around the z-axis, notify MyLocationView when camera position changes, update test utilities.

[android] #5438 - fixes compass tracking
2016-07-13 14:52:15 +02:00
Tobrun Van Nuland
081c61dcc2 [android] #5652 - fix PressForMarkerActivity setup to follow best practices of loading a style and initial location of a MapView as early as possible. 2016-07-13 14:48:55 +02:00
Tobrun
cbfc9bc33c [android] #5541 - removes requirement of MapboxAccountManager.start before setContentView.
[android] #5541 - add a MapboxAcountManagerNotStartedException when calling getInstance when not started.

[android] #5541 - fixes using access tokens in attributes & MapboxMapOptions

[android] #5541 - improved MapboxAccountManager exception message
2016-07-13 14:47:42 +02:00
Thiago Marcos P. Santos
cc3a81291a [android] Build release with -Os and -fvisibility=hidden
Optimize for size.
2016-07-13 13:50:50 +03:00
Bruno de Oliveira Abinader
06af750d23 [ios,macos] Update {Line,Fill}Annotation properties setter 2016-07-13 11:57:09 +03:00
Bruno de Oliveira Abinader
761c9d44b2 [android] Update {Line,Fill}Annotation properties setter 2016-07-13 11:57:09 +03:00
Brad Leege
a73c81cc55 [android] #5613 - Limiting location event latitudes and longitudes to 7 digits after the decimal place 2016-07-12 16:59:33 -07:00
Minh Nguyễn
08d0a9a0e2 Quadkey tokens in tile URL templates, limited WMS support (#5628)
* [core] Quadkey tokens in tile URL templates

Fixes #5485.

* [core] WMS tokens in tile URL templates

Fixes #822.

* [macos] Added WMS debug style

Added a style to the macosapp resource bundle that can be used to test WMS support. To use it, zoom in to somewhere in New Jersey, then go to View ‣ Custom Style and enter “wms.json”.
2016-07-12 10:57:18 -07:00
Aki Koskinen
63298066b1 [qt] if qmake isn't available, try qmake-qt5 (#5658) 2016-07-12 19:13:34 +03:00
Thiago Marcos P. Santos
86cebd4cca [core] Report conversion errors using std::string
char* increases the risk of pointing to a invalid reference. Qt had
to use a static variable as retainer to workaround.
2016-07-12 16:04:20 +03:00
Thiago Marcos P. Santos
462137a536 [Qt] Bind 'L' on the example app to runtime style example 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
5ad22bd672 [Qt] Implement a GeoJSON coverter from QByteArray 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
abeee2087c [Qt] Added add/remove style source method 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
abff8e42c1 [Qt] Added add style layer method 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
18c8830169 [Qt] Added set style filter method 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
b59070590b [Qt] Added set style paint properties method 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
e9259fc03e [Qt] Added set style layout properties method 2016-07-11 17:01:32 +03:00
Thiago Marcos P. Santos
46df5d58f9 [Qt] Added conversion functions for the runtime style API 2016-07-11 17:01:31 +03:00
Thiago Marcos P. Santos
03b2bb68ba [Qt] Avoid a deep copy on the network reply
QByteArray::data() may do a deep copy.
2016-07-11 17:01:31 +03:00
Thiago Marcos P. Santos
843fff99b5 [Qt] Fix build on Linux with clang-3.8
clang finds this construction ambiguous, go figure.
2016-07-11 17:01:31 +03:00
Bruno de Oliveira Abinader
65868b28cc [Qt] Janitor private headers 2016-07-11 17:01:31 +03:00
Thiago Marcos P. Santos
ff420efb58 [build] geojson@0.1.4-cxx11abi 2016-07-11 17:01:31 +03:00
Tobrun
caba8c11b9 [android] - remove duplicate bearing/direction API from MapView 2016-07-11 15:52:23 +02:00
Minh Nguyễn
8ca8e2c509 [ios, macos] Updated MGLFeature ID documentation
Since #5514, feature IDs may be integers, unsigned integers, floating-point numbers, or strings, not just unsigned integers.
2016-07-10 15:03:42 -07:00
Minh Nguyễn
d0766120ca [ios, macos] Document adding new symbols 2016-07-08 11:40:50 -07:00
Jesse Bounds
626cf54be2 Merge branch 'boundsj-merge-3.3.0.rc.1' 2016-07-08 09:30:22 -07:00
Thiago Marcos P. Santos
01f5b6e58d [node] Also Update::Classes when setting a paint property
Otherwise it has no effect. Tests might be working because a
Update::Classes is also scheduled when adding a new layer.
2016-07-08 16:27:16 +03:00
Thiago Marcos P. Santos
030928c0b8 [build] Fix build on Ubuntu 16.04 x86_64 2016-07-08 16:27:16 +03:00
Minh Nguyễn
aaa30c8a19 [macos] Revised keyboard shortcuts in macosapp
Followed up #5452 with some changes to keyboard shortcuts that ensure conformance to the HIG and avoid conflicts between menu items.
2016-07-08 11:35:27 +02:00
Jesse Bounds
23caa9f7aa Merge branch 'release-ios-v3.3.0' into master 2016-07-07 15:40:07 -07:00
Jesse Bounds
bb057409c7 Update podspecs for 3.3.0-rc.1 2016-07-07 13:17:17 -07:00
Jason Wray
3fa4f9379d [ios] Move cache.db to a subdirectory (#5601)
We cannot guarantee that the offline/ambient tile cache (cache.db) will be created in a timely manner, so it's safer to set the backup exclusion key on its containing directory.

But, because we placed cache.db in the base of the app's Application Support directory (where backups are expected to be allowed), we need to move cache.db into a directory that we control and can exclude from backups with impunity.

This is an amalgam of https://github.com/mapbox/mapbox-gl-native/pull/5578 (directory exclusion) and https://github.com/mapbox/mapbox-gl-native/pull/5585 (refactored URL methods, but without the new database size method).

Also:
* Prefix mapbox subdirectory with dot, for extra safety
* Update changelog entry with new ticket, less speculation
2016-07-07 12:11:08 -04:00
Konstantin Käfer
ab1face71f [ios] add OpenGLES framework so that we can use the GL debugger 2016-07-07 16:11:37 +02:00
Konstantin Käfer
e29a15eb52 [macos] add keyboard shortcuts to macosapp 2016-07-07 14:40:28 +02:00
Minh Nguyễn
e603cf46f1 [macos] Use gesture recognizer for context menu
NSView’s built-in context menu handling preempts non-right-click gesture recognizers, so preempt it with a right-click gesture recognizer that does essentially the same thing. With this change, two-finger double-tapping on a trackpad also zooms out, consistent with MapKit.

Fixes #5078.
2016-07-07 14:12:24 +02:00
Tobrun
d929e32217 [android] #5513 - make sure view is measured first before anchoring 2016-07-07 14:01:23 +02:00
Tobrun
85756f360e [android] - Resolves updating marker view position with SurfaceView 2016-07-07 14:00:05 +02:00
Young Hahn
71a3b1d0db [core] geometry@0.8.0 / geojsonvt@6.0.0 (#5514)
* [core] geometry.hpp 0.8.0

* geojsonvt @ 6.0.0

* Update platform deps, build scripts

* Perf optimizations/cleanup

* Rebase in geometry@080

* D.R.Y. etc

* Ensure fill annotation geometries have closed rings.

* Optimizations

* Update to geojsonvt @ 6.1.0 for clean handoff between geojson parsing and geojsonvt

* Apply close multi/poly geoms for line annotations as well
2016-07-06 17:29:34 -04:00
Fredrik Karlsson
d4f5a37c43 [ios] omit podspec for static lib (#5595) 2016-07-06 22:13:02 +02:00
Jesse Bounds
687013bc99 [ios] Add support for full Bitcode builds (#5586)
In https://github.com/mapbox/mapbox-gl-native/commit/
f791eb32b9 we simplified the package
script and intended to remove support for building the SDK without
Bitcode support. The intention was to use the ENABLE_BITCODE project
setting to do this and remove the control of that variable in the
script. However, since we use `xcodebuild build` this only uses
bitcode `marker` by default and causes a failure when an app that uses
the Mapbox SDK is archived.

This adds the `BITCODE_GENERATION_MODE` and `bitcode` value to the
necessary iOS SDK and mbgl and platform targets. If the SDK is compiled
with these flags set, it will be successfully processed in the bitcode
phase in an app archive operation.

This also removes the `BITCODE` flag from the Makefile since the
intention is to not support building the SDK without bitcode support
and the presence of that option might be confusing.
2016-07-06 08:09:10 -07:00
Thiago Marcos P. Santos
480e26c53f [android] Add support for timers on the main thread
Wake up the main thread run loop with a file descriptor event from a
thread that exists for this sole purpose.
2016-07-06 17:43:19 +03:00
Thiago Marcos P. Santos
2425cf4ef8 Revert "[android] Do not create Timers on Default main loops"
This reverts commit 13cd75f099.
2016-07-06 17:43:09 +03:00