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
Thiago Marcos P. Santos
06f1dc48a2
[core] Make the BackgroundScheduler a singleton
...
- Do not carry it over everywhere as parameter, it is a shared
instance anyway and the lifecycle is pretty much the app lifecycle
from the moment we instantiate a map.
- Rename to BackgroundScheduler because it is a Scheduler that will
do tasks in the background, we don't make assumptions if it is a
thread pool or a single thread.
- Most importantly, remove the dependency from `core` on `platform`.
2019-05-10 14:20:38 +03: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
5cc3d7a733
[core] move GLContextMode to RendererBackend
2019-04-05 11:49:17 +02: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
Ansis Brammanis
2455275bf4
add onStyleImageMissing to allow dynamically loaded or generated images ( #14253 )
...
Also make `Style#updateImage(...)` much faster when the image doesn't change size. This can be useful for asynchronously generating images.
2019-04-02 12:57:45 -04:00
Sudarsana Babu Nagineni
92887cc3f7
[glfw] Remove unused map object
...
Remove unused map object that was accidentally added
in 7af00a4 .
2019-04-01 14:35:58 +03:00
Sudarsana Babu Nagineni
7af00a404f
[core] Include pixelRatio property in MapOptions
...
Move pixelRatio property from Map constructor to MapOptions.
2019-03-28 16:41:15 +02:00
Sudarsana Babu Nagineni
1cc1d4ea08
[core] Add setter/getter for size property in MapOptions
2019-03-28 16:41:15 +02:00
Sudarsana Babu Nagineni
11afef7825
[core] Add interface to change the orientation through MapOptions
2019-03-28 16:41:15 +02:00
Bruno de Oliveira Abinader
c397fd853c
[core] Bump args to 6.2.2 (does not use RTTI)
2019-03-25 22:52:40 +02:00
Bruno de Oliveira Abinader
03db58cdc1
[core] Replace shared_ptr with unique_ptr in {Map,Resource}Options
2019-03-22 18:54:48 +02:00
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +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
8cc100bfd5
[core] Get FileSource via UpdateParameters in Renderer::Impl
2019-03-13 17:56:44 +02:00
Sudarsana Babu Nagineni
5e2b6bf636
[core] Add MapOptions to define properties of Map
...
To simplify the Map constructor, introduce MapOptions
interface to define the properties that can be set on
a Map.
2019-03-08 18:20:55 +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
f5f10ec119
[core] Remove map zoom 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
60b8469c48
[core] add --cache option to GLFW binary to specify the cache database
2018-09-19 21:10:11 +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
Zsolt Bölöny
bc6094eb55
[core] Fix GCC8's new -Wcatch-value warnings
...
Polymorphic types shouldn't be caught by value, as the warning message says. Catch them by constant reference instead.
2018-06-25 10:07:04 -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
Bruno de Oliveira Abinader
e91cab516c
[glfw] Use args in GLFW example
2017-12-18 16:40:29 +02:00
Konstantin Käfer
2eec5a1980
[core] move HeadlessBackend extension initialization code into Impl
2017-11-29 15:48:51 +01:00
Lauren Budorick
e43e2aa3d7
[core, node] Support axonometric rendering
2017-10-14 03:15:34 +02:00
Konstantin Käfer
796386473e
[glfw] Save/Restore online status of DefaultFileSource
2017-09-22 10:57:15 +02:00
Konstantin Käfer
3a8dc12a8e
[glfw] Always load settings, and allow CLI args to override them
2017-09-22 10:57:15 +02:00