Konstantin Käfer
729eeeb3f8
[core] remove use of <boost/algorithm/string.hpp>
2018-10-23 12:23:40 +02:00
Konstantin Käfer
c87c25cc84
[core] don't use <sstream> and <iomanip> for string construction
2018-10-23 12:23:40 +02:00
Konstantin Käfer
eb828dfd29
[core] add the ability to stringy numbers as hex
2018-10-23 12:23:40 +02:00
Konstantin Käfer
43687b4781
[core] add ability to stringify doubles that are integer with and without trailing ".0"
2018-10-23 12:23:40 +02:00
Konstantin Käfer
decbde1616
[core] deduplicate dtoa() from RapidJSON and add tests
2018-10-23 12:23:40 +02:00
Chris Loer
ce76bde13d
[core] Initial implementation of 'format' expression
2018-10-15 13:15:46 -07:00
Konstantin Käfer
071129bf61
[linux,qt] Remove remainder of WebP support
2018-09-13 13:27:44 +02:00
Chris Loer
d735d89835
[core] Port "collision group" plumbing to gl-native.
...
[node] Hook up map-wide "crossSourceCollisions" option, defaulting to true.
[test] Pass "crossSourceCollisions" test option through test harness; enable cross-source-collisions tests on native.
2018-09-12 14:10:46 -07:00
Konstantin Käfer
4a3c4edb59
[android] add support for gnustl
2018-09-11 11:43:54 +02:00
Asheem Mamoowala
fcab3a81cd
Add unit tests and fixtures for OfflineDatabase::mergeDatabase
2018-08-28 07:14:54 -07:00
John Firebaugh
8ca419fb2e
[core] Evict unused font stacks from GlyphManager
2018-08-17 09:38:39 -07:00
John Firebaugh
58202eaf80
[core] Optimize generated set{Paint,Layout}Property code
2018-08-13 12:39:44 -07:00
Sudarsana Babu Nagineni
fc0745a699
[core] Fix build when building Qt Location plugin for Android
...
- log2 is not available on Android before API 18.
- Android doesn't have 'round' on the std:: namespace when using g++.
Co-authored-by: Thiago Marcos P. Santos <thiago@mapbox.com >
2018-08-10 11:19:24 +03:00
Bruno de Oliveira Abinader
20d21cb7bc
Revert "[core] Replace Boost.Spirit with std::regex in CacheControl::parse()"
...
This reverts commit 990b3b11b9 .
2018-08-08 19:03:55 +03:00
Chris Loer
4291688b86
[core] Use correct Log::record overload. ( #12571 )
2018-08-08 10:53:01 -04:00
Bruno de Oliveira Abinader
990b3b11b9
[core] Replace Boost.Spirit with std::regex in CacheControl::parse()
2018-08-08 14:14:34 +03:00
Asheem Mamoowala
07b0021ce3
Add fuzz tests for TileCover and fix out of bounds access crash.
2018-07-16 17:11:03 -07:00
Asheem Mamoowala
15019425be
Better describe the streaming tilecover algorithm in comments
2018-07-16 17:11:03 -07:00
Asheem Mamoowala
b2ff57c09c
Fix TileCover asserts. The create_bounds_towards_* methods were treating
...
all point arrays as rings. Simplify the logic to only compare against
the next pt in the bound.
2018-07-16 17:11:03 -07:00
Konstantin Käfer
77894f0586
[core] treat parsedate as C++ file to remove C build rules
...
It is already wrapped with #ifdef __cplusplus extern "C", so we can safely compile it as C++ but retain C linkage
2018-07-16 18:25:09 +02:00
Lloyd Sheng
eb70b89849
[core] Measuring tiles requesting/parsing time using logging ( #12152 )
...
* Tile timing
* Refactor logging code
* Keep the scope of `messageStream` constrained
* Make log message more clear
* Fix crash issue if onlineResponse.data is null
2018-06-21 11:24:14 +08:00
Julian Rex
bdf2e1f5d4
[ios] Added check for -Wtautological-constant-compare prior to ignore. ( #12177 )
2018-06-19 22:55:45 -04:00
Konstantin Käfer
2b2de05612
[core] allow logging error codes and formatting strings at the same time
2018-06-12 17:41:16 +02:00
Konstantin Käfer
1fbf3f2d48
[test] standardize on database file name and move I/O functions to util
2018-06-12 17:41:16 +02:00
Konstantin Käfer
d66251234d
[core] don't use floating point versions of pow/log
...
GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable.
Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary.
See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
2018-06-04 10:43:21 +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
Bruno de Oliveira Abinader
23a9d3b623
[core] Use std::ios::binary format in std::ifstream
2018-05-22 16:53:05 +03:00
John Firebaugh
a84ac4c8d7
[core] Align URL token replacement behavior with GL JS
...
I.e. preserve unknown tokens in URLs rather than replacing them with an empty string.
2018-05-18 17:19:45 -07:00
Chris Loer
b820ca4686
[core] Remove unused 'Throttler' class.
...
Throttler was previously used to control how frequently background placement ran.
2018-04-30 17:08:09 -07:00
Chris Loer
65a4ee2373
[core] Port is-supported-script to native.
...
Native port is much simpler because RTL text support is always enabled.
2018-04-27 16:05:14 -07:00
Chris Loer
f86fe44dbd
[core] fix circle querying for scale and alignment
...
This fixes circle querying for cases where either
circle-pitch-alignment=map
or
circle-pitch-scaling=viewport
2018-04-26 18:03:17 -04:00
Asheem Mamoowala
4344812ef5
[core] Streaming TileCover for polygonal regions ( #11267 )
...
A per-tile streaming algorithm for tile cover on points, lines, and polygons. Works for individual zoom levels, and not zoom ranges.
2018-04-26 07:43:38 -07: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
Minh Nguyễn
d066e94103
[core] Fixed to-rgba with zero opacity
2018-03-30 15:36:32 -07:00
Thiago Marcos P. Santos
eeadec3e06
[qt] Fix Qt build on MinGW
2018-03-07 14:18:07 +01:00
Thiago Marcos P. Santos
17334c74a0
[core] Fix build with Qt + Android + GCC 4.9
...
Android uses and old libc when building
with GCC 4.9 and some math functions are not
on std::.
2018-02-26 13:22:33 +02:00
Asheem Mamoowala
054d4d5ad6
[core] Support a range of zooms in TileRange. Accounts for TilePyramid requesting parent tiles of ideal zoom tiles.
2018-02-20 14:23:42 -05:00
Asheem Mamoowala
2cef23e3ff
[core] Support a range of zooms in TileRange. Accounts for TilePyramid requesting parent tiles of ideal zoom tiles.
2018-02-19 11:07:54 -08:00
Vladimir Agafonkin
82de856c94
[core, ios, macos, android, node] Heatmap layer ( #11046 )
...
Co-Authored-By: Konstantin Käfer <mail@kkaefer.com >
Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com >
Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com >
2018-02-15 17:38:23 +02:00
Molly Lloyd
f3294200c6
[core] add raster-dem source type and hillshade layer type ( #10642 )
2018-01-23 10:49:23 -08:00
John Firebaugh
e887cda986
[core] Fix alpha handling in rgba and to-rgba operators
2018-01-09 16:46:52 -08:00
Thiago Marcos P. Santos
fef095f785
[windows][core] Use Qt's own zlib on Windows
2018-01-08 22:58:20 +02:00
Thiago Marcos P. Santos
5b789aa4d6
[windows][core] Include what you use
2018-01-08 22:58:20 +02:00
Bruno de Oliveira Abinader
af183f3952
[ios] Ignore Boost's 'implicit conversion loses integer precision' warning
2018-01-08 22:58:20 +02:00
Asheem Mamoowala
10a44050f4
Support TileJSON bounds property ( #10701 )
...
* [core] Parse TileJSON bounds property
* [core] Add TileRange and LatLngBounds::contains(CanonicalTileID)
Move LatLngBounds::contains impl to cpp file
* [core] Skip tile creation outside of tileset bounds
* [core] Fix TileRange for wrapped bounds and use for CustomTileLoader instead of LatLngBounds comparisons for tiles.
2018-01-05 06:35:31 -08:00
Chris Loer
cb380064bb
[ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.
...
- Changing font weight does not currently appear to be working.
- Glyph metric extraction code not working; currently unused.
2017-12-11 10:43:00 -08:00
Chris Loer
730054276e
[core] C++ port of TinySDF
2017-12-11 10:43:00 -08:00
Chris Loer
4f0e5374c3
[core] Skip fade animation for placed symbols that are currently offscreen.
...
Don't mark items that are outside the collision grid range as placed.
Requires new ignore because GL JS issue #5654 allows insertion of symbols outside the CollisionIndex range, and those symbols can cascade in to affect items within the viewport.
2017-11-17 10:05:15 -08:00
Chris Loer
5bdee52e5c
[core] Cleanup in response to review comments
2017-11-17 10:05:15 -08:00
Chris Loer
601a1c8dcf
[core] Add circle geometries to GridIndex.
...
- Adds early exiting "hitTest" query for fast collision detection
- GridIndex now determines cell count separately for x and y axes based on grid dimensions.
2017-11-17 10:05:15 -08:00