Commit Graph

16768 Commits

Author SHA1 Message Date
Jesse Bounds
d4271d993e [core] Compare unsigned int to unsigned int to pass tidy check (#5986) 2016-08-12 17:08:52 -07:00
Ivo van Dongen
ddf0d25845 [android] #5978 - fix number property filters [ci skip] 2016-08-12 18:47:05 -04:00
Minh Nguyễn
e147887e35 [core, android, ios, macos] Replaced getPointAnnotationsInBounds() w/ queryPointAnnotations() (#5165)
queryPointAnnotations() accepts a screen rectangle instead of a geographic bounding box, so marker hit testing works at the edges of a rotated, tilted map view.

Fixes #5151.
2016-08-12 15:45:18 -07:00
Tobrun
272ec0c30b [android] #5867 - backwards compatible progress bar 2016-08-12 17:58:27 -04:00
Tobrun
b264c5cddb [android] #5963 - fixes location tracking mode activity disables location when rotated 2016-08-12 17:46:54 -04:00
Jason Wray
ff5d60ecee [ios] Exclude NSData category's header from dynamic framework
This private category on NSData is for gzip compression, which is only used internally.
2016-08-11 20:11:14 -04:00
Tobrun
0ae941d2a8 [android] #5934 - resolves memory leaks on animators + location listeners 2016-08-11 18:13:12 -04:00
Minh Nguyễn
a3e20bae32 [ios, macos] Updated changelogs 2016-08-11 14:07:38 -07:00
Jesse Bounds
07aaaa08cf 3.4.0-alpha.1
Update changelog and bump version in the podspecs.
2016-08-11 11:42:53 -07:00
Minh Nguyễn
9a96877742 [ios, macos] Upgraded project build settings for Xcode 8 (#5935)
Set CLANG_WARN_INFINITE_RECURSION and CLANG_WARN_SUSPICIOUS_MOVE as recommended by Xcode 8.
2016-08-11 10:52:18 -07:00
Fredrik Karlsson
2354c87411 Runtime styling API for iOS/macOS (#5727)
* [ios] wip runtime styling

* [ios, macos] Outlined header templates

* [ios, macos] cleanup and use appropiate data types

* [ios, macos] removed refs to mbgl and added convenient color methods on UIColor and NSColor

* [ios, macos] updated header template, included doc string

* [ios, macos] outlined template for layer implementation files

* [ios, macos] moved script to platform/darwin and updated comments

* [ios, macos] Cleaned up the implementation template

* [ios, macos] removed unused function and added support for more datatypes

* [ios, macos] overhauling the type protocols

* [ios, macos] removed unnecessary style classes

* [ios, macos] added support for more types

* [ios, macos] fixed string and number prop values

* [ios, macos] enum getters

* [ios, macos] added removeLayer() and removed unused layer ref

* [ios, macos] fixed remaining layer types and converted style layer into a protocol

* [ios, macos] fixed addLayer() and added example for line layer

* [ios] GeoJSON source now works

* [ios] fixed raster layer and raster source

* [ios] fixed attr prop number and outlined prop function

* [ios] wip functions

* [ios] bool and float function fix

* [ios] cleanup

* [macos] fixed support for macos

* [ios] fixed string functions

* [ios] extended array functions

* [ios] added tests and fixed a few bugs

* [ios] less verbose functions and improved tests

* [ios, macos] Removed unnecessary use of default arguments

Default arguments aren’t supported in Node v4, and they aren’t needed here anyways, because we’re only testing for truthiness.

* [ios, macos] Enum setters

Rely on a macro instead of category methods to specialize the setter implementation for enum attributes, since generic types are disallowed in Objective-C method signatures and mbgl::style::PropertyType must be type-qualified.

* [ios, macos] Got macOS closer to parity w/ iOS

Added various classes and test classes to the macOS workspace. Also fixed lots of compiler errors and updated macosapp runtime styling example to use the new dictionary syntax for function stops.

Updated all conversions from Objective-C stops to C++ stops to enumerate over the dictionary. Fixed compiler errors in enum setter implementations.

Also corrected path to script in generated file comments.

* [ios, macos] Added EJS templates to project

* [ios, macos] Code formatting

Made code format more consistent.

* [ios, macos] Spelled out ID

Cocoa convention is to always spell out “ID” as “identifier”, in part to avoid confusion with the id keyword. Also, URL is capitalized in most contexts, including property names.

* [ios, macos] Grouped related headers together

* [ios, macos] Cleaned up layer transformation

Also added support for converting background layers into Objective-C.

* [ios, macos] Cleaned up tests

Also made the tests work on macOS by introducing a new window to host the map.

* [ios, macos] Replaced TODOs with #warnings

* [ios] convert array based property values

* [ios, macos] color function/undefined getter

* [ios, macos] fixed function/undefined getters for bool and float properties

* [ios, macos] more function/undefined property getters

* [ios, macos] more type conversion and cleanup

* [ios, macos] disable macos runtime styling tests for now

* [ios, macos] cleaned up style code script

* [ios, macos] more type conversion

* [ios] added a base layer to handle visibility min/max zoom

* [macos] fixed base layer

* [ios, macos] use accessor methods

* [ios, macos] cleanup

* [ios, macos] add geojson to ios and macos

* [macos] rebase fix

* [ios, macos] fixed enum getters and added tests for enums

* [ios, macos] added an update method to base layer

* [ios, macos] added some documentation

* [ios, macos] docs

* [ios, macos] removed refs to filters for now

* [ios, macos] various tail work

* [ios, macos] missing import and incorrect type
2016-08-11 13:14:45 -04:00
Amy Lee Walton
b0cb8715ed CJK overflow - update to match gl-shader (#5908)
* update vertex array ushorts

* update atlas size

* testing latest cjk test-suite branch

* update shader ref

* update shaders

* update icon buffer

* shaders

* updated tests

* buffer fix

* updated make tests

* annotation expected updates

* final push

* final fonts

* a_data1 removal

* remove cjk-mixed test

* hiring threshold for cjk-chinese

* update to new test suite

* Rename a_data2 to a_data in sdf and icon shaders

* update test-suite sha
2016-08-11 09:49:36 -07:00
Jesse Bounds
89190f8d89 [ios] Account for center offset when tapping annotation views (#5931)
This adjusts the tap point for the map's single tap gesture
recognizer to use the coordinate to point translated point of the actual
annotation the view represents. This fixes an issue where views that
were offset in the point coordinate system were not selected when
tapped since their associated annotations were actually at the origin
of the offset.
2016-08-11 09:28:24 -07:00
Jesse Bounds
d782fc952f [ios] Guard against nil data task (#5932) 2016-08-11 09:23:58 -07:00
Cameron
c354ae523a [android] - updated mas in testapp 2016-08-10 14:45:45 -04:00
Tobrun
532c659b22 [android] javadoc cleanup part 2 2016-08-09 20:48:00 -04:00
Tobrun
78387e9167 [android] fix location permissions already accepted 2016-08-09 18:50:51 -04:00
Tobrun
ddcd1f9ae0 [android] #5889 - update info window location when info window content is being refreshed 2016-08-09 14:37:56 -04:00
Tobrun
63efa9bf7d [android] #5880 - javadoc cleanup part one 2016-08-08 21:51:52 -04:00
Jason Wray
82f19b94f7 Merge branch 'release-ios-v3.3.0'
After v3.3.4.
2016-08-08 17:31:11 -04:00
Jason Wray
c64a0c2486 ios-v3.3.4
Bump version number and update changelog.
2016-08-08 15:25:20 -04:00
Tobrun
7597a050b4 [android] - fix scheduled build with cmake dependency. 2016-08-08 12:30:12 -04:00
Ivo van Dongen
d9145f504b [android] #5887 - Custom layer crash fix + updated test case 2016-08-08 11:33:31 -04:00
Ivo van Dongen
66d8c00376 [android] #5886 - added style code generation for android back in 2016-08-08 09:05:30 -04:00
Ivo van Dongen
5ac95b9dcf [android] #5885 - fix invalid jobject error and some build system updates 2016-08-08 08:54:58 -04:00
Tobrun
d9873c0459 [android] #5888 - handle location permissions for non User Location category features
[android] #5888 - setZMediaOverlay on overlain SurfaceView
2016-08-08 06:58:50 -04:00
Jason Wray
ae88c01c94 [ios] Hit test the user location annotation dot specifically
Rather than try to exclude layers in the touch hit test, this
specifically only checks against the main layer for the user dot or
puck.

Back-port of e4a9173a2a5c585dda3fa7a0f955cff1552f8d25.
2016-08-06 17:59:35 -07:00
Mike Morris
91fd87f2a0 [node] add docs on publishing releases 2016-08-06 19:03:46 -04:00
Tobrun
4fa179cce1 [android] - move MyLocationView under static overlays as logo, attribution and compass 2016-08-06 14:00:37 -04:00
Tobrun
42c7fa1f39 [android] - update CHANGELOG.md for 4.2.0-beta.1 release 2016-08-06 13:58:06 -04:00
Thiago Marcos P. Santos
0c460a5590 [android] Refcount the view activations
Fixes #5836
Fixes #5721
2016-08-06 12:58:59 -04:00
Tobrun
016157c39e [android] - javadoc fixes breaking the release build 2016-08-06 12:32:55 -04:00
Ivo van Dongen
ea958c3f46 [android] - fixed style api unit tests 2016-08-06 12:32:42 -04:00
Ivo van Dongen
b4c51dd792 [android] - Fix crash on dalvik due to missing finalizers 2016-08-06 12:32:25 -04:00
Cameron
70c21da06b [android] improved and fixed compass tracking 2016-08-05 16:37:39 -04:00
Konstantin Käfer
cf047b4f95 [build] forward V=1 to ninja builds 2016-08-05 11:42:22 +02:00
Konstantin Käfer
3cc3461cb5 [build] Use the JNIDIR as the platform string, since that's what Android Studio uses 2016-08-05 11:42:22 +02:00
Konstantin Käfer
da37ba1822 [build] add missing files to Android build 2016-08-05 11:42:22 +02:00
Konstantin Käfer
131cd8a547 [build] Fix Qt4 build on OS X 2016-08-05 11:42:22 +02:00
Konstantin Käfer
94ceeb739d [build] fix iOS packaging 2016-08-05 11:42:22 +02:00
Mike Morris
87c1174c06 [node] don't override BUILDTYPE in npm install 2016-08-05 11:42:22 +02:00
Thiago Marcos P. Santos
75ca6d9bdd [build] Workaround automoc issue on some cmake versions 2016-08-05 11:42:22 +02:00
Konstantin Käfer
95b6d48b71 [build] use cmake script bundled with Mason 2016-08-05 11:42:22 +02:00
Ivo van Dongen
6ccdd7d481 [build] copy custom-layer-example.so to the right sub-module 2016-08-05 11:42:22 +02:00
Konstantin Käfer
163fc3c113 [build] fix various CI builds 2016-08-05 11:42:22 +02:00
Konstantin Käfer
140908568b [build] make android targets .PHONY and adhere to naming scheme 2016-08-05 11:42:22 +02:00
Konstantin Käfer
e46b580c67 [build] unify naming of Makefile targets
`make foo` just builds
`make run-foo` builds and runs
2016-08-05 11:42:22 +02:00
Konstantin Käfer
2b59061199 [build] add Xcode project for Qt builds 2016-08-05 11:42:22 +02:00
Konstantin Käfer
a2e758b417 [build] make headless rendering work with Qt on macOS 2016-08-05 11:42:22 +02:00
Ivo van Dongen
5f70a65a2c [build] cmake android 2016-08-05 11:42:22 +02:00