Commit Graph

8684 Commits

Author SHA1 Message Date
Minh Nguyễn
aa03f0cab7 [ios, macos] Replaced let with var in codegen script 2016-08-19 14:20:26 -07:00
Konstantin Käfer
0df60c4651 [core] add ability show visualize the depth buffer to the GLFW and macOS app 2016-08-19 17:41:55 +02:00
Konstantin Käfer
cb33c861b4 [core] parse more Style JSON properties
We're now parsing "name", "center", "zoom", "bearing", and "pitch" from the stylesheet.
2016-08-19 17:34:10 +02:00
Jesse Bounds
dfd40b27a5 [tests] Add tests for shape overlays crossing the antimeridian
This adds two tests:

AntimeridianAnnotationSmall: Test that a shape that is represented with
+-180 longitudinal values is drawn spanning the antimeridian. In other
words, it is rendered as a "small" shape as opposed to one that spans
around the world to reach the other side of the antimeridian. This test
is currently failing at the time of this commit.

AntimeridianAnnotationLarge: Test that a shape that is represented with
points that do not cross the +-180 boundary is rendered as a "large"
shape. In other words, it is rendered by wrapping around the world to
reach the other side of the meridian. This test is currently passing at
the time of this commit.
2016-08-19 16:51:01 +03:00
Bruno de Oliveira Abinader
d70eda8504 [build] Fix macOS compdb path on YCM 2016-08-19 16:51:01 +03:00
Bruno de Oliveira Abinader
7d40d6347e [build] Re-enable 'circle-radius/antimeridian' @ test suite 2016-08-19 16:51:01 +03:00
Bruno de Oliveira Abinader
f77f6b720f [build] geojsonvt @ v6.1.3 2016-08-19 16:51:01 +03:00
Konstantin Käfer
effd853e79 [build] revert macOS deployment target to 10.10 2016-08-19 14:10:27 +02:00
Tobrun
0fd4c9ac9d [android] #6074 - increase default gradle memory usage during build (#6080) 2016-08-19 10:07:20 +02:00
Jason Wray
256689a33d [ios, macos] Make Xcode 7.3 the minimum required version
- Removes nullability shims for Xcode 6.
- Removes MGLTypes.h from files where it was only being used for
  nullability support.
- Accepts that `NS_SWIFT_NAME` is not fully supported by Xcode 7.2 and
  lower.
- Adds documentation about Xcode 7.3 requirement.
2016-08-18 11:35:32 -04:00
Fredrik Karlsson
7de7f9dc91 [ios, macos] fixes #6056 backwards compatibility macro (#6075) 2016-08-18 17:33:23 +02:00
Tobrun
d1c8dd5038 [android] #5211 - update yaml to run on device lab, update test with NoSuchSource exception (#6073) 2016-08-18 16:23:34 +02:00
Fredrik Karlsson
a202941360 [ios, macos] reuse utility function 2016-08-18 14:26:05 +02:00
Fredrik Karlsson
f7069523b4 [ios, macos] fixes #5974 Move style classes API to MGLStyle 2016-08-18 14:26:05 +02:00
Fredrik Karlsson
02b908633e [ios] #fixes 5961 omit style filter until it's implemented 2016-08-18 14:26:05 +02:00
Fredrik Karlsson
5d307d098b [ios, macos] Fixes #5975 Add source getter to MGLStyle 2016-08-18 14:26:04 +02:00
Minh Nguyễn
106dd460fe [ios, macos] Fixed compiler warning about std::move
Fixes #5943.
2016-08-18 14:26:04 +02:00
Minh Nguyễn
6856722b1e [ios, macos] Fixed incorrect assignment in style layer tests
Fixes #5992.
2016-08-18 14:26:04 +02:00
Fredrik Karlsson
2217e05f5e [macos] fixes #5956 remove dead code 2016-08-18 14:26:04 +02:00
Fredrik Karlsson
fcb134cff1 [ios, macos] fixes #5969 remove function type 2016-08-18 14:26:04 +02:00
Fredrik Karlsson
9dc252f2f9 [ios, macos] fixes #5958 naming conventions 2016-08-18 14:26:04 +02:00
Konstantin Käfer
c55b9ca0f8 [build] remove unneeded ios.xcscmblueprint 2016-08-18 12:33:38 +02:00
Ivo van Dongen
26bdcadf7e [core] added template instances for Source.is<>(). 2016-08-18 11:48:41 +02:00
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