John Firebaugh
0dac3bc60c
[android] Explicitly delete local JNI references
...
This method seems to be called in a loop, leading to a local reference table overflow if not explicitly deleted.
See https://github.com/mapbox/mapbox-gl-native/pull/12716#pullrequestreview-150462731
2018-08-31 09:42:16 -07:00
tobrun
d297bf10ef
[android] - modularise the sdk
2018-08-24 18:40:11 +02:00
Łukasz Paczos
f9fd9c0f00
[android] synchronize and coalesce requests targeting the same TileID in the CustomGeometrySource
2018-08-23 18:29:55 +02:00
Mikhail Pozdnyakov
fb5afd34b9
[core] Add line-gradient property
...
Porting of https://github.com/mapbox/mapbox-gl-js/pull/6303
See the link above for the description of the feature and
its limitations).
Based on patch from @lbud (Lauren Budorick).
2018-08-23 19:01:40 +03:00
John Firebaugh
a842c198ac
[android] Inline geometry conversion
2018-08-21 09:26:44 -07:00
John Firebaugh
9587f569f7
[android] Simplify enum conversion
2018-08-21 09:26:44 -07:00
John Firebaugh
1584d8f70a
[android] Remove unused
2018-08-21 09:26:44 -07:00
John Firebaugh
2ff1ac3097
[android] Move conversion code to .cpp files
2018-08-21 09:26:44 -07:00
Łukasz Paczos
2c093e7f0b
[android] - converting GeoJsonSource Java features to core ones on a worker thread
2018-08-21 11:56:08 +02:00
Kiyong Jung
5297f563a4
[android] Make AndroidRendererFrontend to request render once per event loop ( #12586 )
...
When AndroidRendererFrontend::update() called multiple times in a single loop, updateAsyncTask->send() will perform nothing, thus MapRenderer::update()/requestRender() will be coalesced.
2018-08-21 11:53:05 +02:00
Ivo van Dongen
4fedcf8d06
[android] arbitrary offline region geometries
2018-08-20 22:49:01 +03:00
Konstantin Käfer
112bbc7ab2
[core] make style/conversion.hpp implementation private
2018-08-19 13:09:16 +02:00
Konstantin Käfer
6e06e55b95
WIP: use expected<T, E> for passing on errors
2018-08-14 17:03:46 -07:00
John Firebaugh
b2f60a4bf2
[core] Eliminate setProperty & co.
2018-08-13 12:39:44 -07:00
Łukasz Paczos
63d4ac05f2
[android] shutting down thread pool of the CustomGeometrySource when the source is destroyed
2018-08-10 18:31:52 +02:00
Bruno de Oliveira Abinader
3952ff5c34
[core] Replace unique_any with peer from mapbox-bindgen
2018-08-08 14:14:34 +03:00
John Firebaugh
9bdd765a02
[core] Merge DataDrivenPropertyValue into PropertyValue ( #12513 )
2018-07-31 14:21:47 -07:00
Kiyong Jung
37bbed5b9c
[android] Reuse Bitmap, Paint & Canvas instances in LocalGlyphRasterizer
...
- Make LocalGlyphRasterizer.drawGlyphBitmap() non-static
- Store and reuse Bitmap, Paint & Canvas instances
2018-07-27 11:24:26 +02:00
Chris Loer
0b2221cb74
[android, ios, macos] Generate symbol-placement: line-center wrappers
2018-07-23 13:33:27 -07:00
John Firebaugh
c8edbb0500
[core] Replace {Source,Camera,Composite}Function with PropertyExpression
2018-07-20 11:56:30 -07:00
Tobrun
418bcc2f21
[android] - expose getMap on native_map_view
2018-07-20 10:31:22 +02:00
Thiago Marcos P. Santos
bffc60fefd
[android] Fix possibly race on undefined behavior
...
`runnable->iter = runnables.end()` assumes that `::end()` is a
`static` or `constxpr` and thread-safe. This is likely to be true
for most of the implementations. That said we cannot rely on
undefined behavior and we should assume the worse case scenario.
2018-07-17 18:36:37 +02:00
tobrun
bf7792eae0
[android] - fix jni method lookup of GeometryCollection accessor geometries, add regression test
2018-07-09 12:51:34 +02:00
tobrun
99f9787cc4
[core] - add LatLng for screencoordinate to mapsnapshotter
2018-07-05 18:50:21 +02:00
tobrun
473dd9b23f
[android] - add LatLng for pixel conversion feature to MapSnapshotter
2018-07-05 18:50:21 +02:00
Mikhail Pozdnyakov
514485502d
Rename HeatmapColorPropertyValue to ColorRampPropertyValue
...
Based on patch from @lbud (Lauren Budorick).
Give `HeatmapColorPropertyValue` a more generic name,
since the same value type will be used for both `heatmap-color`
and `line-gradient` properties.
2018-07-05 15:11:14 +03:00
tobrun
ec78936e18
[android] - add bearing and pitch to get camera for geometry
2018-07-05 13:30:50 +02:00
tobrun
add9eecd99
[android] - add bearing and tilt to LatLngBounds, incorporate current tilt and bearing transformation in old api
2018-07-05 13:30:50 +02:00
Anand Thakker
cfd436c287
[core] Avoid blocking in Thread<Object> constructor ( #12151 )
...
* Introduce AspiringActor, EstablishedActor
This pair of objects represents the two-phase (parent-thread /
child-thread) construction that's needed to support constructing
Thread<Object> without blocking until the child thread is up and
running.
An `AspiringActor<O>` is responsible for:
- ownership of the actor's `Mailbox`
- allocating the memory for (but *not* constructing) the target object `O`
Using these two pieces--the mailbox and a stable address for `O`--an
`AspiringActor<O>` can accept messages for the target object, or provide
`ActorRef<O>`s that do so, before the object has actually been
constructed by the corresponding `EstablishedActor<O>`. (Such messages
are queued in the mailbox until after the object is constructed.)
This allows for an `AspiringActor<O>` to be created and safely used by a
thread other than the one on which the target object will (eventually)
live.
An `EstablishedActor<O>` is responsible for managing the lifetime of the
target object `O` and the open/closed state of the parent's `mailbox`.
The `O` object's lifetime is contained by that of its owning
`EstablishedActor<O>`: the `EstablishedActor` constructor executes the
`O` constructor via "placement new", constructing it at the address
provided by the parent `AspiringActor`, and the `~EstablishedActor`
destructor similarly executes the `~O` destructor (after closing the
mailbox). `EstablishedActor` should therefore live entirely on the
thread intended to own `O`.
* Remove Actor#{invoke,ask}
2018-07-03 17:17:39 -04:00
Chris Loer
11c333672f
[android] Android "collator" implementation
...
- Uses java.text.Collator for comparison
- Uses java.util.Locale for locale loading
- Uses LanguageTag for BCP 47 parsing
- Falls back to non-locale-aware nunicode/default comparison for case-sensitive/diacritic-insensitive.
- Testing these changes depends on running Android render tests
- "collator" is not yet exposed in the SDK bindings.
2018-07-03 10:03:05 -07:00
tobrun
279dd93f7c
[android] - add support for sdf by exposing sdf confiigurationn when calling MapboxMap#addImage.
2018-06-25 13:44:15 +02:00
Molly Lloyd
e1af62e87d
[core] add raster-resampling property ( #12176 )
...
* update style-code for raster-resampling
* implement user-defined raster-resampling
* invert filter condition
* raster-resampling -> raster-resampling-mode for darwin language conventions
2018-06-21 14:37:17 -07:00
Konstantin Käfer
4c7842045a
[android] initialize RunLoop::Impl::nextRunnable iterator
2018-06-19 16:23:59 +02:00
tobrun
930d0bc17c
[core] [android] - optional map snapshotter camera position
2018-05-31 07:23:06 +02:00
tobrun
7193a43729
[core] [android] - add style json setter/getter to map snapshotter
2018-05-30 20:23:57 +02:00
tobrun
2e2d5bf03c
[android] - null check access token in filesource initializer
2018-05-29 15:33:04 +02:00
Tobrun
671fe37b1e
Style JSON configuration on map snapshotter ( #11976 )
...
* [core, android, darwin] - add style JSON configuration on MapSnapshotter
2018-05-23 10:52:22 +02:00
Tobrun
60505b0317
[android] - remove mips and armeabi as supported ABIs
...
[android] - bump CI image to NDK 17 compatible
[core] - remove setting edgeDistance to 0, comparison 'const short' > 32767 is always false
[android] - remove throwing in desructor, undefined behaviour
[android] - bump dependency versions of project
2018-05-22 17:53:34 +02:00
Fabian Guerra
30376f3ce1
Merge branch 'release-boba' into master
...
# Conflicts:
# mapbox-gl-js
# platform/android/CHANGELOG.md
# platform/android/MapboxGLAndroidSDK/gradle.properties
# platform/android/gradle/dependencies.gradle
# platform/darwin/src/MGLVectorTileSource.mm
# platform/darwin/src/MGLVectorTileSource_Private.h
# platform/ios/CHANGELOG.md
# src/mbgl/style/expression/compound_expression.cpp
2018-05-17 11:47:31 -04:00
Lucas Wojciechowski
a4e2c1af1f
[core] Convert "legacy" filters directly into expressions ( #11610 )
...
Ports the specialized filter-* expressions from GL JS, adding them to src/mbgl/style/expression/compound_expression.cpp
2018-05-10 12:37:14 -07:00
Łukasz Paczos
5388f9ea2c
[android] - checking is renderer is not destroyed before delivering the snapshot
2018-05-04 18:50:18 +02:00
Łukasz Paczos
f0b5a56a4b
[android] - unwrap LatLngBounds before creating core object
2018-05-04 18:50:18 +02:00
Łukasz Paczos
8bf1ff1b36
[android] - unwrap LatLngBounds before creating core object
2018-05-02 12:23:37 +02:00
Łukasz Paczos
cf4b4e728c
[android] - checking is renderer is not destroyed before delivering the snapshot
2018-05-02 12:20:45 +02:00
Fabian Guerra
e08b6fe87f
Merge branch 'release-boba' into master
...
# Conflicts:
# circle.yml
# include/mbgl/style/expression/let.hpp
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/LatLngBounds.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapGestureDetector.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapKeyListener.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Projection.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java
# platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/geometry/LatLngBoundsTest.java
# platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml
# platform/android/gradle/dependencies.gradle
# platform/android/src/example_custom_layer.cpp
# platform/android/src/geojson/point.cpp
# platform/darwin/src/NSPredicate+MGLAdditions.mm
# platform/darwin/test/MGLExpressionTests.mm
# platform/ios/Mapbox-iOS-SDK-nightly-dynamic.podspec
# platform/ios/Mapbox-iOS-SDK-symbols.podspec
# platform/ios/Mapbox-iOS-SDK.podspec
# platform/ios/app/MBXViewController.m
# src/mbgl/renderer/layers/render_custom_layer.cpp
# src/mbgl/style/conversion/filter.cpp
# src/mbgl/style/expression/interpolate.cpp
# src/mbgl/style/expression/value.cpp
# test/style/filter.test.cpp
2018-04-23 10:44:02 -04:00
Tobrun
c2a78d0d72
[android] - add paused state to map renderer, don't render snapshot when paused ( #11358 )
2018-04-10 11:10:14 +02:00
Tobrun
44ce5ab087
Rework expression conversion ( #11490 )
...
* [android] - rework expression conversion
2018-04-10 11:09:42 +02:00
Tobrun
c1dabbde8d
[android] - add delete local refs calls for make jni strings
2018-04-09 20:14:45 +02:00
Ivo van Dongen
14423a225b
[android] release local refs early
2018-04-09 17:46:02 +03:00
Asheem Mamoowala
099fcc3b3c
Use a host interface for CustomLayer instead of function pointers ( #11553 )
...
Use a host interface for CustomLayer instead of function pointers
Co-authored-by: Julian Rex <julian.rex@mapbox.com >
2018-04-02 16:15:25 -07:00