Commit Graph

35 Commits

Author SHA1 Message Date
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
7f9274035b [core] refactor program object creation 2019-05-28 16:11:05 +02: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
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
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
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
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
ba7427b4ac [core] Transform{State}: s/angle/bearing/ 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
Konstantin Käfer
60b8469c48 [core] add --cache option to GLFW binary to specify the cache database 2018-09-19 21:10:11 +02: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
Bruno de Oliveira Abinader
e91cab516c [glfw] Use args in GLFW example 2017-12-18 16:40:29 +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
Konstantin Käfer
b91d9676a6 [glfw] allow loading mapbox:// style URLs via CLI 2017-09-21 12:22:23 +02:00
Mattias Bengtsson
edc8a6492e [glfw] Getopt: Don't handle 0 value
Since we don't have any options with non-null flags we don't need to
handle the case where getopt_long returns 0.

The case that handled 0 was susceptible to switch fall-through and made
the code not compile with -Werror=implicit-fallthrough=.
2017-08-18 17:04:34 +03:00
Ivo van Dongen
8401325a82 [glfw] rendering interface changes 2017-07-18 10:45:12 +02:00
Ivo van Dongen
39a732d7ae [android][glfw][ios][macos][node][qt] split backend from mapobserver 2017-07-18 10:45:12 +02:00
John Firebaugh
40e4755621 [core] Move setStyleJSON/URL to Style; add Map::setStyle 2017-06-22 08:04:39 -07:00
Bruno de Oliveira Abinader
c6eb4afe0e [tidy] modernize-deprecated-headers 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
37046938da [tidy] modernize-raw-string-literal 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
bd7fb64bae [tidy] modernize-use-nullptr 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
f709d7b055 [tidy] llvm-namespace-comment 2017-05-12 18:07:36 +03:00
Lauren Budorick
f6e79d7073 [core] Render fill-extrusion layers (#8431) 2017-04-27 15:56:55 -07:00
John Firebaugh
16a2839e23 [all] Make LatLng coordinates read-only 2017-04-06 09:22:51 -07:00
Thiago Marcos P. Santos
92e6e48699 [glfw] Make P pause/resume the network thread
Simple test of the DefaultFileSource pause/resume API.
2017-02-25 14:03:38 +02:00
Konstantin Käfer
e76de05402 [build] move logging to util 2016-11-22 20:58:51 +01:00
Konstantin Käfer
3bc79e316e [build] move default ThreadPool implementation to platform/default 2016-11-22 20:58:51 +01:00
Konstantin Käfer
67ed3ae3eb [build] move GLFW-related files to platform/glfw 2016-11-22 20:58:51 +01:00