Konstantin Käfer
f16a4e5da6
[all] make default_styles header-only
2017-07-13 01:39:00 -04:00
Minh Nguyễn
886bf2528f
[core, android, ios, macos] Added Traffic Day/Night to default styles
...
The Styles API section of the Mapbox API Documentation site now lists Traffic Day v2 and Traffic Night v2, so this change adds those styles to all the places where styles are listed.
Also switched iosapp and macosapp to unversioned style factory methods since MGLStyleDefaultVersion is no longer applicable for all styles.
Cherry-picked from 4d6f54553d .
2017-05-12 10:02:27 -07:00
Minh Nguyễn
c5ee41a93a
[ios, macos] Undeprecated unversioned style URL factory methods
...
Undeprecated the unversioned style URL factory methods in MGLStyle for consistency with the Android and Qt SDKs. Added warnings about using them with the runtime styling API.
Refactored mbgl::util::default_styles to track different versions for different styles.
Cherry-picked from 9e384b78fb .
2017-05-12 10:02:27 -07:00
Minh Nguyễn
0ef1293dad
[core, android, ios, macos, qt] v10 default styles
...
Upgraded from v9 default styles to v10 wherever the developer expects to get the latest and greatest, as well as in a couple tests where it may be beneficial to ensure that we can handle a two-digit version number in the style URL.
Cherry-picked from ed54849e99 .
2017-05-12 10:02:27 -07:00
John Firebaugh
baaae99a03
[core, android] Factor JSON string conversions
...
This adds a `convertJSON` template, to be used like:
Error error
optional<Foo> foo = convertJSON<Foo>(string, error);
Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`.
While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
2017-05-08 13:48:57 -07:00
John Firebaugh
3f0c89d633
[core] Refactor Source::*Impls into RenderSources and TilePyramid
2017-05-02 08:45:09 -07:00
Bruno de Oliveira Abinader
e5aa4d70cd
[core] Updated Size::isEmpty and TransformState::valid checks
2017-04-10 18:01:28 +03:00
Konstantin Käfer
038062af86
[core] destroy HeadlessDisplay after HeadlessBackend implementation
2017-04-05 23:05:46 +02:00
Konstantin Käfer
a84aa453a9
[core] Privatize OpenGL/Context headers
2017-03-28 13:53:19 +02:00
Konstantin Käfer
234384ece9
[core] Move OpenGL extension initialization to Backend
2017-03-23 14:50:11 -07:00
Bruno de Oliveira Abinader
2aa20ff471
[glfw] Support mbgl::MapObserver
2017-03-15 14:53:32 +02:00
Konstantin Käfer
9ca9adf69c
[core] private OffscreenView implementation
2017-02-27 16:51:17 -08:00
John Firebaugh
773f330774
[core] Ensure that context resources are destroyed before context is destroyed
2017-02-20 12:04:21 -08:00
John Firebaugh
5354572620
[core] Eliminate manual HeadlessBackend activation management
2017-02-20 12:04:21 -08:00
John Firebaugh
ed7844d08f
[core] Inline HeadlessBackend::{activate,deactivate,destroy}Context
...
HeadlessContext::destroyContext isn't even necessary; std::unique_ptr handles that automatically.
2017-02-20 12:04:21 -08:00
Konstantin Käfer
3ef9e26593
[ios,macos,android,qt] use shared threadpool
2017-02-20 19:26:06 +01:00
Konstantin Käfer
62ea1f2185
[core] remove trailing whitespace, add trailing newlines, add space after //
2017-01-27 11:44:16 +01:00
Bruno de Oliveira Abinader
eb772258cf
[core] Replace sqlite3.h dependency in offline database
2017-01-23 19:06:53 +02:00
Bruno de Oliveira Abinader
80d72123df
[core] Move lastInsertRowId/changes to sqlite::Statement
2017-01-23 19:06:53 +02:00
Eric Wolfe
a2ceeb4a5b
[core] Evict cached resources and tiles equally by access time ( #7770 )
2017-01-18 18:43:24 -08:00
Bruno de Oliveira Abinader
49da57393a
[core] Remove platform-specific main.cpp from MBGL_TEST_FILES
2017-01-18 19:06:32 +01:00
Konstantin Käfer
e76de05402
[build] move logging to util
2016-11-22 20:58:51 +01:00
Konstantin Käfer
117863f111
[build] move headless rendering files to platform/default
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
9353fcbf4c
[build] move default_styles to platform/default
2016-11-22 20:58:51 +01:00
Chris Loer
40b0c8d076
[core] Use UTF-16 instead of UTF-32 for label features to avoid extra conversions and reduce in-memory size.
...
Continue to use uint32 as glyph ID to maintain Glyph PBF, even though we're only using 16 bits of that uint32.
Use std::codecvt instead of boost::unicode_iterator for UTF8->UTF16 conversions.
2016-11-17 14:33:03 -08:00
Tore Halset
a4b79ac289
[core] Optimize OfflineDownload::ensureResource ( #6707 )
...
Add `OfflineDatabase::hasRegionResource`, for use when the actual contents are not needed by the caller, avoiding IO and decompression costs.
2016-10-17 09:27:07 -07:00
John Firebaugh
a9842dbd6b
[core] Extract some GlyphRange-related constants
2016-09-26 14:55:49 -07:00
John Firebaugh
8764c20621
[core] Provide rationale for blocking queue while errors resolve
2016-09-26 14:55:49 -07:00
John Firebaugh
570bafcfec
[core] Don't allow OfflineDownload to flood the request queue
2016-09-26 14:55:49 -07:00
Molly Lloyd
598f7c6ad5
[core] allow offline region metadata to be updated ( #6338 )
2016-09-20 17:43:00 +02:00
Lucas Wojciechowski
37cb2bd756
[core] Convert uses of std::set to std::unordered_set ( #6325 )
...
* src/mbgl/annotation/annotation_manager.hpp
* src/mbgl/algorithm/update_renderables.hpp
* src/mbgl/geometry/glyph_atlas.hpp
* src/mbgl/renderer/painter.cpp and src/mbgl/renderer/render_item.hpp
* src/mbgl/renderer/symbol_bucket.hpp and src/mbgl/text/glyph_store.hpp
* src/mbgl/sprite/sprite_atlas.hpp
* include/mbgl/storage/network_status.hpp
* src/mbgl/text/collision_tile.cpp
* src/mbgl/style/update_batch.hpp
* platform/default/mbgl/storage/offline_download.hpp
* Add GlyphRangeSet typedef
* Fix whitespace & unused imports
2016-09-19 17:26:25 -07:00
Konstantin Käfer
5f49f28d3e
[build] add specific .clang-tidy file for things that use RapidJSON writers
2016-09-15 14:05:23 +02:00
Jason Wray
0bdd968d2b
[core] Remove schema v4 migration path
2016-09-14 15:49:00 -04:00
Jason Wray
4daff7f2f8
[core] Revert SQLite WAL journaling
2016-09-14 15:45:47 -04:00
John Firebaugh
d2abb1b6d5
[core] Change GeoJSONSource::getURL() to return an optional<std::string>
...
GeoJSON sources may have inline GeoJSON rather than a URL; returning an optional type ensures that consumers handle this case.
2016-08-26 10:30:55 -07:00
Jason Wray
74f094faab
[core] Update SQLite schema with WAL journal mode and normal sync
...
Offers 2×-4× performance, depending on device vintage.
2016-08-23 13:26:02 -04:00
Konstantin Käfer
18176605f6
[core] support "scheme": "tms" in TileJSON files
2016-08-16 11:04:30 +02:00
Vladimir Agafonkin
9ecc0d9597
GeoJSON point clustering ( #5724 )
...
* add supercluster dependency
* prepare GeoJSONTile for Supercluster
* prepare GeoJSONSource for accepting options
* try removing mbgl::GeoJSON
* fix setGeoJSON types
* add GeoJSONSource getURL
* add geojson to include path
* add Supercluster index in GeoJSONSource
* fix GeoJSONSource getZoomRange
* bring back mbgl::GeoJSON header
* fix tidy warnings hopefully
* try test-suite with enabled cluster test
* fix formatting in clustering-related files
2016-07-27 20:18:41 +03:00
Konstantin Käfer
77e7846756
[core] code style cleanups
...
- puts function definitions in a namespace ... {} rather than using namespace ...;
- remove trailing whitespace
- add trailing newline
- protect SQL statements from being formatted by clang-format
2016-07-01 12:38:33 +02:00
John Firebaugh
b8326870e1
[core] Increment completedTileCount when appropriate ( #5475 )
2016-06-24 15:28:10 -07:00
John Firebaugh
021d4199cb
[core, node] Implement bindings for addSource
2016-06-24 09:39:51 -07:00
John Firebaugh
900568cfb0
[core] Runtime source API: private impls
2016-06-16 13:27:15 -07:00
John Firebaugh
41760b5696
[core] Use variant<std::string, GeoJSON> in GeoJSON source
2016-06-15 11:28:34 -07:00
John Firebaugh
87edff4047
[core] Use variant<std::string, Tileset> in TileSource
...
A tile source can either specify a URL to TileJSON, or inline TileJSON.
2016-06-15 11:28:34 -07:00
John Firebaugh
5bbcca8326
[core] Add virtual Source::getTileSize()
2016-06-14 11:25:45 -07:00
John Firebaugh
9d3c4fbbb0
[core] Push Source::url down to subclasses
2016-06-14 11:25:45 -07:00
John Firebaugh
9dfcb95e4f
[core] Push Source::tileset down to TileSource
2016-06-14 11:25:45 -07:00
John Firebaugh
6eab895bc0
[core] Use Range<uint8_t> instead of full Tileset where possible
2016-06-14 11:25:45 -07:00
Bruno de Oliveira Abinader
4161d197fd
[tidy] Check modernize-pass-by-value
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
2016-06-13 23:32:05 +03:00