Gali Nelle
fea8a83e7f
Introduce a mean to add render features in layers with no sources
...
This change also uses the support in the LocationIndicator layer, to
return a point feature when queried in correspondence of the location
indicator.
2020-04-17 22:26:32 +03:00
Thiago Marcos P. Santos
0d0ae229eb
[glfw] Fix clang-10 build
...
Implicit conversion from int to float.
2020-04-17 13:36:50 +03:00
Gali Nelle
209857f8ac
Fix LocationIndicator Layer
...
This changes image size properties to be scales instead of pixel sizes.
The commit also adds fixes for handling image updates with the same ID,
adds tests for expressions in paint properties, as well as tests for using images
with pixel ratio greater than 1.
Finally it moves image-tilt-displacement and perspective-compensation properties
from layout to paint properties, and includes other minor cleanups.
2020-04-10 00:15:43 +03:00
Gali Nelle
8e581c88ea
Make location indicator bearing a paint property
...
This change introduces a new property type, Rotation, that uses
a custom interpolator, and that is currently applied to
all style properties named "bearing", with a period attribute.
2020-04-08 14:00:26 +03:00
Gali Nelle
9a55c282fe
Add LocationIndicatorLayer
...
New key is "G" in mbgl-glfw, cycling between no puck, centered
in the viewport and positioned in Tokyo.
2020-04-08 14:00:26 +03:00
Thiago Marcos P. Santos
94d1c10727
[core] Fix readability-* errors
...
As reported by clang-tidy-8.
2020-03-30 23:37:44 +03:00
Thiago Marcos P. Santos
d446a1cf63
[core] Fix modernize-use-override errors
...
As reported by clang-tidy-8.
2020-03-23 20:05:40 +02:00
Thiago Marcos P. Santos
d15b9c1f9c
[core] Fix performance-unnecessary-value-param errors
...
As reported by clang-tidy-8.
2020-03-23 12:09:09 +02:00
Alexander Shalamov
d86eb878ce
[glfw] Use simplified Snapshotter API
2020-03-05 17:43:37 +02:00
Alexander Shalamov
ca4356fd0f
[glfw] Add snapshotter to glfw test app
2020-03-05 17:43:37 +02:00
Juha Alanen
9aefd2f2fa
[glfw] Add option to test pitch bounds
2020-02-26 11:21:04 +02:00
Thiago Marcos P. Santos
71054c8b60
[glfw] Add static render test creator
...
Press F1 to create a render test for the current view.
The test will be created at the base folder (current if nothing is
provided) + /NNNN (the next free entry).
2019-12-09 16:09:16 +02:00
Bruno de Oliveira Abinader
1e2cd1e086
[core] Remove Map::cycleDebugOptions
2019-12-04 11:50:05 +02:00
Ander Conselvan de Oliveira
4c1d03c257
[core] Fix MapSnapshotter build failure on Windows
...
MSVC implementation of std::promise is buggy and only works with types
that can be default-constructed. To avoid a compilation failure in the
instantiation of ask() inside MapSnapshotter::getRegion(), which creates
a std::promise<LanLngBounds>, make LatLngBounds' default constructor
public.
2019-11-13 13:31:01 +02:00
Juha Alanen
6b13c42314
[build] Fix clang format and tidy checks
2019-09-18 14:29:15 +03:00
Juha Alanen
0042f0b9f5
[glfw] Add feature state support
2019-09-18 14:29:15 +03:00
Mikhail Pozdnyakov
eaed0036ef
[glfw] Reduce memory use when window loses focus
2019-07-09 17:36:10 +03:00
Thiago Marcos P. Santos
59e7b9a878
[core] Rename resetCache to resetDatabase
...
Avoid confusion about what is being reset. In this case, the whole
database and not only the ambient cache.
2019-06-18 16:26:51 +03:00
Konstantin Käfer
e52ce34fb5
[core] remove platform::show(Color)?DebugImage
2019-05-28 16:11:05 +02:00
Konstantin Käfer
7f9274035b
[core] refactor program object creation
2019-05-28 16:11:05 +02:00
Konstantin Käfer
179c5fe83b
[core] add gfx::CommandEncoder::present()
2019-05-15 11:57:43 -07:00
Alexander Shalamov
8a3d07fcd8
[core] Add custom source to glfw-app
2019-05-03 10:01:19 +03:00
Sudarsana Babu Nagineni
2604991b2b
[core] Introduce resetCache API
...
Add an API to delete existing database and re-initialize.
2019-04-29 17:09:58 +03:00
Konstantin Käfer
66c020034e
[core] refactor RendererBackend
2019-04-05 11:49:17 +02:00
Konstantin Käfer
a782a6d15b
[core] move BackendScope to gfx namespace
2019-04-05 11:49:17 +02:00
Sudarsana Babu Nagineni
11afef7825
[core] Add interface to change the orientation through MapOptions
2019-03-28 16:41:15 +02:00
Ander Conselvan de Oliveira
5733440747
[core] Group Map LatLngBounds, min and max zoom methods
...
Group bounds, minimum and maximum zoom related methods together using
the new BoundOptions.
v2: Document that getBounds() initializes all optional fields.
- Add test for getBounds() on a map with default values.
2019-03-14 18:33:11 +02:00
Ander Conselvan de Oliveira
11de777628
[core] Remove optional from Map::setLatLngBounds()
...
This is a first step into grouping together bounds related Map methods
into one that takes a "BoundOptions" object. LatLngBounds::unbounded()
replaces an undefined optional<LatLngBounds>.
v2: Document LatLngBounds::unbounded()
2019-03-14 18:33:11 +02:00
Bruno de Oliveira Abinader
586b22c0df
[core] Remove map coordinate setters/getters
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
ba7427b4ac
[core] Transform{State}: s/angle/bearing/
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
73ac3c784f
[core] Remove map bearing setters/getters
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
491fce6879
[core] Added Map::pitchBy()
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
02f2b9c75c
[core] Added Map::scaleBy()
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
13fb375823
[glfw] Add bounds example
2019-02-26 21:17:31 +02:00
Bruno de Oliveira Abinader
f772a6392d
[glfw] Use jumpTo() in the route demo
2018-11-27 21:38:36 +02:00
Konstantin Käfer
1e454642c8
[build] allow WITH_EGL for macOS as well (SwiftShader) and enable EGL for GLFW
2018-08-27 14:07:40 -07:00
John Firebaugh
af89318b1d
[core] Convert token strings to expressions
2018-07-20 12:35:00 -07:00
John Firebaugh
c8edbb0500
[core] Replace {Source,Camera,Composite}Function with PropertyExpression
2018-07-20 11:56:30 -07:00
Bruno de Oliveira Abinader
d634973c8a
[glfw] Use Map::moveBy in GLFWView::onMouseMove
2018-07-09 22:02:49 +03:00
Bruno de Oliveira Abinader
28994ae92c
[glfw] Update route demo to use expressions DSL
2018-07-03 17:00:20 +03:00
John Firebaugh
542a4b4501
[core] Replace use of *Stops with expressions DSL
2018-06-29 15:38:11 -07: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
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
Ansis Brammanis
fff33ed7e7
[glfw] add animated annotations to glfw app for debugging
2018-01-11 14:07:00 -05:00
Konstantin Käfer
2eec5a1980
[core] move HeadlessBackend extension initialization code into Impl
2017-11-29 15:48:51 +01:00
Konstantin Käfer
796386473e
[glfw] Save/Restore online status of DefaultFileSource
2017-09-22 10:57:15 +02:00
Ivo van Dongen
9893b3d071
[glfw] manage backendscope in renderer frontend
2017-07-25 17:44:28 +03:00
Ivo van Dongen
815ffb253b
[android][glfw][ios][macos][node][qt] rename backend to renderer backend
2017-07-18 10:45:12 +02:00
Ivo van Dongen
8401325a82
[glfw] rendering interface changes
2017-07-18 10:45:12 +02:00
John Firebaugh
1520a56813
[all] Promote Style to public API
2017-06-22 08:04:39 -07:00