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
Thiago Marcos P. Santos
c65465c02e
[gcc4.9] Keep compatibility with GCC + Android
...
Needed by Qt builds on Android.
2017-10-31 12:41:40 +02:00
Anand Thakker
b8654b3b04
[core] Move SourceType to the 'style' namespace
2017-10-16 16:32:53 -07:00
Asheem Mamoowala
8bccf657e9
[core] Fix out-of-bounds array access
2017-10-12 12:21:00 -07:00
Konstantin Käfer
64c75b442c
[build] split out DefaultFileSource and dependents to a separate target
...
We don't want to link it into the node bindings, so keep it in a separate target
2017-09-28 13:48:36 -04:00
Lauren Budorick
a9ddf5b7fd
Preserve depth buffer between 3D layers + optimize render order ( #9931 )
...
Port of https://github.com/mapbox/mapbox-gl-js/pull/5101 : adds a new render pass `Pass3D` before any other rendering wherein we render layers with 3D passes (fill-extrusion layers) to offscreen framebuffers, sharing a depth renderbuffer between those layers in order to render 3D space correctly. Those framebuffers are saved on the RenderLayers and copied back to the map during the translucent pass. Rendering to offscreen framebuffers before we do any clear + draw means we can avoid expensive framebuffer restores.
2017-09-21 14:26:48 -07:00
Asheem Mamoowala
2d84e2a1ae
Fix platform dependent number type unsigned long -> uint64_t
2017-09-20 09:05:45 -07:00
John Firebaugh
2bbde6903a
[core] Rename for clarity: ActiveTexture → ActiveTextureUnit
2017-09-11 10:17:54 -07:00
Asheem Mamoowala
50fd917510
Fast tileCount with help from @mapbox/sphericalmercator module
2017-09-08 17:38:42 -07:00
Lauren Budorick
f8a53234ff
[core] Remove debug::renderTree
2017-09-07 12:07:46 -07:00
Ivo van Dongen
0bb97e2307
[core] make thread.hpp public
2017-08-30 17:18:37 +03:00
Chris Loer
17a3a805f1
[core] Add optional type template parameter to util::unit, so that it doesn't always pick up the default type of 'double' from util::mag.
2017-08-25 14:20:42 -07:00
Thiago Marcos P. Santos
2108763010
[core] Remove std:: namespace for some functions
...
They are not available on Android + GCC (needed by Qt)
2017-08-07 17:20:33 +03:00
John Firebaugh
d4cb498d7a
[all] Merge View into RendererBackend
2017-07-26 09:50:38 -07:00
Thiago Marcos P. Santos
acd95c325a
[core] Fix issues with the std:: namespace and old compilers
...
Specifically when building Android with GCC 4.9 (which Qt still does :-/)
2017-07-26 18:51:11 +03:00
Thiago Marcos P. Santos
a3244421a5
[Qt] Rename files with same name
...
QMake is having some issues with files with same names when
building the Qt Location plugin.
2017-07-19 14:39:39 +03:00
Konstantin Käfer
6b954677c0
[core] fix undefined behavior for division through 0
2017-07-17 15:02:47 +02:00
Thiago Marcos P. Santos
70e557a6f8
[core] Use gmtime_s on Windows
...
gmtime_r is POSIX
2017-07-12 15:13:33 +03:00
Thiago Marcos P. Santos
0d7d3d8959
[core] Use std::to_string on Windows
...
Clang on Window's can't parse rapidjson's dtoa.
2017-07-12 15:13:33 +03:00
Thiago Marcos P. Santos
3b49ec3a0b
[core] Prefer std:: functions over POSIX
...
s/unlink/std::remove
2017-07-12 15:13:33 +03:00
Ansis Brammanis
77734cfe1b
[core] fix transformMat4
...
It used to overwrite values in the middle of the calculation which would
cause problems when `out` and `a` were a reference to the same vector.
2017-07-11 09:10:24 -07:00
Thiago Marcos P. Santos
7c117281bc
[core] Isolate pthread-based tls implementation
2017-07-07 18:10:06 +03:00