Commit Graph

576 Commits

Author SHA1 Message Date
Cameron Mace
da9864f25d Made telemetry dialog material (#6726)
* Made telemetry dialog material

* cleaned up attribution_main_menu
2016-10-21 10:29:12 -04:00
Tobrun
6d50435880 [android] - Configure Gradle properties as part of the instalation process. (#6729) 2016-10-20 10:21:15 +02:00
Tobrun
e5762ab728 [android] - update map change events javadoc (#6732) 2016-10-19 00:00:15 +02:00
Tobrun
f45712a6b3 [android] - add package-info.java for net package (#6733) 2016-10-18 23:59:57 +02:00
Tobrun
0ccc7f51ba [android] - fixup MyLocationView heading (#6671)
[android] - convert angles to radiants in jni, correct follow animation for MyLocationView

do not sanitise input when recreating from other camera object, input is already sanitised before

cleanup mylocationview, made animation bit more smooth, improved UX when switching between tracking modes

cleanup CameraUpdateFactory, hide internally used api.

only invalidate position if required, remove outdated comments

correct camera position values

made zoom activity a bit more interesting

made dynamic marker activity a bit more interesting

FIXUP
2016-10-18 17:56:39 +02:00
Tobrun
1bee9d34f5 Reusable point fromScreenLocation (#6652)
* Fixed bug where fromScreenLocation would modify the actual Point being passed in

* [android] - move reused point to Projection class, migrated screen density logic to projection

fixup code to be unit testable
2016-10-17 14:51:39 +02:00
Tobrun
d22d8a6c9b 6700 proguard update (#6718)
* [android] - include net package in proguard config, added the default EnclosingMethod disable warning and fixed up typo.

* update test app dependency leak canary to do a proguard release build, replaced keep support lib classes by dontwarn following Google guidelines, remove outdated/obsolete square configuration
2016-10-17 14:50:25 +02:00
Tobrun
bda0e94af2 MarkerView more robust when updates are asynchronous (#6717)
* [android] - remove ViewMarkers crash, show correct view cache size in test activity

* use MapboxMap to indicate a MarkerView is no longer added on a map, no future updates will be passed on to core.

* resolve memory leak
2016-10-17 14:50:09 +02:00
Tobrun
1898df606d [android] - add transparent image for MarkerViews ghosting SymbolAnnotations (#6675)
* [android] - add transparent image to core for MarkerView ghosting SymbolAnnotations. Removes logging messages: `Can't find sprite ... `. Cleanup MapView.

* [android] - use alpha_8 config to only allocate one byte, rename id for better readability.
2016-10-13 17:04:02 +02:00
Tobrun
9669997181 [android] Fix gestures when MapView is not full screen (#5562)
This fixes #5528
2016-10-12 20:02:04 +02:00
tomlocks
0fc7fd11d9 [android] Fixed wrong location view interpolation (#6668) 2016-10-12 11:07:25 +02:00
Tobrun
e0b025ab4d [android] - correct android to core conversion of camera options. (#6660)
* [android] - correct android to core conversion of camera options.

* fix MarkerView tilting, tilt is already in degrees

* same fix for MyLocationView
2016-10-12 10:56:38 +02:00
Tobrun
94a014cde3 [android] - revert making bearing and tilt to radiants (#6656) 2016-10-11 16:51:33 +02:00
Tobrun
fb2338ceca [android] - close response body to avoid connection leak (#6650) 2016-10-11 15:53:16 +02:00
Antonio Zugaldia
4cc7e7de4f [android] #6617 - Introduce a setConnected method to manually set a connected flag
* [android] introduce a setConnected method to manually set a connected flag

* extend connected state to ConnectivityReceiver

* extend connected state to ConnectivityReceiver
2016-10-11 09:17:07 -04:00
Josh Burton
e3c79bfd34 [android] - Use correct nullity annotation for convertView (#6521) 2016-10-11 15:07:47 +02:00
Ivo van Dongen
61d8ecefda [android] Runtime Style Filter enhancements (#6623)
* [android] Additional null check - prevents errors in array conversion

* [android] style conversion - delete local refs asap to avoid ref table overflow

* [android] Filter - hide concrete implementation classes to avoid confusion
2016-10-11 10:30:38 +03:00
Tobrun
5bbd27eb8f [android] - correct degrees/radiants integration into transform.cpp, fixes camera position restoration from core and missing return value occurrence. (#6641) 2016-10-10 23:51:56 +02:00
Tobrun
e598bbfa7c Rotate markerview (#6640)
* [android] - MarkerView rotation bug, limit degrees from 0 to 360 while creating a MarkerView

* update MarkerView#setRotation to limit input from 0 - 360 degrees, calculates difference in angle and animates rotation by a certain amount instead of animating to a value. Exposed new AnimatorUtils#animateRotationTo. Integrated into MarkerViewManager. Cleanup some unused imports. Updated javadoc.

* updated MarkerViewActivity in test application to test for regressions.

* added tests to validate changes to MarkerView#setRotate
2016-10-10 23:51:30 +02:00
Tobrun
740c995c2b [android] - apply tilt to markerview with initial camera position (#6622) 2016-10-07 16:47:16 +02:00
Tobrun
79a80630fd [android] - image opt android layout editor image (#6624) 2016-10-07 15:55:58 +02:00
Tobrun
c2333658f0 [android] - invalidate focal point when setting MyLocationView padding (#6413) 2016-10-05 22:55:54 +02:00
Tobrun
d96aabec43 [android] - correct focal point data when double tapping (#6595) 2016-10-05 22:54:54 +02:00
Tobrun
8b5228d6ec [android] - correct focal point with padding and tilt enabled + cleanup code MyLocationView (#6594) 2016-10-05 22:54:35 +02:00
Tobrun Van Nuland
3b72c288ad [android] refactored exposed api on MapboxMap
fix unit tests

fixup comments
2016-10-05 17:10:45 +02:00
clydebarrow
a4b0e2f30c [android] Revise handling of tracking modes and interactions
with touch gestures.

This fixes issues #6549 and #6567. Also pertinent to #6557.
Additional code has been added to the test app (Activity "User Tracking
Mode") to test.
A potential race condition in the MapboxMap#easeCamera() methods where
a camera change generated by tracking which could have reset the tracking
modes has been eliminated by factoring out a new method
MapboxMap#easeCameraInternal().
2016-10-05 17:10:45 +02:00
Ivo van Dongen
dd7713f6ee [android] javadoc - inter-link style properties properly 2016-10-05 12:15:15 +02:00
Tobrun
e103d92b18 Rework setStyleUrl() logic to avoid NPE as per #6512 (#6574)
* [android] Rework setStyleUrl() logic to avoid NPE as per #6512

* fixup brackets + comment
2016-10-04 15:19:25 +02:00
Tobrun
4bbdb448fd [android] - make MyLocationView responsible for converting tilt to degrees. (#6558) 2016-10-03 17:19:47 +02:00
Justin R. Miller
ee4715a821 update style generation code for new style spec enum values docs (#6508)
Documentation for enum values landed in mapbox/mapbox-gl-style-spec#510. 

This updates Android, iOS, and macOS documentation code gen scripts to capitalize on them.
2016-09-30 15:55:46 -07:00
Ivo van Dongen
8fbc1bc750 [android] addImage / removeImage jni bindings 2016-09-30 17:11:22 +02:00
Tobrun
2879b36a43 [android] - convert bearing value coming from core to degrees (#6526) 2016-09-30 13:31:54 +02:00
Ivo van Dongen
2b05776f97 [android] user agent string 2016-09-29 18:40:10 +02:00
Ivo van Dongen
a126aad0b8 [android] update telemetry user-agent 2016-09-29 18:38:51 +02:00
Tobrun
87a438ec75 Optionable textureview (#6480)
* [android] - make using TextureView optional

* add deprecation comment on texture mode
2016-09-29 15:05:50 +02:00
Tobrun
1fd142a449 [android] - update to lost 1.1.1 (#6476) 2016-09-29 11:43:19 +02:00
Tobrun
c97a1047df 6453 restore tilt after orientation (#6491)
* [android] - correct tilt value when restoring activity or creating from xml

* correct values requesting camera position adhoc

* updated logic change in unit tests
2016-09-29 11:41:08 +02:00
Tobrun
3835ed556b 6402 update offline metadata android (#6456)
* [android] - update offline metadata jni integration

* extract offline utils for reuse

* add test activity for update metadata

* fix requested signature changes
2016-09-28 07:48:01 +02:00
Justin R. Miller
b9fafbc2ee clarify circle color as fill (#6447) 2016-09-23 16:16:47 -07:00
Ivo van Dongen
742d6d8275 [android] set connectivity state pro-actively 2016-09-23 10:47:54 +02:00
Tobrun
e8d47269f8 [android] #5737 - disable tracking when a camera change occurs, treat camera change equal to gesture (#6414) 2016-09-22 10:30:24 -04:00
Young Hahn
6a2ce352d1 Better handling for undefined icon|text-rotation-alignment (#6253)
* [core, ios, android] Use `auto` value for properties with calculated defaults

* Fix render tests
2016-09-21 16:07:33 -07:00
Ivo van Dongen
eb97dbe383 [android] Sources: peer model, mutability (#6054) 2016-09-21 11:04:32 +02:00
Ivo van Dongen
97da387273 [android] update mas dependency (#6398) 2016-09-20 17:04:21 +02:00
Ivo van Dongen
aa47680a02 [android] fire onMapReady only after style is loaded (#6046) 2016-09-20 15:10:33 +02:00
Cameron Mace
073a675c29 [android] Cleans up code in map package (#6380) 2016-09-20 07:49:03 +02:00
Tobrun
72e3d6906d [android] - do not update marker while creating (#6314)
* [android] - do not update marker while creating, add activity to prevent regression

* [core] - add asserts to incorrect usage of update and remove annotations api

* [android] - fix marker tests
2016-09-19 18:03:49 -07:00
Antonio Zugaldia
79708ff9d8 Adjust logging level for failed OkHttp requests (#6378)
* log level depending on the error type
* Squashing and Merging
* remove unnecessary log (with wrong tag)
2016-09-19 17:30:56 -05:00
Tobrun
9ef65440b6 [core] [android] - public api configurable base endpoint (#6309)
add runloop to test
2016-09-15 22:01:09 -07:00
Antonio Zugaldia
d9306dde2e [android] #6317 - avoids NullPointerException when checking mMapboxMap.getUiSettings() (#6318) 2016-09-13 15:44:03 -04:00