Commit Graph

8661 Commits

Author SHA1 Message Date
Minh Nguyễn
9fe22bc0cd [macos] Moved runtime styling demo to Debug menu
Fixes #6022.
2016-08-17 23:17:40 -07:00
Minh Nguyễn
7b1f9011db [ios, macos] More MGLGeoJSONSource options
MGLGeoJSONSource can now be initialized with GeoJSON data. Replaced the data property with a geoJSONData property and added features and URL properties alongside it. Each property may be set or unset based on how the object was initialized.

Fixes #5965, fixes #5966.
2016-08-17 23:17:39 -07:00
Minh Nguyễn
61df0b1bfa [ios, macos] Use local GeoJSON for runtime styling demo
Also changed the menu item to something more descriptive.

Fixes #6021.
2016-08-17 23:16:59 -07:00
Brad Leege
bca9d09180 [android] #6050 - Updating Gradle Wrapper 2016-08-17 10:20:47 -04:00
Brad Leege
9a6df919b3 [android] #6050 - Updating to Gradle 2.14.1 and Android plugin 2.1.3 2016-08-17 10:20:47 -04:00
Bruno de Oliveira Abinader
8843bebee2 [Qt] Added QQuickMapboxGLStyle
A QQuickMapboxGLStyleProperty being a child of QQuickMapboxGLStyle
assures that only properties associated with that particular style will
reflect on the map - and that happens only when the style is the current
set via style property.
2016-08-17 15:21:52 +03:00
Bruno de Oliveira Abinader
45da1abbe1 [Qt] Use MapChangeWillStartLoadingMap to get notified about style changes 2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
ee62a807a3 [Qt] Invert parent/child notification mechanism in QQuickMapboxGLStyleProperty
Parent item (QQuickMapboxGL) should check for signals from its child
items e.g. QQuickMapboxGLStyleProperty, and not the opposite.
2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
5057d7ef5d [Qt] Use QVariantMap in QQuickMapboxGLStyleProperty 2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
aa13acdb87 [Qt] Use strict signature for add{Source,Layer} 2016-08-17 14:43:22 +03:00
Bruno de Oliveira Abinader
15b7612c13 [Qt] Remove template from eachMember 2016-08-17 14:43:22 +03:00
Tobrun
fff0ebaa17 5859 generate sanity tests (#5870)
* [android] #5859 - generate espresso tests

[android] #5859 - cleanup xml files, use all the same resource id for map view

[android] #5859 - update scripts

[android] #5859 - update Activity to match mapboxMap naming

[android] #5859 - make SurfaceViewMediaControlActivity compatible

[android] #5859 - make MarkerViewScaleActivity test generation compatible

[android] #5859 - make PolygonActivity test generation compatible

[android] #5859 - integration within make file

[android] #5859 - made CameraPostion generation safe

[android] #5859 - generate sanity test

[android] #5859 - add generated test cases

[android] #5859 - add documentation

* [android] #5859 - remove generated files, introduce gen package, added gitignore to package

* [android] #5859 - regenerated test code

* [android] #5859 - added AWS gradle plugin + bitrise configuration

* [android] #5859 - fixes running locally without having the properties configured

* [android] #6010 - remove python from android sdk

* [android] #5859 - update docs about aws gradle plugin
2016-08-17 08:53:33 +02:00
Minh Nguyễn
0062cf2f94 [ios, macos] Added MGLBaseStyleLayer_Private.h to project 2016-08-16 16:48:02 -07:00
Minh Nguyễn
5539a90c48 [ios, macos] Renamed Objective-C++ headers to .h
Also removed a redundant reference to MGLStyle_Private.h in ios.xcodeproj.

Fixes #5952.
2016-08-16 16:46:04 -07:00
Brad Leege
56e39b5ecb Revert "add CMake to global build dependencies"
This reverts commit c5f330b883.
2016-08-16 18:30:55 -04:00
Brad Leege
74b70bc823 [core] #5879 - CMake 3.1 or later note 2016-08-16 17:55:46 -04:00
Justin R. Miller
c5f330b883 add CMake to global build dependencies 2016-08-16 17:52:59 -04:00
Justin R. Miller
3dc451749b [ios] fix circular class reference 2016-08-16 17:51:06 -04:00
Jason Wray
1de65e2a51 [ios] Improve user location annotation performance (#6019)
* [ios] Don't animate zoom-induced accuracy ring size changes

Improves perceived and actual performance by eliminating the implicit animation that occurred when the accuracy ring changed size during zooms. This previously would pile up animations as the zoom changed, causing an unsightly wobbling effect.

* [ios] Pre-calculate shadow paths for user dot and puck

Performance enhancement suggested by https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreAnimation_guide/ImprovingAnimationPerformance/ImprovingAnimationPerformance.html

* [ios] Rasterize pulsating inner dot of user location annotation

Supposed performance enhancement and also improves edge smoothness.
2016-08-16 17:38:18 -04:00
Brad Leege
bbd6cfcf8a [core] #5359 - Adding CMake Dependency To Docs 2016-08-16 17:10:25 -04:00
Jason Wray
f489ec2ee1 [ios] Refactored user location annotation into a customizable class (#5882)
A new class, `MGLUserLocationAnnotationView`, has been added that inherits from `MGLAnnotationView`. 

Use a subclass of `MGLUserLocationAnnotationView` to customize the appearance of the user location annotation. Use your custom view with the `MGLMapView.userLocation` annotation via the `-mapView:viewForAnnotation:` delegate method.
2016-08-16 15:16:59 -04:00
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
Konstantin Käfer
08f71b7f38 [docs] remove Python dependency and add cURL dependency 2016-08-16 15:29:34 +02:00
Konstantin Käfer
f4b4f978ec [build] convert build-version script from Python to Node.js 2016-08-16 15:29:34 +02:00
Konstantin Käfer
63a2f896cc [build] remove unused script 2016-08-16 15:29:34 +02:00
Konstantin Käfer
51391740bf [build] convert build-shaders script from Python to Node.js 2016-08-16 15:29:34 +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
6c6ddd9e86 [docs] Copyedited contributing guide
Also changed platform label from purple to black, to be more distinct from blue.
2016-08-15 12:20:29 -07:00
Jesse Bounds
44163274dc Update contributing readme
Add section about github label system
2016-08-15 11:57:27 -07: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
Konstantin Käfer
c5c713a945 [build] bump Mason to support Xcode 8 2016-08-15 11:35:42 +02: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
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