Commit Graph

17582 Commits

Author SHA1 Message Date
John Firebaugh
d076ba0567 [core] Clean up merge_lines.cpp and add bounds checking 2017-01-18 13:38:05 -06:00
Minh Nguyễn
344cd173ea [macos] Avoid nilling out style URL on load
-awakeFromNib nils out the styleURL property to ensure a style is always present on load. However, if the style URL is specified in the Style URL inspectable, it is set somewhere between -initWithCoder: and -awakeFromNib; nilling out the styleURL property in -awakeFromNib thus resets the style to the default. This change guards against nilling out a non-nil style URL, ensuring that -setStyleURL: is called once and only once on launch.
2017-01-18 10:38:31 -08:00
Bruno de Oliveira Abinader
14fe15e3fc [Qt] Avoid QApplication duplication via test main() 2017-01-18 19:06:32 +01:00
Bruno de Oliveira Abinader
49da57393a [core] Remove platform-specific main.cpp from MBGL_TEST_FILES 2017-01-18 19:06:32 +01:00
Tobrun
c637a658db [android] - remove deprecated emerald (#7767)
[android] - remove deprecation annoation for setStyle

[android] - dismiss tracking on gesture deprecation cleanup
2017-01-18 18:26:58 +01:00
John Firebaugh
89193f7ab0 [build] Avoid creating a recursively symlinked node_modules
With the previous command, the second time it would run generated a node_modules symlink inside the top-level node_modules directory.
2017-01-18 11:53:16 +01:00
Jordan Kiley
e38216d254 Typo fixes, added line to MGLStyleLayer initializer description (#7759)
* Typo fixes in MGLMapCamera.h and MGLMapView.h

* Added line to MGLStyleLayer initializer description

* Edited line in MGLShapeCollection.h
2017-01-17 20:54:36 -08:00
John Firebaugh
531a1c3070 [core] Fix calculation of delayed transitions 2017-01-17 15:18:14 -06:00
Minh Nguyễn
d829570cca ios-v3.4.0-rc.1 2017-01-17 12:51:02 -08:00
John Firebaugh
b04e11b5ca [core] Disable debug groups in release builds 2017-01-17 14:45:29 -06:00
John Firebaugh
ed80755084 [core] Restore GL_KHR_debug messages in release builds
This reverts commit 8c4da72d09.
2017-01-17 14:45:29 -06:00
John Firebaugh
df2b6cfec1 [linux] No need for CXXABI suffix for mesa 2017-01-17 13:05:10 -06:00
Konstantin Käfer
6658268115 [core] abort early when placing a glyph in GlyphAtlas if the bitmap is invalid 2017-01-17 19:23:20 +01:00
Konstantin Käfer
b6c1119172 [core] harden Glyph PBF parsing 2017-01-17 19:23:20 +01:00
Bruno de Oliveira Abinader
4439aecbcc [core] Use std::tie in tileCover sort 2017-01-17 17:39:54 +01:00
Bruno de Oliveira Abinader
8847192694 [core] Use std::tie in *TileID operator< 2017-01-17 17:39:54 +01:00
Bruno de Oliveira Abinader
54d937c738 [core] Use std::tie in Source::Impl::queryRenderedFeatures sort 2017-01-17 17:39:54 +01:00
Konstantin Käfer
1fc8159481 [test] add tests for paths with leading slashes 2017-01-17 17:38:57 +01:00
Konstantin Käfer
4b0cb858ba [core] include leading slash in URL.path 2017-01-17 17:38:57 +01:00
Minh Nguyễn
2dae2254dd [macos] Check for implementation before calling -toolTip
Also fixed a couple typos in changelogs.
2017-01-16 21:50:08 -08:00
Konstantin Käfer
7983e3a67c [core] update CSSColorParser 2017-01-16 19:01:22 -06:00
Minh Nguyễn
cf166717b8 Merge branch '1ec5-release-ios-v3.4.0-beta.7' 2017-01-16 15:08:17 -08:00
Thiago Marcos P. Santos
bd71eb8681 [core] Fix ambiguous condition on the sort criteria
The previous sorting criteria would sometimes allow

C > B, B > A but A > C, making the internal std::sort
code sometimes point to an invalid reference.

Fixes #7737
2017-01-16 14:30:36 -06:00
Minh Nguyễn
7ef2843e6a Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.7 2017-01-16 11:38:35 -08:00
Minh Nguyễn
13b97dd0ce [ios, macos] Correct podspecs, readmes (#7730)
* [macos] RC 1 errata

Synchronized bundled README installation instructions with those in INSTALL.md. Bumped screenshot up a bit. Corrected link to published documentation.

* [ios, macos] Corrected podspec URLs

Fixed podspec linter errors. The podspecs were pointing to unreachable (or soon to be unreachable) screenshot URLs. The -symbols podspecs’ names additionally needed to differ from the normal podspecs’ names.
2017-01-16 10:16:40 -08:00
Thiago Marcos P. Santos
76301b252c [build] Fix mbgl-offline tool build on recent Linux distros 2017-01-16 17:53:02 +02:00
Konstantin Käfer
3b8e50a2a9 [core] add tests for function parsing 2017-01-16 10:28:21 +01:00
Molly Lloyd
6a7966fd36 fix typo in android docs (#7686) 2017-01-16 10:16:46 +01:00
Tobrun
87402f234b [android] - notify team when nightly snapshot build fails, update slack message. (#7654) 2017-01-16 09:29:29 +01:00
Tobrun
5c61ea0869 [android] - safe guard making asyncrhonous calls to map object while it's beeing destroyed (#7613) 2017-01-16 09:06:29 +01:00
Minh Nguyễn
4adcdac7b5 [macos] Upgrade macOS deployment and distribution (#7649)
* [macos] Updated deployment scripts

Ported fixes from #6581 and #6740.

* [macos] Acknowledge AppleScript support

* [macos] Prepared for published documentation

Also added link to Dash docset.

* [macos] Added CocoaPods podspecs

Ported from #5653.

* [macos] Rewrote readme; updated screenshot

* [macos] Include setup instructions in standalone docs
2017-01-15 13:18:21 -08:00
Tobrun
9a635672a6 [android] - update build tools to bitrise supported version (#7729) 2017-01-15 21:11:42 +01:00
Minh Nguyễn
15caf0fd63 [ios, macos] Default to system font for attribution titles 2017-01-14 14:46:15 -08:00
Jason Wray
bc0c8043d2 [ios] Add larger polyline to iosapp test shapes 2017-01-13 15:43:41 -05:00
Jason Wray
8f6009ea20 [ios, macos] Revert deprecation of alphaForShapeAnnotation: delegate method 2017-01-13 15:43:41 -05:00
Minh Nguyễn
4d5036616f [ios, macos] Rewrote style layer tests
Replaced the style layer integration tests with unit tests. Test conversion of style values to property values and vice versa, not just round-tripping. Test the initial state and null-resetting of each null-resettable property. Test NSValue additions for style attribute enumerations. Test properties common to all style layer classes. Test MGLStyle’s source and layer collections.

Eviscerated implementations of unavailable style layer properties corresponding to style specification properties that were renamed. Implemented corresponding getters to prevent ivars from being autosynthesized for these unavailable properties.

Added a missing bridging header to the iOS test project.
2017-01-13 10:26:43 -08:00
John Firebaugh
255f09a73c [linux] Use valgrind 3.12.0 2017-01-13 14:53:39 +02:00
John Firebaugh
a3e9c74dc6 [build] Upgrade clang-tidy and clang-format
Version 3.8.0 was removed from mason.
2017-01-13 14:53:39 +02:00
Minh Nguyễn
85fc75db8d [ios, macos] Fixed nilling out predicate 2017-01-12 16:19:14 -08:00
Jesse Bounds
00bacf5951 [ios, macos] Temporarily ignore the fill extrusion layer (#7706) 2017-01-12 16:06:23 -08:00
Minh Nguyễn
0a1987f091 Fixed link in “Working with GeoJSON Data” guide 2017-01-12 12:39:15 -08:00
Tobrun
831bb21dc8 [android] - improve fling gesture by calculating animation time from velocity, ignore small fling gestures. (#7676) 2017-01-12 21:25:40 +01:00
Minh Nguyễn
43c6bb0f24 [ios, macos] Note that MGLShapeSource.shape must be set on main thread (#7687)
* Add Clarification for modifying ShapeCollections

Spinoff task from https://github.com/mapbox/mapbox-gl-native/issues/7622

* update wording for both get/set, remove whitespace
2017-01-12 11:54:07 -08:00
Minh Nguyễn
f1d661ad36 [ios, macos] Document simpler types for style values in Swift 2017-01-12 11:03:20 -08:00
Minh Nguyễn
13243ba26b [ios, macos] Made style-related tests more robust
Removed UIViewController from MGLStyleLayerTests on iOS, because we aren’t really testing integration at that level. Switched to delegate-based expectation fulfillment for both MGLStyleLayerTests and MGLStyleTests, conditionalized on whether the style has already loaded, to avoid race conditions that bleed into other tests.
2017-01-12 08:19:29 -08:00
John Firebaugh
a47600a41d [linux] No need for CXXABI suffix for mesa 2017-01-12 13:10:24 -02:00
Jason Wray
4aecb18f54 [ios] Release v3.4.0-beta.7 2017-01-11 20:04:37 -05:00
Jesse Bounds
6ad47cfbad [ios, macos] Add convenience initializers to shape source (#7665)
This adds two new convenience initializers to MGLShapeSource:

-initWithIdentifier:features:options: takes an array of shape objects
that conform to MGLFeature, inserts them in a shape collection feature
and creates a source with that shape. -initWithIdentifier:shapes:options
does the same but with concrete MGLShape objects that get added to
a shape collection.

Throw an exception if an shape source is created with the features
initializer but is sent an array of features that contains something
that is not actually an object that conforms to the feature protocol.

Updates to geojson data guide

Qualify APIs that take arrays of shapes that are features
2017-01-11 16:05:38 -08:00
Jesse Bounds
4332b3b953 Flush telemetry cache when data collection is paused (#7672)
[ios] Flush telemetry cache when data collection is paused

This flushes the cache just before pausing so that data collected
before the pause is not thrown away. It also refactors event
creation to avoid possible nil value inserts into dictionaries
and adds a small optimization to avoid creating immutable
dictionaries to help create mutable ones.

Also:

- Remove cancel API in API client

The cancelAll API is not used. The array of data tasks it maintains
has proven problematic. This removes the API and the problematic
implementation. As safer version of it can be brought back if cancel
task functionality is required in the future.

- Remove unused battery method
2017-01-11 15:55:54 -08:00
Fredrik Karlsson
f1fc9bdfeb [ios] Optional positioning and stickiness for callout view 2017-01-11 15:48:08 -08:00