Commit Graph

434 Commits

Author SHA1 Message Date
Konstantin Käfer
7692be5d15 [core] refactor util::toString to use RapidJSON's stringification 2018-10-23 12:23:40 +02:00
Konstantin Käfer
8bf66ef7a7 [core] remove some uses of <iostream> and <sstream> 2018-10-23 12:23:40 +02:00
Bruno de Oliveira Abinader
98c36fc06e [core] CameraOptions receives and outputs angle and pitch as degrees, not radians 2018-10-19 12:05:16 +02:00
Chris Loer
44f79031b7 [android] Include "must-revalidate" in putResourceWithURL 2018-10-17 12:53:24 -07:00
Chris Loer
3f98d6a821 [android] Add OfflineManager.putResourceForURL
Useful for pre-warming the ambient cache
2018-10-17 12:53:24 -07:00
Chris Loer
fdfb9386a6 [android] Minimal Android support for 'format' expression
- No dedicated support for creating format expressions
- Java accessors for 'text-field' flatten back to String
- 'text-field' setter implicitly creates a 'format' expression. For tests, use JsonArray to build an equivalent format expression by hand.
2018-10-15 13:15:46 -07:00
Tobrun
9e7694cb38 [android] - replace OnMapChange with specific callbacks 2018-10-11 14:12:35 +02:00
Konstantin Käfer
4004a85a79 [android] explicitly set temp directory for SQLite3 2018-09-26 13:47:28 +02:00
Łukasz Paczos
4148a5a91a [android] expose offline database merge API 2018-09-26 13:47:28 +02:00
tobrun
5238c77696 [android] - add binding integration for cross source collision 2018-09-12 14:10:46 -07:00
tobrun
6e171a62a9 [android] - replace platform default implementation using nunicode for uppercasing an lowercasing with an Android specific String.java equivalent 2018-09-11 12:58:56 +02:00
Konstantin Käfer
4a3c4edb59 [android] add support for gnustl 2018-09-11 11:43:54 +02:00
ryanhamley
31cca05fc6 Port symbol-z-order symbol layout style-spec property to Native 2018-09-07 13:05:19 -07:00
John Firebaugh
79bf0e8af6 [android] jni.hpp 4.0.0 2018-09-07 09:44:12 -07:00
John Firebaugh
5911e3b13f [android] Simplify annotation conversion 2018-09-07 09:44:12 -07:00
John Firebaugh
6be8302296 [android] Simplify JSON conversion 2018-09-07 09:44:12 -07:00
John Firebaugh
3948bbd777 [android] Simplify Point conversion 2018-09-07 09:44:12 -07:00
John Firebaugh
115e8625e1 [android] Simplify Feature conversion 2018-09-07 09:44:12 -07:00
John Firebaugh
53c3c327f0 [android] Upgrade to latest jni.hpp 2018-09-07 09:44:12 -07:00
John Firebaugh
6806ba5b52 [android] Put function inverses next to each other 2018-09-07 09:44:12 -07:00
John Firebaugh
260f96c253 [android] Retain a shared thread pool reference
Otherwise it may be prematurely deleted.
2018-09-04 11:18:55 -07:00
tobrun
42aaf3e346 [android] - add get source id to supported layer types 2018-09-04 15:16:18 +02:00
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