Commit Graph

426 Commits

Author SHA1 Message Date
Pablo Guardiola
85cb04be22 [android] Fix gradle developer config creation task with discussed suggestions (#8897)
* fix gradle developer config creation task with discussed suggestions

* fix access token not set error message
2017-05-12 12:34:03 +02:00
Minh Nguyễn
ed54849e99 [core, android, ios, macos, qt] v10 default styles
Upgraded from v9 default styles to v10 wherever the developer expects to get the latest and greatest, as well as in a couple tests where it may be beneficial to ensure that we can handle a two-digit version number in the style URL.
2017-05-11 18:57:39 -07:00
Ivo van Dongen
489f76d3a2 [android] url getter on sources 2017-05-11 18:59:11 +03:00
Pablo Guardiola
5290d7ed4c [android] refactor move unit tests from test app to sdk and add some annotation manager tests (add marker and add markers) (#8261) 2017-05-11 12:06:11 +02:00
Tobrun
ab20413edf [android] - add 3D buildings example (#8845)
[android] - add support for filter for fillextrusionlayer.
2017-05-03 08:59:55 +02:00
Lauren Budorick
f6e79d7073 [core] Render fill-extrusion layers (#8431) 2017-04-27 15:56:55 -07:00
Tobrun
184cbda4e8 [android] - fix test app runtime permissions (#8823) 2017-04-26 12:16:38 +02:00
Tobrun
eed7dedf03 [android] - rework instrumentation tests (#8793) 2017-04-21 23:07:19 +02:00
Pablo Guardiola
c6be40b71b [android] Add a way to use a custom location source (#8710)
* add a way to use a custom location source

* add custom location engine example to test app
2017-04-20 20:10:29 +02:00
Tobrun
07573932a9 [android] - move calculation of LatLngBounds to core (#8765) 2017-04-20 17:31:07 +02:00
Tobrun
553ec88dc0 [android] - expose source layer identifier (#8709) 2017-04-19 15:05:08 +02:00
Tobrun
f045559b14 [android] - derived source attribution (#8630) 2017-04-13 17:24:46 +02:00
Tobrun
21f54cc506 [android] - add binding integration for Map::setLatLngbounds, add example (#8622) 2017-04-13 16:06:09 +02:00
Pablo Guardiola
7a66ec6c5e refactor signature from Hole to List<LatLng> (#8722) 2017-04-12 17:45:33 +02:00
Fabian Guerra
12b6fdbe3b Merge branch 'release-ios-v3.5.0-android-v5.0.0' into boundsj-merge-release-branch
# Conflicts:
#	cmake/core-files.cmake
#	mapbox-gl-js
#	platform/android/CHANGELOG.md
#	platform/ios/CHANGELOG.md
#	platform/macos/CHANGELOG.md
#	platform/qt/bitrise-qt5.yml
#	src/mbgl/gl/attribute.hpp
#	src/mbgl/gl/context.cpp
#	src/mbgl/gl/program.hpp
#	src/mbgl/map/map.cpp
#	src/mbgl/programs/program.hpp
#	src/mbgl/renderer/painter.cpp
2017-04-11 21:46:23 -04:00
Pablo Guardiola
b71d86599d [android] Polygon holes (#8557)
* add 1 hole support to polygon-related classes

* fix no hole crash and add triangle hole shape example

* add support for multiple holes
2017-04-11 19:10:46 +02:00
Tobrun
d7f9378bca [android] - avoid nullpointer by validating Mapbox.java creation when validating accessTokens. (#8680) 2017-04-11 00:44:18 +02:00
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
Tobrun
a46d91f7c5 Revert 5.x touch changes (#8585)
* Revert "[android] - only dispatch events if not handled by MarkerView (#8447)"

This reverts commit 09d76854ab.

* Revert "[android] - move touch handling of MarkerViews back to View#setOnClickListener. Workaround panning issue by dispatching touch events to the parent ViewGroup. (#8272)"

This reverts commit 1693b389d7.
2017-03-30 17:30:47 +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