Commit Graph

2428 Commits

Author SHA1 Message Date
Thiago Marcos P. Santos
2425cf4ef8 Revert "[android] Do not create Timers on Default main loops"
This reverts commit 13cd75f099.
2016-07-06 17:43:09 +03:00
Tobrun Van Nuland
99a4850613 [android] #5000 - initial surface view implementation. 2016-07-06 11:01:37 +02:00
Thiago Marcos P. Santos
dfd0b105cd [android] Fix issue when stop is called before run on the RunLoop
The current ::stop() implementation was not thread safe and we
should queue the ::stop() for the next loop iteration so even
if we call ::stop() before ::run(), it gets processed.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
13cd75f099 [android] Do not create Timers on Default main loops
Not supported, because we don't have control over the Looper
timeout like we do for Loopers we create. On the main thread,
Android takes care of making the application sleep and sets
an arbitrary timeout. This could be properly fixed by implementing
timers in Java, but we don't really have the use case of timers
in the main thread.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
b3b86f9be4 [android] Fix hang when calling Timer::start() twice
Calling start() from the callback was making the timer
effectively stop.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
e579199ac1 [android] Fix a bug when canceling tasks
If the next task in the queue gets canceled, we need to
adjust the iterator to the next task, otherwise a canceled
task gets executed.
2016-07-05 21:04:27 +03:00
Thiago Marcos P. Santos
70d4ebb347 [android] Fix default RunLoop not stopping
stop() for default RunLoop is only used by unit tests and we need
to wake the ALooper to get past run().
2016-07-05 21:04:27 +03: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
Minh Nguyễn
8947b0af27 [ios, macos, node] “Mapbox GL Style Specification” → “Mapbox Style Specification” (#5553) 2016-07-04 17:37:11 -07:00
Minh Nguyễn
8446a9bef2 [test] Added sample filter to scheme
Added a sample filter argument to the test scheme, disabled, so folks like me have an easier time remembering what it’s called.
2016-07-04 00:20:13 -07:00
Konstantin Käfer
eb7cfea7ea [android] upgrade to NDK r12b 2016-07-01 18:26:55 +02:00
Konstantin Käfer
77e7846756 [core] code style cleanups
- puts function definitions in a namespace ... {} rather than using namespace ...;
- remove trailing whitespace
- add trailing newline
- protect SQL statements from being formatted by clang-format
2016-07-01 12:38:33 +02:00
Cameron
a440598e2b [android] updated the testapp icon 2016-06-30 15:03:21 -05:00
Bruno de Oliveira Abinader
ad081e698a [core] Added CharArrayBuffer
Implements a custom std::streambuf to avoid creating temporary
std::string objects and thus optimizing image decode.

Suggested by @artemp in
https://github.com/mapbox/mapbox-gl-native/pull/5417#issuecomment-227700063.
2016-06-30 17:56:23 +03:00
John Firebaugh
03f30f5207 Merge remote-tracking branch 'origin/release-android-v4.1.0' 2016-06-29 17:07:15 -07:00
Brad Leege
dfbee38f53 [android] #5510 - Setting version to 4.2.0-SNAPSHOT 2016-06-29 12:23:51 -05:00
Brad Leege
a8cd7ecdfb [android] #5510 - Updating CHANGELOG for Android 4.1.0 Release 2016-06-29 12:20:25 -05:00
Brad Leege
ee4cb08e4f [android] #5510 - Fixing POM Name 2016-06-29 10:50:55 -05: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
Jesse Bounds
1fa1819de1 [ios] Merge branch 'release-ios-v3.3.0'
This merges v3.3.0 at beta 2 stage. Conflicts related to the os x ->
macOS rename were corrected manually.
2016-06-27 14:15:10 -07: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
Tobrun
76f9c1ac02 [android] #5479 - apply preRotate instead of postRotate for a correct transformation 2016-06-25 09:57:20 +02:00
John Firebaugh
b8326870e1 [core] Increment completedTileCount when appropriate (#5475) 2016-06-24 15:28:10 -07:00
Jesse Bounds
2d9ffcbadb Update podspec files for v3.3.0-beta.2 2016-06-24 14:45:42 -07:00
John Firebaugh
3ccda59099 [android] Fix crash adding line or polygon annotation 2016-06-24 12:21:44 -07:00
Jesse Bounds
d9a1033b2a [ios] Use transparent image for annotations backed by views (#5461)
The current implementation of view backed annotations mostly relies
on the existing annotation model manager and the associated underlying
boost query implementations for annotation management. However, since
the representation of the model is a view, an image was not installed
for view backed annotations. Because the underlying annotation
management implementation is not entire comfortable working without
an image, it would report
`[INFO] {Worker}[Sprite]: Can't find sprite named 'default_marker'`
when annotation models without an image were encountered.

This updates the annotation adding logic in to create (or reuse) and
install a small, invisible image for each view backed annotation.
2016-06-24 11:27:23 -07:00
Fredrik Karlsson
d29bef957f [ios] fixes #5036 draggable annotation views (#5373) 2016-06-24 19:42:20 +02:00
John Firebaugh
021d4199cb [core, node] Implement bindings for addSource 2016-06-24 09:39:51 -07:00
John Firebaugh
16c435b151 [core, node] Implement bindings for addLayer 2016-06-24 09:39:51 -07:00
Tobrun Van Nuland
64da7fa684 [android] Addresses marker view flat bug
Fixes #5427
2016-06-24 09:14:58 -04:00
Tobrun Van Nuland
b37de9f8f4 [android] - Fix locational runtime permissions
Fixes #5450
2016-06-24 08:56:11 -04:00
Jesse Bounds
05b6e72493 [ios] Cycle through both UIView and UIImage backed annotations
This changes the way the the calculation for the largest visual
annotation representation (stored in
_unionedAnnotationRepresentationSize) is done so that it includes both
images and views. The `annotationTagAtPoint` method is then able to
find annotation objects that are in a query rect formed from the
sizes of all manner of point annotation visual representations.

The `annotationTagAtPoint` method also gains new logic in a conditional
to handle annotations backed by MGLAnnotationViews. Similarly to
the image case, it filters out disabled annotations and calculates
a centered rect for the view. The hit test logic remains the same but
now works correctly for both the centered rects of both images and views.

This also fixes a bug where the `largestAnnotationViewSize` was always
holding the last annotation view size and not necessarily the largest.
This would affect when annotation views are put into a reuse queue since
the size is used to help determine when an annotation view has gone
offscreen.
2016-06-23 12:04:23 -07:00
Tobrun Van Nuland
cff1a8929f [android] Make markers View.GONE when being added for the first time to the map
Fixes #5439
2016-06-23 12:13:36 -04:00
Tobrun Van Nuland
6b1a753fd4 [android] Recalculate offset with new anchor
Fixes #5421
2016-06-23 12:00:47 -04:00
Minh Nguyễn
f5f39c8b3a [ios, macos] Renamed overdraw to overdraw visualization (#5416)
A verb doesn’t make sense in this enum value. Instead, use a descriptive word for this effect and describe it in detail in the documentation comment.

Cherry-picked from 415c182946.
2016-06-23 00:03:51 -07:00
Minh Nguyễn
415c182946 [ios, macos] Renamed overdraw to overdraw visualization (#5416)
A verb doesn’t make sense in this enum value. Instead, use a descriptive word for this effect and describe it in detail in the documentation comment.
2016-06-22 23:22:41 -07:00
Stephen Niedzielski
4c87da6b8f Allow Mapbox to be served to devices without Wi-Fi
android.permission.ACCESS_WIFI_STATE implies an android.hardware.wifi
requirement. Make Wi-Fi optional.
2016-06-23 08:08:13 +02:00
Jesse Bounds
5832f63acc [android] Cancel other gestures during shove.
This adds a guard so that when a shove gesture is occurring, no other
gestures take place. This helps avoid the disorienting feeling of
having the map move left and right and rotate while trying to tilt it
and looks more like Google maps.
2016-06-22 21:54:44 +02:00
Bruno de Oliveira Abinader
7d63847bec [Qt] Use mbgl::LineString instead of mbgl::Polygon as default shape 2016-06-22 18:07:19 +03:00
John Firebaugh
3459b83736 [core, node] Node bindings for setFilter 2016-06-21 18:24:49 -07:00
John Firebaugh
220fc7adc9 [node] Support setLayoutProperty(..., "visibility", ...) 2016-06-21 16:30:35 -07:00
John Firebaugh
8a9ee26b0e [core] Use mbgl::style::conversion in node bindings 2016-06-21 16:04:22 -07:00