Commit Graph

354 Commits

Author SHA1 Message Date
Tobrun
95fdf3ca0d [android] - add unit test for Mapbox (#8228) 2017-03-01 16:23:23 -05:00
Tobrun
f44e4eb2de Only listen to connectivity broadcast events when needed (#8222)
* [android] - only listen to connectivity change events when needed.

* [android] - fix compile var args warning, remove redundant test
2017-03-01 09:46:47 -05:00
Anand Thakker
f901e776b3 [core] Implement data-driven styling for {text,icon}-{color,opacity,halo-color,halo-blur,halo-width} (#7939)
* Add symbol dds attributes and adapt style code generation

* Update to mapbox-gl-js/master

* Refactor SymbolFeature as a subclass of GeometryTileFeature

Prepares for enabling DDS on symbol paint properties by allowing the
SymbolFeatures, which we keep around after constructing SymbolLayout,
to be used in evaluating data-driven paint properties later in the
layout process.

* Draft approach for splitting icon/text paint properties

The `Program` types are set up to bind GL attributes to each of the
data-driven paint properties specified in the `PaintProperties` type
provided.  Since `SymbolPaintProperties` specifies both `Text*` and
`Icon*` properties, the symbolIcon, symbolIconSDF, and symbolGlyph
programs each attempt to bind roughly double the number of attributes
that they actually need.

This change addresses this by:
- Adding the more specific `IconPaintProperties` and `TextPaintProperties` types, which are subsets of the full `SymbolPaintProperties`.
- The symbol layer continues to use its `SymbolPaintProperties paint` member to track layer property state, but it provides helpers that construct objects of each the specific `{Icon,Text}PaintProperties::Evaluated` type, for use by the painter.
- The three symbol programs instantiate `Program<>` using the appropriate `{Icon,Text}PaintProperties` type.

* check in generated style code

* Populate paint buffers for symbol DDS properties

* Address first round of review comments

* Refactor VectorTile{Layer,Feature} to explicitly share data

* Update submodule
2017-02-28 19:54:24 -08:00
Ivo van Dongen
f8766f704a [android] fix unit tests for #7944 2017-02-28 14:05:14 -08:00
Ivo van Dongen
99786e1e3f [android] insert layer at index 2017-02-28 09:33:04 -08:00
Ivo van Dongen
a9d2929819 [android] remove layer at index 2017-02-28 09:33:04 -08:00
Ivo van Dongen
dc21396d71 [android] insert layer above 2017-02-28 09:33:04 -08:00
Ivo van Dongen
3040d40772 [android] remove source returns reference 2017-02-28 09:33:04 -08:00
Ivo van Dongen
fedb21e35b [android] remove layer returns reference 2017-02-28 09:33:04 -08:00
Ivo van Dongen
f0de56cffa [android] source list accessor + example 2017-02-28 09:33:04 -08:00
Ivo van Dongen
ec1dc2622b [android] layer list accessor + example 2017-02-28 09:33:04 -08:00
Tobrun
47dcfe7d44 [android] - add javadoc to test activities. (#8203)
* [android] - add javadoc to test activities.

* fix checkstyle issue
2017-02-27 23:56:06 +01:00
Ivo van Dongen
465c949153 [android] jni high level binding refactor 2017-02-24 17:54:20 +02:00
Ivo van Dongen
d1f444d63e [android] remove nonexistent layer or source handling 2017-02-23 15:07:43 -08:00
Tobrun
a394578876 [android] - rename simple example map view (#8132)
* [android] - rename simple example map view from Wear module to explicitly state Wear in it's name

* ignore flaky test
2017-02-21 15:00:48 +01:00
Anand Thakker
062b18374d [core] Enable property functions for text-{field,transform} (#7944) 2017-02-17 13:16:25 -08:00
Tobrun
3cde400b9f [android] - ignore device dependant tests (#8063) 2017-02-15 16:01:58 +01:00
Ivo van Dongen
c65e8bfa62 [android] Refactor composite stop types and conversions 2017-02-09 11:16:26 -06:00
Ivo van Dongen
343d161ac1 [android] fix reference table overflow in query rendered features 2017-02-08 15:15:13 +02:00
Tobrun
2c7350c093 7798-ObjectAnimator-rotation (#7907) 2017-02-07 07:31:39 +01:00
Tobrun
3212e543b7 [android] - wrap longitude values from core (#7852) 2017-02-04 10:31:59 +01:00
Tobrun
88c4bd1036 [android] - enforce usage bitmap for icon, cleanup test app resources (#7906) 2017-02-04 10:31:43 +01:00
srabenja
1dead1d194 Disable double tap gesture to zoom in (#7879) 2017-02-04 08:17:59 +01:00
Antonio Zugaldia
c97ec3be03 [android] Extract telemetry into MAS
* [android] add the mapbox-android-telemetry module dependency.

* update javadoc
2017-02-03 15:12:13 -05:00
Ivo van Dongen
f562ecdfc3 [android] data driven style implementation 2017-02-02 09:44:42 -08:00
Tobrun
329051a1eb [android] - force portrait mode to make instrumentation test run more reliable (#7885) 2017-01-27 14:44:26 +01:00
Konstantin Käfer
62ea1f2185 [core] remove trailing whitespace, add trailing newlines, add space after // 2017-01-27 11:44:16 +01:00
Austin O'Neil
af0ff55f16 [Android] Make spinner under Add Markers in Bulk readable (#7836) 2017-01-25 13:27:04 +01:00
Antonio Zugaldia
d1a1a03435 [android] Move the simple map activity to a "Basic" section, always listed first (#7817)
* move the simple map activity to a basic section, always listed first

* category_first -> category_basic
2017-01-23 14:22:03 -05:00
Cameron Mace
9b72644191 Test app refactor (#7598) 2017-01-23 13:27:02 -05:00
Tobrun
fbe0320c9c [android] - zoom to at least 2 when tracking is enabled (#7795)
* [android] - zoom to at least 2 when tracking is enabled, introduce interface for zoom invalidation, simplify example

* fixup unit test, added test for new interface + focal point interface
2017-01-23 17:51:09 +01:00
Justin R. Miller
f6715694f9 refs #6779: mobile & Mac SDK style transition options (#7711) 2017-01-18 12:43:08 -08: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
Tobrun
f18c0b8d1e [android] - cleanup telem, disabled logging, exponential backoff, local broadcast (#7605) 2017-01-10 17:26:06 +01:00
Antonio Zugaldia
92dff9ee93 update gradle files and packages to use smaller versions of MAS and save methods (#7642) 2017-01-10 11:11:09 -05:00
Tobrun
ed4e7a1134 [android] - Show bus stops and route Circle Layer Activity (#7402) 2017-01-05 09:47:51 +01:00
Tobrun
dff42cac68 [android] - harden MapboxMapOptions, extract duplicate fragment logic, fixup DoubleMapActivity (#7507) 2016-12-21 21:06:26 +01: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
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
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
Tobrun
05c6935556 [android] - add OnMarkerView add callback (#7429) 2016-12-14 22:09:30 +01: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
Tobrun
b1e9a3f4d6 [android] - Reenable MapboxMapTest for end-to-end API testing. Fix tests (#7367) 2016-12-13 08:08:41 +01:00
Ivo van Dongen
a32e62cb0f [android] test duplicate layer id exception handling 2016-12-12 09:05:23 -05:00
John Firebaugh
82856fd08b [darwin, android] SDK bindings for circle-stroke properties 2016-12-09 09:35:21 -08:00
Tobrun
7cf10ee524 [android] - remove location enabled flag from MapboxMap (#7308)
* [android] - remove location enabled flag from MapboxMap, decouple TrackingSettings from MyLocationViewSettings using a FocalPointChangeListener interface, Move state related to tracking modes to MyLocationView (shared object between MyLocationViewSettings and FocalPointChangeListener).

* fixup tests
2016-12-08 14:37:01 +01:00
Tobrun
e706ede0b4 [android] - remove overlay SurfaceView examples (#7278) 2016-12-06 19:40:40 +01:00
Tobrun
9a9e7978db [android] - Refactor dependencies, introduce focused components (#7189)
* [android] - refactor dependencies

* ignore tests
2016-12-06 13:46:49 +01:00
Minh Nguyễn
3503c0e767 Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.4-master 2016-12-03 15:36:42 -08:00