Thiago Marcos P. Santos
7ff85374a7
[build] Remove #pragma diagnostic for boost
...
Boost is now included as a system header and the compiler
should ignore it when issuing warnings.
2018-11-01 16:29:37 +02:00
Mikhail Pozdnyakov
cfcb53128b
Introduce the style::Layer factory classes
...
This patch introduces the initial implementation of
- A `LayerFactory` abstract class that creates `style::Layer` instances of
a certain layer type (line, hillshade, round, ..)
- A singleton `LayerManager` class, which is responsible for initializing
the `LayerFactory` instances and forwarding the `create()` calls to the
corresponding factory.
2018-10-31 18:05:01 +02:00
Mikhail Pozdnyakov
56808731b6
Remove style::Layer::is()/as()
2018-10-31 11:22:46 +02:00
Mikhail Pozdnyakov
7a9461a8d4
Consolidate style::Layer properties API
...
The `style::Layer` class now exposes all the properties contained at `style::LayerImpl`.
This allowed to drop `style::Layer::accept()` method usage, avoid the repeated generated code
and thus save some binary size.
This patch is a part of the layers modularization effort.
2018-10-25 22:42:43 +03:00
Bruno de Oliveira Abinader
55710cbb67
[core] Added RendererState::has{Image,Layer,Source}
2018-10-25 16:23:40 +03:00
Ryan Hamley
3ec0231bb7
[core] Avoid wrapping longitude values of exactly 180 and 360 ( #12797 ) ( #13006 )
2018-10-24 18:38:54 -07:00
Huyen Chau Nguyen
fa78bcadfd
[core] add tests for handling requests with different priorities
...
- ensure that low priority requests are handled last
- add option to set the number of maximum concurrent requests for tests
- some style fixups
2018-10-23 12:47:10 +02:00
Huyen Chau Nguyen
1e3a744d22
[core] add priorities to resources
...
- priorities can be low or regular
- offline downloads should have low priority to not throttle "regular requests"
2018-10-23 12:47:10 +02:00
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
Konstantin Käfer
2766e64973
[core] only include <sstream> when we need it
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
Bruno de Oliveira Abinader
ea51b11dcc
[core] Introduce mbgl::RendererState
2018-10-19 12:05:16 +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
f510b577aa
[core] Promote DefaultFileSource::put to general use.
2018-10-17 12:53:24 -07:00
Chris Loer
d0cd49f516
[ios, macos] Minimal darwin wrappers of 'format' expression
...
Add support for `MGL_FUNCTION('format', <text>, <options dictionary>)`
2018-10-15 13:15:46 -07:00
Chris Loer
ce76bde13d
[core] Initial implementation of 'format' expression
2018-10-15 13:15:46 -07:00
John Firebaugh
2e93a9ddcf
[core] For string-valued properties, do coercion rather than assertion
2018-09-19 14:54:38 -07:00
John Firebaugh
89b075f592
[core] Auto-convert concat arguments to strings
2018-09-19 14:54:38 -07:00
John Firebaugh
2c48b5a292
[core] Implement array assertion fallback behavior
...
This was added in gl-js in #7095 .
2018-09-13 15:55:34 -07: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
ryanhamley
31cca05fc6
Port symbol-z-order symbol layout style-spec property to Native
2018-09-07 13:05:19 -07:00
Chris Loer
50f9381ad3
[core] Fix cubic-bezier interpolation for zooms outside stop range.
...
Fixes issue #12812 .
Using `util::interpolationFactor` handles the case where inputLevels.min == inputLevels.max, so it returns an interpolation factor of "0" instead of dividing by 0.
2018-09-06 11:10:10 -07:00
Molly Lloyd
2cdbe934c2
[windows, qt] fix windows compiler errors, remove tao + tuple polyfill
2018-08-31 13:08:47 -07:00
Molly Lloyd
4a5dc37245
[core] Implement CrossFadedDataDrivenProperty to add support for feature expressions in *-pattern properties
2018-08-31 13:08:47 -07:00
Konstantin Käfer
5e9bbfdd44
[core] introduce TypeListConcat and TypeList::ExpandInto
2018-08-31 13:08:47 -07:00
Konstantin Käfer
abc5043339
[core] simplify attribute/location types
2018-08-31 13:08:47 -07:00
Asheem Mamoowala
d4f4136414
Enforce Offline tile limit when merging sideloaded databases
2018-08-28 07:14:54 -07:00
Asheem Mamoowala
065f5ca87e
[core] Add DefaultFileSource::mergeRegions API and CLI support in the mbgl-offline tool.
2018-08-28 07:14:54 -07: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
Ivo van Dongen
fae099933b
[core] offline region definition - add support for arbitrary 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
John Firebaugh
8ca419fb2e
[core] Evict unused font stacks from GlyphManager
2018-08-17 09:38:39 -07:00
Konstantin Käfer
6e06e55b95
WIP: use expected<T, E> for passing on errors
2018-08-14 17:03:46 -07:00
Konstantin Käfer
fa7b70945f
[core] harden OfflineDatabase
2018-08-14 17:03:46 -07:00
Konstantin Käfer
a3b6fc1498
[build] vendor std::expected polyfill
2018-08-14 17:03:46 -07:00
John Firebaugh
d886d3e4c0
[core] Factor out setVisibility conversion
2018-08-13 12:39:44 -07:00
John Firebaugh
b2f60a4bf2
[core] Eliminate setProperty & co.
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
3952ff5c34
[core] Replace unique_any with peer from mapbox-bindgen
2018-08-08 14:14:34 +03:00
Mikhail Pozdnyakov
15a2623147
[core] Add lineMetrics to GeoJSONOptions
...
This patch also bumps geojson-vt-cpp version to 6.6.0,
which enables the `lineMetrics` option.
2018-08-08 12:53:32 +03:00
Mikhail Pozdnyakov
0ec4a84c31
Rename EvaluationContext::heatmapDensity to colorRampParameter
...
More generic name as the same class member is to be used by the
linear gradient properties.
2018-08-07 18:31:59 +03:00
Anand Thakker
d25e1a1e7f
Relax typing for comparison operators ( #12537 )
...
* Relax typing for comparison operators
Ports https://github.com/mapbox/mapbox-gl-js/pull/6961
* Review comments
* Lint fixes
2018-08-02 13:48:47 -04:00
John Firebaugh
9bdd765a02
[core] Merge DataDrivenPropertyValue into PropertyValue ( #12513 )
2018-07-31 14:21:47 -07:00
John Firebaugh
9a1bb1ad14
[core] Tweak conversions to reduce binary size
...
* return {} → return nullopt
* error = { "..." } → error.message = "..."
2018-07-30 17:17:38 -07:00
John Firebaugh
bf7785618a
[core] Simplify CompoundExpression implementation
2018-07-30 14:08:27 -07:00
Sudarsana Babu Nagineni
15a1c7b71f
Fix compilation errors with libc++ on QNX 7
...
This patch fixes the compilation errors on QNX 7:
1) QNX 7 compiler (i.e qcc based GCC 5.4.0 with libc++ from LLVM) has a
limited c++11 feature support and causing the compilation
errors with the inheriting constructors. This fixes the issues by
providing the required constructors explicitly.
2) Resolves an ambiguous overload error with optional<T>
2018-07-30 12:38:24 +03:00
Bruno de Oliveira Abinader
cb714d57c5
[core] Replace expressions RTTI with enums + static cast
2018-07-24 10:06:18 +03:00