Commit Graph

1196 Commits

Author SHA1 Message Date
Konstantin Käfer
9544dcc483 [android] move build to Android Studio 2017-03-17 14:25:37 +01:00
Bruno de Oliveira Abinader
e7c1ba2edf [android] Update changes in MapObserver::onDidFailLoadingMap 2017-03-17 11:25:48 +02:00
Bruno de Oliveira Abinader
a07e6aee04 [android] Support mbgl::MapObserver 2017-03-15 14:53:32 +02:00
Pablo Guardiola
30c848b9d8 [android] add changing compass view image feature to the sdk (#8301) 2017-03-14 16:31:17 +01:00
John Firebaugh
78d6d07d57 [android] Link with a version script to restrict symbol visibility 2017-03-14 08:14:08 -07:00
Ivo van Dongen
e3cc5ddfdd [android] don’t crash on map changed callback when OnMapChangedListener throws a runtime exception 2017-03-14 14:58:20 +02:00
Konstantin Käfer
3eaf984357 [android] upgrade to Android NDK r14 2017-03-10 10:00:06 -08:00
John Firebaugh
6ceb0c832b [build] Remove custom bitrise 'skip ci' stuff (#8346) 2017-03-10 08:55:34 -08:00
Ivo van Dongen
b2b5f9e571 [android] query source features 2017-03-09 13:11:23 -08:00
Konstantin Käfer
c880560f80 [build] require Android r13b
We're trying to use a local NDK, but in case it is too old or too new, we fall back to downloading the correct version via Mason, like in the olden times.
2017-03-08 17:41:33 -08:00
John Firebaugh
3afae825c7 Use ICU compiled with -Os 2017-03-08 14:05:19 -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
Asheem Mamoowala
60d10dd27d [core] 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
John Firebaugh
8742dc852c [all] Build all release builds with -Os 2017-03-02 16:32:42 -08:00
Tobrun
ef82095a21 [android] - add accessibility support to the Android SDK by applying content descriptions on Views overlain on the map. (#8230) 2017-03-01 17:07:01 -05:00
Tobrun
95fdf3ca0d [android] - add unit test for Mapbox (#8228) 2017-03-01 16:23:23 -05:00
Ivo van Dongen
74d42a45e2 [android] keep default file source alive for the duration (#8226) 2017-03-01 11:33:51 -05:00
Pablo Guardiola
c689eed273 [android] add line starts with a semicolon and empty statement checkstyle rules and fix related checkstyle issues (#8231) 2017-03-01 10:45:22 -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
Tobrun
34fef22d95 [core] [android] - allow zooming/scaling to use AnimationOptions (#8181)
[glfw] - allow glfw binding to use AnimationOptions instead of using direction directly
2017-02-28 13:22:47 -05:00
Ivo van Dongen
05ec852885 [android] raise checkstyle file length limit 2017-02-28 09:33:04 -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
609cdb0fd7 [android] fix ownership of style layer after delete 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
Ivo van Dongen
62e85c1224 [android] add unknown source type 2017-02-28 09:33:04 -08:00
Ivo van Dongen
3e48b377fd [android] add unknown layer type 2017-02-28 09:33:04 -08:00
Pablo Guardiola
283aee0754 [WIP] InfoWindow refactor (#8080)
* [android] remove unnecessary info window class and add bubble layout

* fix some PR comments (remove hungarian notation, make bubble popup helper package protected and fix some code style issues)

* refactor replace enum in favor of intdef

* make bubble layout package protected and remove useless info window tip view class
2017-02-28 11:48:40 -05:00
Tobrun
8e9d6a5b2c [android] - don't allow transforming to the same camera position, ignore redundant updates. (#8134) 2017-02-28 10:57:08 -05:00
Tobrun
809d8248b3 Fix a NPE that occurs when MapView is initialized with a null MapboxMapOptions (#8131) 2017-02-28 09:18:49 -05: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
Tobrun
147654a46b [android] - reverse compass direction (#8130) 2017-02-27 14:22:25 -05: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
Pablo Guardiola
87be62f9e4 [android] fix units in runtime styling javadoc (#8161) 2017-02-23 19:47:40 +01:00
Antonio Zugaldia
3ba3f31416 Update to MAS 2.0.0-beta.2 and handle dependencies consistently (#8169)
* [android] update to mas 2.0-beta2 and handle dependencies consistenly

* extract remaining dependencies and bump stable versions
2017-02-23 09:12:56 -05:00
Tobrun
79ab42f791 [android] - move calculating a bounding box zoom level to projection. (#8133) 2017-02-23 14:08:38 +01:00
Tobrun
272d874267 [android] - remove filter Object[] from ejs template file for layer (#7658) 2017-02-23 11:29:24 +01:00
Konstantin Käfer
341e65f7d5 [build] use system-provided Android NDK when available
and fall back to Mason if it isn't
2017-02-22 18:06:20 +01:00
Tobrun
b49fc44498 [android] - post invoking onMapReady to the end of the main thread message queue (#8137) 2017-02-21 16:24:31 +01: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