Commit Graph

3355 Commits

Author SHA1 Message Date
Minh Nguyễn
b35deb85bc Happy new year! 🎉 2017-01-04 14:05:56 -08:00
Tobrun
b387105419 [android] - remove deprecated setAccessToken and getAccessToken from OfflineManager, make validating the access token a part of getAccessToken in Mapbox. (#7582) 2017-01-04 12:15:26 +01:00
Tobrun
654061c7d1 [android] - limit the scale factor for double tap zoom (#7580)
* [android] - limit the scale factor to avoid accelerating the double tap zoom gesture

* clamp values
2017-01-03 20:27:44 +01:00
Thiago Marcos P. Santos
5ac72ce8bf [Qt] Add docs for QMapboxGL 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
4bee81dd21 [Qt] Added docs for QMapboxGLSettings 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
003eec633e [Qt] Move QMapboxGL stuff from QMapbox namespace 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
b8564299e5 [Qt] Simplify setTransitionOptions 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
5437c7b5b3 [Qt] Make some accessors Qt properties 2017-01-03 16:52:24 -02:00
Thiago Marcos P. Santos
ecf1842a26 [Qt] Removed unused methods 2017-01-03 16:52:24 -02:00
Tobrun
561694a878 [android] - update changelog for 4.2.1 (#7520) 2017-01-02 19:27:56 +01:00
Tobrun
eefbb754d0 [android] - build and test wear module on CI, cleanup gradle file, added make target, added unit test (#7534) 2016-12-28 15:16:18 +01:00
Tobrun
531c983b73 [android] - downscale instrumentation tests on CI (#7529) 2016-12-22 23:47:42 +01:00
Ansis Brammanis
38b5cb0c77 [core, ios] replace altitude with fov
ported from -js: eb6c6596c6a7a61363d30356674e0002153b1d19

`altitude` was a terribly-named variable that was used to indirectly
control the fov. This should eliminate some confusion.

`altitude` was equivalent to `cameraToCenterDistance / height`
2016-12-21 15:46:36 -08:00
Minh Nguyễn
9dd0cdbc57 [macos] Added Simplified Chinese localization 2016-12-21 13:51:34 -08:00
Tobrun
8d52806cbb [android] - update components with latest camera values (#7499) 2016-12-21 21:07:00 +01:00
Tobrun
b42494570e [android] - fix null pointer on trackingsettings (#7505) 2016-12-21 21:06:39 +01:00
Tobrun
dff42cac68 [android] - harden MapboxMapOptions, extract duplicate fragment logic, fixup DoubleMapActivity (#7507) 2016-12-21 21:06:26 +01:00
Tobrun
2b38af8778 [android] - update lost to 2.0.0, gradle cleanup (#7494) 2016-12-21 12:32:07 +01:00
Minh Nguyễn
a6b1773a44 Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-master
Also reran make style-code and manually discarded anything related to fill extrusion layers.
2016-12-20 12:41:40 -08:00
philemonmerlet
3032a67a53 [android] Upgrade OKHTTP to 3.5.0 (released december the 1st, 2016) (#7491) 2016-12-20 16:49:11 +01:00
Tobrun
889d92e0c9 [android] - fix regresssion on wear module (#7497) 2016-12-20 16:48:36 +01:00
Eric Wolfe
e2fde9cc4e [ios, macos] Document when it's safe to call runtime styling functions (#7335)
* Add notes to wait for map to finish loading before adding sources or layers

* Move style loading notes to class documentation
2016-12-18 01:53:38 -08:00
Tobrun
83f1350747 MapboxAccountManager refactor, removal deprecated accesstoken (#7462)
* [android] - move object ownership, move depenencies and responsibility.

* [android] - MapboxAccountManager refactor, removal deprecated accesstoken.
2016-12-17 20:25:16 +01:00
Minh Nguyễn
e3a6857937 [ios, macos] Highlight current topic in documentation (#7468)
* [ios, macos] Highlight current topic in docs

* highlight style
2016-12-16 17:56:45 -08:00
Maya Gao
7f67a2926d iOS jazzy theme improvements (#7422)
some small improvements to the theme
2016-12-16 16:11:47 -08:00
Cameron Mace
20b958301e Adds checkstyle to CI (#7442)
* adds checkstyle to CI

* fixed gradlew path

* resolved testapp checkstyle violations

* added back mapboxMap variable for test

* checkstyle annotations

* checkstyle SDK round 1

* maps package checkstyle

* rest of SDK checkstyle

* checkstyle gesture library

* checkstyle test

* finished rest of test checkstyle

* resolved all checkstyle errors

* fixed class name

* removed old test file

* fixed camera postion test

* fixed native crash
2016-12-16 16:19:15 -05:00
Minh Nguyễn
3f26e88c49 Use appropriate part of speech for properties (#7457)
* [ios, macos] Use appropriate part of speech for properties

Fixed overridden property references in requirements lists. Boolean-typed properties can now have getters beginning with “is”.

Renamed a number of layout properties according to the following rules: Boolean-typed properties should include a verb; other properties must be noun phrases; all properties must be grammatical.

* [ios, macos] Added style spec names as unavailable aliases

Renamed properties now have aliases based on their style specification names, marked unavailable, for wayfinding purposes.

* [ios, macos] Fixed autosynthesis warnings

* [ios, macos] Moved style layer test template to test folder

* [ios, macos] Customized iconOptional getter

* [ios, macos] Avoid autosynthesis of aliases

* [ios, macos] Test that property names are grammatical

Run property getter names through a basic battery of tests to see if they’re grammatical. Most part-of-speech tagging tests are guarded by a compile-time flag, off by default, because NSLinguisticTagger does a poor job of telling nouns from verbs, and we’ve intentionally kept many words in property names that could be read as either verbs or nouns (like “transform” or “scale”).
2016-12-16 08:09:42 -08:00
Minh Nguyễn
b8466946e5 [ios, macos] Corrected return type of MGLShape factory method 2016-12-16 07:58:48 -08:00
Tom MacWright
74f39c0120 [ios] [osx] Make theme configurable (#7420)
* Make theme configurable

* [ios][osx] Make jazzy theme configurable
2016-12-15 10:30:45 -08:00
Tobrun
f95b4838ea [android] - move min/max zoom to transform class, cleanup usage of double vs float, renaming for parity (#7306) 2016-12-15 16:57:30 +01:00
Tobrun
858854ba03 [android] - wrap mapbox map test in ViewActions (#7451) 2016-12-15 14:28:08 +01:00
Jason Wray
78efb2d451 [ios] Remove last remnants of appledoc & docsets (#7418)
These scripts are broken and no longer useful in a post-jazzy world.
2016-12-14 18:19:52 -08:00
Tobrun
05c6935556 [android] - add OnMarkerView add callback (#7429) 2016-12-14 22:09:30 +01:00
Jesse Bounds
da44db915c [ios] Updated changelog for iOS 3.4.0 beta 5 2016-12-14 12:49:32 -08:00
Jesse Bounds
b46373da8a [ios] Update podspec for release 3.4.0 beta 5 2016-12-14 12:49:32 -08:00
John Firebaugh
07e58fe961 [tests] Fix variable reference in test-suite harness 2016-12-14 12:15:29 -08:00
Cameron Mace
eb42b37568 updated changelog for 4.2.0 release (#7433) 2016-12-14 15:04:11 -05:00
Konstantin Käfer
e182731092 [build] add -Wl,-bind_at_load to node.js bindings on macOS
this catches unbound symbols during loading of the extension, allowing us to spot potential linking errors earlier
2016-12-14 19:34:35 +01:00
Jesse Bounds
afd14cbfe5 [ios] Fix dequeue view variable scope (#7423)
Fix a bug where an annotation view variable was incorrectly
re-declared which caused annotation views to not appear
in some cases. This also refactors the guard that spot
checks that annotation view are or are not visible.
2016-12-14 10:24:06 -08:00
Jesse Bounds
0eac5ea91e [ios]] Remove transaction in callout view update (#7425) 2016-12-14 10:22:02 -08:00
John Firebaugh
e8a48a6d63 [node] Fix order of operations when setting zoom and center
Zoom must be set first, to avoid center potentially getting constrained.

Fixes #7351
2016-12-14 10:08:23 -08:00
Cameron Mace
3d5983f6f6 Allows for setting the user location icon to transparent (#7393)
* allows for setting the user location icon to transparent

* removed color check
2016-12-14 12:51:04 -05:00
Thiago Marcos P. Santos
8f24119bd0 [Qt] Implement updateSource
It will create or update a source. Right now only GeoJSON sources are
mutable and can be updated using this method.
2016-12-14 14:21:20 -02:00
Minh Nguyễn
d34356ce39 [ios, macos] Streamlined a string format 2016-12-13 17:37:44 -08:00
Minh Nguyễn
ef71597932 [ios, macos] Simplify MGLSource and subclasses (#7377)
* [ios, macos] Audited source headers for nullability

* [macos] Made MGLTileSet public

* [ios, macos] Replaced MGLTileSet with MGLTileSource

MGLRasterSource and MGLVectorSource now share a common abstract superclass, MGLTileSource. MGLTileSet has been removed. MGLTileSource is modeled after mbgl::style::RasterSource and mbgl::style::VectorSource. It has initializers that incorporate the parameters of MGLTileSet’s initializers, but it lacks getters for everything but the attribution string. MGLTileSet’s properties have been converted into options that can be passed into MGLTileSource’s initializers in a dictionary.

Properly implement rawSource as a covariant property so that it doesn’t end up getting autosynthesized as a shadow ivar. This prevents concrete subclasses of MGLSource from setting _rawSource directly but getting a different value out of self.rawSource.

Marked -[MGLSource init] as unavailable and ensured that concrete subclasses of MGLSource have the right set of initializers marked as designated initializers.

Documentation comments for each concrete source class identify the corresponding source type in the style specification. Clarified the purpose of MGLTileSetScheme, now known as MGLTileCoordinateSystem.

* [ios, macos] Clarified tile size interpretation

Sticking to a default value of 256 for mapbox: URLs, but other URLs get the standard 512 value.

* [ios, macos] rawSource is always set

* [ios, macos] Cleaned up MGLShapeSource initialization

rawSource is never nil, so there’s no need for a -commonInit method. Extracted -geoJSONOptions from MGLShapeSource into a standalone function for easier testing.

* [ios, macos] Synchronized headers in project

Realphabetized headers in groups. Added headers missing from one project or the other.

* [ios, macos] Added MGLShape methods to (de)serialize GeoJSON data

Added a class initializer and instance method to MGLShape that deserialize and serialize the shape as GeoJSON data, respectively. The new initializer handles parsing errors gracefully.

Removed methods specific to GeoJSON data from MGLShapeSource, in an effort to reduce parallel state. Developers are now expected to go through the new MGLShape initializer to get an MGLShape representation. Alternatively, a local file URL can be passed into the other MGLShapeSource initializer.

* [ios, macos] Typo in assertion message

* [ios, macos] Simplified GeoJSON serialization

Every MGLShape now knows its most specific mbgl::GeoJSON representation.

* [ios, macos] Reremoved MGLFeaturePrivate

mbgl::GeoJSON, which is a variant, allows a single GeoJSON representation method to traffic in whatever type is needed for a particular shape class. This change removes some hidden private protocols, which are a bug waiting to happen.

* [ios, macos] Fixed covariant rawLayer property

Properly implement rawLayer as a covariant property so that it doesn’t end up getting autosynthesized as a shadow ivar. This prevents concrete subclasses of MGLStyleLayer from setting _rawLayer directly but getting a different value out of self.rawLayer.

* [ios, macos] Use MGLAttributionInfo for source attribution

Made MGLAttributionInfo public. Replaced MGLTileSource’s attribution property with an attributionInfos property set to an array of MGLAttributionInfo objects. Added an MGLTileSourceOption for specifying an array of MGLAttributionInfo objects instead of an HTML string (either is acceptable when creating an MGLTileSource).

* [ios, macos] Corrected method references in documentation
2016-12-13 17:36:15 -08:00
Cameron Mace
39b839f3dd added custom layer proguard rule (#7411) 2016-12-13 18:08:02 -05:00
Cameron Mace
833c5ca2be Fixed proguard rules (#7389)
* fixed proguard rules

* disabled proguard for debug testapp builds

* removed dontobfuscate and fixed gson issue
2016-12-13 14:40:51 -05:00
Minh Nguyễn
2d52dd8c0f [ios] Fixed crash on launch in iosapp
Use NSLocaleLanguageCode instead of -[NSLocale languageCode], which is newer than the minimum deployment target.
2016-12-13 10:30:04 -08:00
Thiago Marcos P. Santos
0f0f2c69d7 [Qt] Fix build when ICU is disabled 2016-12-13 16:16:53 -02:00
Jesse Bounds
9f4dd1c5f4 [ios] Fix iosapp runtime styling examples (#7395)
This fixes a few bugs in our iosapp examples that were exposed by
recent refinements to the APIs they use.
2016-12-13 10:09:54 -08:00