Commit Graph

2672 Commits

Author SHA1 Message Date
Justin R. Miller
01b94de107 fixes #5957: automatically call update() for iOS runtime style API 2016-08-16 11:29:26 -07:00
Tobrun
31f15c6c62 [android] - replaced default colors with material design colors, changed textcolor to white, added click event on toolbar arrow, made sanity test generation compatible (#6004) 2016-08-16 18:13:56 +02:00
Ivo van Dongen
01a33749f9 [android] #5941 - add geojson typed constructor to GeoJsonSource and an example 2016-08-16 17:04:35 +02:00
Ivo van Dongen
2a5bf311ac [android] #6034 - add missing NoSuchSourceException 2016-08-16 16:02:37 +02:00
Ivo van Dongen
4e211548d5 [android] #5869 - visible feature querying 2016-08-16 11:38:30 +02:00
Minh Nguyễn
dcd9e1016c [ios, macos] Removed MGLSource.sourceType (#6028)
Fixes #6027.
2016-08-16 02:10:56 -07:00
Konstantin Käfer
18176605f6 [core] support "scheme": "tms" in TileJSON files 2016-08-16 11:04:30 +02:00
Ivo van Dongen
c34130ac6d [android] #6014 - add example with numerical filter 2016-08-16 10:53:34 +02:00
Minh Nguyễn
1daba5d04b [ios, macos] Accept absolute file paths as style URLs (#6026)
It turns out that mbgl::AssetFileSource supports absolute file URLs in addition to relative file URLs. So replace the file: scheme with asset: while percent-escaping as necessary.

Also added amsterdam.geojson to macos.xcodeproj for consistency with ios.xcodeproj.
2016-08-16 10:17:11 +02:00
Minh Nguyễn
52134eb8fd [macos] Link unit test bundle against libmbgl-core (#5994)
Fixes #5990.
2016-08-15 09:11:31 -07:00
Minh Nguyễn
6675e813ce [ios, macos] Replaced testAAALoadPacks with a setUp method (#6007)
XCTest apparently no longer executes tests in alphabetical order, so naming the test testAAALoadPacks doesn’t ensure it gets run first. Instead, put the pack loading test inside -setUp, but also put it inside a dispatch_once() block to ensure that it only gets run before the first offline storage test that gets run in the current process.
2016-08-15 08:27:59 -07:00
Ivo van Dongen
743d134a32 [android] #5852 - geojson source clustering 2016-08-13 11:20:08 -04:00
Tobrun
112789a761 [android] - make query source features depend on screendensity 2016-08-12 23:54:09 -04:00
Cameron
c57a54d920 added watermark to image 2016-08-12 22:19:28 -04:00
Tobrun
834ff765c0 [android] #5968 - add support for a layout editor preview, show a drawable and some overlain items 2016-08-12 22:19:28 -04: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
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
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
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