Commit Graph

466 Commits

Author SHA1 Message Date
Cameron
70c21da06b [android] improved and fixed compass tracking 2016-08-05 16:37:39 -04:00
Ivo van Dongen
52cb6122f8 [android] #5858 - added convenience methods for color properties 2016-08-03 18:34:23 -04:00
Tobrun Van Nuland
f94c979886 [android] #5717 - update MarkerView when added to the map, previously only updated with map change events. 2016-08-03 17:55:18 -04:00
Tobrun Van Nuland
6016b2981e [android] SurfaceView compatible snapshot api
[android] #5587 - snapshot API on surface view, create Bitmap with a ByteBuffer

[android] #5587 - write bitmap to external storage

PreMultipliedImage approach

callback implemented

clean up code

introduce bitmap reuse

cleanup

renaming surfaceContent to bitmap
2016-08-03 14:55:45 -04:00
Tobrun Van Nuland
9b871a9a0f [android] #5378 - NavDrawer rendering issues, added snackbar example 2016-08-03 14:53:23 -04:00
Tobrun Van Nuland
75a1a9697b [android] #5000 - initial surface view implementation. 2016-08-03 14:52:30 -04:00
Tobrun
f26c89c0b6 [android] #5663 - make shape annotations updateable 2016-08-03 14:50:41 -04:00
Ivo van Dongen
10b2cc60a7 [android] #5610 - Runtime style api - part 2 2016-08-02 16:58:03 -04:00
Tobrun Van Nuland
5870fceb25 [android] #5500 - add layout editor support for my location view 2016-07-27 08:59:37 +02:00
Ivo van Dongen
9a3eadfd5b [android] #5610 - Initial Runtime Style Bindings
[android] #5610 - Adjusted public api after discussion

[android] #5610 - added jni binding for NativeMapView#getLayer

[android] #5610 - Added initial test Activity

[android] #5610 - Started on NativePeer implementation for Layer

[android] #5610 - replaced low-level jni code with high-level for native getLayer

[android] 5610 - completed basic layer peer class - constructible from java and c++

[android] #5610 - removed reference that was redundant and causing the finalizer exception

[android] #5610 - Added a property peer

[android] #5610 - added value type to do type conversions - wip

[android] #5610 - simplified property conversion approach - wrapped value with jenv

[android] #5610 - added some more value conversions

[android] #5610 - Finished conversion for basic types

[android] #5610 - allow color's to be set as either an android color int or a String to support all formats in the spec

[android] #5610 - encode color ints as rgba to retain alpha channel

[android] #5610 - recalculate classes after paint property

[android] #5610 - more examples

[android] #5610 - fixed the example

[android] #5610 - cleaned up example code before continueing

[android] #5610 - added layout property example

[android] #5610 - set visibility on layer

[android] #5610 - added removeLayer and example

[android] #5610 - added more type conversions

[android] #5610 - Started on peer classes for layer implementations - WIP

[android] #5610 - First complete layer subclass peer implementation

[android] #5610 - added a little bit of structure before adding the other layer types

[android] #5610 - generate the c++ headers from the style spec

[android] #5610 - make sure the visibility is set as a string

[android] #5610 - Generate c++ layer peer class implementations from the style spec

[android] #5610 - generate java layer peer classes

[android] #5610 - cleanup comments

[android] #5610 - register all c++ peer classes with jni

[android] #5610 - addLayer

[android] #5610 - comment out broken case

[android] #5610 - Sources api - very much WIP

[android] 5610 - GeoJson source implementation and geojson conversion

[android] #5610 - cleanup add source/layer example a bit

[android] #5610 - initial filter api

[android] #5610 - Added filter api on the relevant Layer classes

[android] #5610 - raster layer is not filterable

[android] #5610 - actually make it compile

[android] #5610 - completed filter implementation

[android] #5610 - Vector and Raster Source + examples

[android] #5610 - removed superfluous interface, moved filters to the correct package

[android] #5610 - fixed comments

[android] #5610 - moved tests to the right package

[android] #5610 - hide difference between paint and layout properties in public api, make more performant set method for proeprties

[android] #5610 - fix rebase issue
2016-07-26 16:29:26 -04:00
Bharath MG
154d771220 [android] Fixes #5777. deselectMarker is delegated to MapboxMap from Marker manager. 2016-07-24 17:19:59 +05:30
Tobrun Van Nuland
39512aaef1 [android] #5679 - move logo and attribution to the top right
[android] #5679 - get correct top margin for logo when saving state of MapView
2016-07-24 09:45:40 +02:00
Tobrun Van Nuland
82478e2ea7 [android] #5745 - allow selectMarker on MapboxMap to be called with a MarkerView 2016-07-24 09:43:49 +02:00
Tobrun
ea2ee649fa [android] #5738 - default navigation drawer example
[android] #5738 - migrated to MapFragment approach & AppCompat compatible

[android] #5378 - make drawer work with inner class fragments

[android] #5738 - navigation drawer proposition

[android] #5738 - cleanup
2016-07-24 09:39:08 +02:00
Tobrun Van Nuland
494e6849c2 [android] #5756 - correctly load style from xml attributes 2016-07-24 09:36:52 +02:00
Bharath MG
e16c906bbf [android] fixes #5762. Passing pixel points to native jni for getting latlng. 2016-07-24 04:07:49 +05:30
Brad Leege
e33b9981cb Revert "[android] #5000 - initial surface view implementation."
This reverts commit 99a4850613.
2016-07-22 12:54:21 -05:00
Brad Leege
1972d932d5 Merge branch 'release-android-v4.1.1'
# Conflicts:
#	platform/android/MapboxGLAndroidSDK/gradle.properties
#	test/util/mapbox.cpp
2016-07-19 16:32:45 -05:00
Brad Leege
97f5bb0ff7 [android] #5725 - Updating version to 4.1.1 2016-07-19 13:49:20 -05:00
Brad Leege
f5b5e6332b [android] #5718 - Adding support for SharedPreferences 2016-07-18 17:59:07 -05:00
Brad Leege
b03471bc8d [android] #5536 - Adding GzipRequestInterceptor to Telemetry OkHttp Client 2016-07-18 10:42:47 -05:00
Brad Leege
371a8ef6b2 [android] #5536 - Building GzipRequestInterceptor 2016-07-18 10:42:47 -05:00
Antonio Zugaldia
5c037f4745 [android] Introduce a getDatabasePath() method that enables switching storage paths
Fixes #5589
2016-07-15 09:58:53 -04:00
Brad Leege
95e5d12235 [android] #5682 - Cloning events list to prevent synchronization issues 2016-07-14 16:20:36 -07:00
Brad Leege
f2585b342c [android] #5682 - Adding NaN and Infinite checks to trackGestureDragEndEvent() and trackGestureEvent() 2016-07-14 16:20:36 -07:00
Antonio Zugaldia
11095881f7 [android] Adds an API to enable/disable delivering messages when the region goes inactive. 2016-07-14 16:44:58 -04:00
Cameron
765e8d2be1 [android] latlngbounds includes added in builder
Fixes #5574

added includes test
2016-07-14 12:13:44 +02:00
Tobrun
fd5ee40506 [android] #5631 - add a concrete java exception when creating a marker without the required position field.
[android] #5631 - updated test cases to handle invalid position on a Marker
2016-07-14 09:36:51 +02:00
Brad Leege
5fb0e878b4 [android] #5680 - Adding 1000 event cap to send telemetry data 2016-07-13 18:32:14 -07:00
Tobrun Van Nuland
9387523376 [android] #5649 - fixes fragment null pointer when creating a SupportMapFragment without a OnMapReadyCallback 2016-07-13 16:43:01 +02:00
Justas Medeisis
566c6cf618 [android] #5649 - Request MapView parents not to intercept scroll gestures. 2016-07-13 16:43:00 +02:00
Tobrun
3dacbdd42e [android] #5438 - add bearing to MyLocationView for the SDK camera object
[android] #5438 - integrate MyLocationView set bearing inside the MapView setBearing

[android] #5438 - invalidate the MapView instead of calling update from core.

[android] #5438 - add bearing MyLocationView to setBearing focal point on MapView

[android] #5438 - Get correct bearing when camera object is rotated around the z-axis, notify MyLocationView when camera position changes, update test utilities.

[android] #5438 - fixes compass tracking
2016-07-13 14:52:15 +02:00
Tobrun
cbfc9bc33c [android] #5541 - removes requirement of MapboxAccountManager.start before setContentView.
[android] #5541 - add a MapboxAcountManagerNotStartedException when calling getInstance when not started.

[android] #5541 - fixes using access tokens in attributes & MapboxMapOptions

[android] #5541 - improved MapboxAccountManager exception message
2016-07-13 14:47:42 +02:00
Brad Leege
a73c81cc55 [android] #5613 - Limiting location event latitudes and longitudes to 7 digits after the decimal place 2016-07-12 16:59:33 -07:00
Tobrun
caba8c11b9 [android] - remove duplicate bearing/direction API from MapView 2016-07-11 15:52:23 +02:00
Tobrun
d929e32217 [android] #5513 - make sure view is measured first before anchoring 2016-07-07 14:01:23 +02:00
Tobrun
85756f360e [android] - Resolves updating marker view position with SurfaceView 2016-07-07 14:00:05 +02:00
Tobrun Van Nuland
99a4850613 [android] #5000 - initial surface view implementation. 2016-07-06 11:01:37 +02:00
Tobrun
2bf4e20052 [android] #5104 - make nativePixelForLatLng faster (74ms to 57ms)
[android] #5104 - make nativeLatLngForPix faster (52ms - 45ms).

[andriod] #5104 - make nativeSetLatLng faster (117ms to 105ms)

[android] #5104 - make nativeFlyTo faster (106ms to 97ms)

[android] #5104 - make nativeEaseTo faster (103 to 94ms)

[android] #5104 - make nativeJumpTo faster (94 to 86ms)

[android] #5104 - make nativeProjectedMetersForLatLng faster (32 to 30ms)

[android] #5104 - make nativeLatLngForProjectedMeters faster (32 to 30ms)
2016-07-05 15:43:19 +02:00
Tobrun
a40953dd71 [android] - Remove StyleInitializer class, obsolete with introduction MapboxAccountManager 2016-07-05 13:34:22 +02:00
Tobrun
6b0c16a148 [android] #5564 - fixes latitude lint range setup for getMetersPerPixelAtLatitude 2016-07-05 10:49:47 +02:00
Tobrun
87209bd04f [android] - add javadoc to mapboxmapoptions 2016-07-05 10:07:08 +02:00
Tobrun
ced4ad63f7 [android] - fixes deprecation javadoc of accessToken 2016-07-05 09:09:31 +02:00
John Firebaugh
03f30f5207 Merge remote-tracking branch 'origin/release-android-v4.1.0' 2016-06-29 17:07:15 -07:00
Brad Leege
799dc9bd93 [android] #5510 - Setting properties to 4.1.0 for Release 2016-06-29 10:39:07 -05:00
Brad Leege
e2499207a7 [android] #4700 - Removing Deprecated annotation on MapboxMap.OnMyLocationChangeListener 2016-06-28 11:56:19 -05:00
Brad Leege
5cc174c0f5 [android] #5470 - Adding NaN and Infinite checks to location event tracking 2016-06-27 13:46:43 -05:00
Tobrun
3456e086ac [android] Fixes disappearing markers when crossing dateline, remove debug exception catch.
Fixes #5402
2016-06-27 10:18:38 -04:00
Tobrun
0d17bb1cc8 [android] #5479 - don't invalidate MapView when we are animating MyLocationView with an ObjectAnimator. 2016-06-25 10:03:04 +02:00
Tobrun
871f82dceb [android] #5479 - Don't disable rotate gesture if we have tracking disabled 2016-06-25 10:00:18 +02:00