Commit Graph

408 Commits

Author SHA1 Message Date
Anand Thakker
693c9f3641 [core] Add DDS support for {text,icon}-size (#8593)
* Update gl-js and generate style code

* Factor out packUint8Pair() helper function

* Draft implementation of DDS for {text,icon}-size

Ports https://github.com/mapbox/mapbox-gl-js/pull/4455

* Fix text-size/composite-function-line-placement test

* Refactor to PaintPropertyBinders-like strategy

* Dedupe gl::Program construction

* Use exponential function base for interpolation

* Dedupe coveringZoomStops method

* Fixup tests

* Fix CI errors (hidden within #if block)
2017-04-06 15:29:59 -04:00
John Firebaugh
a261f7ff53 [android] Preflight argument validity before constructing LatLng 2017-04-06 09:22:51 -07:00
John Firebaugh
1a9bccbb85 [core] Add DDS support for icon-image 2017-03-31 14:17:33 -07:00
John Firebaugh
743d954053 [core] Add DDS support for text-rotate 2017-03-31 13:26:27 -07:00
Tobrun
939526bac4 [android] - transition options for layer properties (#8509)
[android] fixup highlevel bindings for transition options

finish integration
2017-03-31 17:51:26 +02:00
Tobrun
f0b683237d [android] - disable requiring supported languages for test applications (#8597) 2017-03-31 13:48:27 +02:00
Pablo Guardiola
1a0dc66486 update test documentation adding how to run firebase tests within android studio (#8566) 2017-03-30 23:23:44 +02:00
Ivo van Dongen
61e2695190 [android] resource transform callback example 2017-03-30 15:27:05 +03:00
Tobrun
a827799174 [android] - fixup location permissions in test app pre Android Marshmallow (#8559) 2017-03-30 13:31:04 +02:00
Tobrun
74bf366666 [android] - Update CircleLayerActivity with style switching. (#8274) 2017-03-30 13:30:43 +02:00
Tobrun
a4959131b2 [android] - transition options in milliseconds, added test cases, fixup test activity code (#8576) 2017-03-30 13:25:56 +02:00
Molly Lloyd
47c1e42ac1 [core] implement dds for text-offset 2017-03-28 11:06:58 -07:00
Ivo van Dongen
6fa578aa4e [android] geojson source - add conversion tests 2017-03-28 15:44:22 +03:00
Tobrun
66ed1a1080 [android] - harden offline region creation, add include method, expose world bounds, update tests (#8517) 2017-03-24 18:41:49 +01:00
John Firebaugh
e488ca702e Merge branch 'release-ios-v3.5.0-android-v5.0.0' 2017-03-21 12:04:20 -07:00
Tobrun
09d76854ab [android] - only dispatch events if not handled by MarkerView (#8447)
use onTouch listener to ignore dispatching action up events to MapView when they are already handled by MarkerView.
2017-03-17 15:23:28 +01:00
Konstantin Käfer
9544dcc483 [android] move build to Android Studio 2017-03-17 14:25:37 +01:00
Ivo van Dongen
a3121fc7a3 [android] query source features 2017-03-10 11:08:32 -08:00
Tobrun
ed16a7d632 [android] - zoom to rounded levels 2017-03-10 09:37:00 -08:00
Antonio Zugaldia
01f126cbc6 [android] remove unnecessary manifest permissions 2017-03-09 18:30:03 -08:00
Antonio Zugaldia
359507345d [android] remove unnecessary manifest inclusion 2017-03-09 18:30:03 -08:00
Tobrun
d1e50b3ab8 [android] - add style loading callback (#8291)
* [android] - add style loading callback that is invoked when a style finishes loading.

* fixup language + add support for adding a callback when invoking setStyle with the default styles.
2017-03-09 17:20:56 -08:00
Ivo van Dongen
b2b5f9e571 [android] query source features 2017-03-09 13:11:23 -08:00
Ivo van Dongen
732cd8d20a [android] use PropertyValue for default values in functions 2017-03-07 09:48:12 -08:00
Ivo van Dongen
b5d0a661c5 [android] Add support for queryRenderedFeatures filter 2017-03-04 15:42:07 -08:00
Tobrun
328d4f6672 [android] - example on converting an Android SDK view to a Bitmap to be used as SymbolAnnotation (#8258) 2017-03-04 15:43:39 -05:00
Tobrun
a5f6ee6963 [android] - update gradle and plugin for Android Studio 2.3 stable, update support library to latest version, add dexOptions to increase build times. (#8271) 2017-03-03 17:36:40 -05:00
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
0c0d7ceaeb [android] - use project wide configurations for all modules + fixup wear compile error (#8066) 2017-02-15 19:56:31 +01:00
Tobrun
3cde400b9f [android] - ignore device dependant tests (#8063) 2017-02-15 16:01:58 +01:00
Antonio Zugaldia
0b3873c7b5 [android] Update SDK dependency to MAS beta.1 (#8020)
* remove unused repositories

* move from snapshot to beta.1
2017-02-10 14:30:23 -05: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
Pablo Guardiola
d9f2cd5df5 fix unable to find developer-config xml when building the project (#7963) 2017-02-07 17:17:10 +01:00
Tobrun
2c7350c093 7798-ObjectAnimator-rotation (#7907) 2017-02-07 07:31:39 +01:00