Minh Nguyễn
13de47db26
[ios, macos] Match only one font name attribute at a time
2020-04-24 13:46:40 -07:00
Minh Nguyễn
9548365904
[ios, macos] Added and updated documentation
2020-04-24 13:46:40 -07:00
Minh Nguyễn
0588c50b09
[ios, macos] Get glyph metrics from font
...
Get glyph metrics from the font in the process of drawing each glyph into a bitmap context. These metrics result in more accurate kerning and better aligned baselines than the previous hard-coded values.
Align iOS/macOS local glyph rasterization test fixture to Qt.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
bcfdbd187d
[ios, macos] Avoid redundant fallback in font cascade list
...
A font descriptor should not be a fallback for itself.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
c4c35449cb
[ios, macos] Choose fonts from font stack that match local fonts
...
Prefer local fonts that match the names specified in the font stack (from the text-font layout property), except for the last resort fonts that mbgl hard-codes. Fall back to the list of fallback CJK fonts in user defaults, then the fonts passed in through the platform-agnostic interface (that come from Info.plist). Explicitly use the first font descriptor in the cascade list instead of the system default of Helvetica.
Since the font stack can vary from one rasterization operation to the next, avoid caching the resolved font for now. Removed null checks that are unrealistic given the Core Text API contract.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
9b78a156de
[ios, macos] Take font family names from user defaults
...
Take font family names from user defaults before falling back to font family names in Info.plist.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
f97ca0ccf9
[ios, macos] Allow specifying multiple fonts or font families for local font rendering
...
mbgl::Renderer and mbgl::MapSnapshotter can now contain a list of font family names, font display names, and font PostScript names, each name separated by a newline.
2020-04-24 13:46:40 -07:00
Minh Nguyễn
cb3d9eab49
[ios, macos] Fixed receiving local file URL response
2020-04-24 10:27:29 -07:00
Thiago Marcos P. Santos
9e189e02b4
[darwin] Remove debug leftover
...
Remove debug leftover added by 9009089a93 .
2020-03-31 01:59:41 +03:00
Julian Rex
9009089a93
Add NSURLSession delegation to http_file_source.mm ( #16321 )
2020-03-25 17:56:40 -04: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
Minh Nguyễn
8212f94f07
[ios, macos] Redirect documentation to mapbox-gl-native-ios
2020-02-27 17:14:20 -08:00
Minh Nguyễn
206b9bde5e
[ios, macos] Deleted iOS/macOS map SDK sources, resources, scripts
2020-02-27 17:14:20 -08:00
Mikhail Pozdnyakov
ba4f5efa09
[core] OnlineFileSource is never accessed directly
2020-02-26 22:31:59 +02:00
Mikhail Pozdnyakov
aad13f6a3f
[core] FileSourceManager::getFileSource() returns PassRefPtr
2020-02-26 22:31:59 +02:00
Jordan Kiley
e27055ff21
Revert "[ios, macos] Include SKU token for offline requests ( #16130 )" ( #16193 )
...
* Revert "[ios, macos] Include SKU token for offline requests (#16130 ) (#16133 )"
This reverts commit d85ce77deba12167f1c25a911ef81f44e35daa2a.
* [ios] Keep skipping docs for ios-release
2020-02-19 15:10:50 -08:00
Mikhail Pozdnyakov
3bd2d0e4d7
style::Style::getImage() returns optional<style::Image>
2020-02-11 14:34:46 +02:00
zmiao
7424c4eecb
Bump GL-JS
...
Backport GL-JS fix 'Hide glyphs behind the camera'(https://github.com/mapbox/mapbox-gl-js/pull/9229 )
2020-02-11 11:05:18 +02:00
Thiago Marcos P. Santos
47f2b20435
[build] Remove unused files
...
Buck build is no longer needed, neither is the previous
CMake buildsystem.
2020-02-07 20:12:44 +02:00
Alexander Shalamov
4be2fa4f9a
[core] Add platform::setCurrentThreadPriority(double)
2020-02-06 23:54:19 +02:00
Thomas Moenicke
b64ed75444
[build] Adding a build flag to build without GL if needed ( #16120 )
...
* [build] Adding a build flag to build without GL if needed
* [build] Moving custom layer to mbgl/gl
2020-02-03 19:10:57 +02:00
Mikhail Pozdnyakov
d24c1d625a
[core] Pass std::shared_ptr<UpdateParameters> to the render orchestrator
...
So that it can retain ownership of the given parameters.
2020-01-22 14:30:26 +02:00
Jordan Kiley
942d9566d3
[ios, macos] Include SKU token for offline requests ( #16130 )
2020-01-21 13:35:57 -08:00
Alexander Shalamov
77c86bc6b9
[darwin] Use new FileSourceManager interface
2020-01-13 10:57:23 +02:00
Alexander Shalamov
879c44f661
[core] Modularize FileSource codebase ( #15768 )
...
* [core] Introduce FileSourceManager and use it for default platform impl
- Add `FileSourceManager` interface that provides access to `FileSource`
instances and means of registering / unregistering `FileSource` factories
- Split `DefaultFileSource` into smaller parts
- Add `DatabaseFileSource` interface and it's default implementation
- Remove inter-dependencies between concrete `FileSource` classes
* [build] Add files to next build system
* [core] Add generic property setters / getters
* [core] Remove setOnlineStatus from OnlineFileSource interface
* [core] Hide threading implementation details from DatabaseFileSource interface
* [core] Make DB file source methods virtual
* [core] Add documentation for DatabaseFileSource and rename one method
* [core] Use simple callback instead of ActorRef
* [core] Remove ActorRef from OnlineFileSource public header
* [core] Add callback to FileSource::forward async API
* [core] Pass OfflineRegionDefinition by value
* [core] Update tests to use modular file sources
* [core] Update unit tests
* [core] Update unit tests after rebase
* [core] Backport low prio fix for cached requests
* [core] Backport pack database
* [core] Return removed factory from unRegisterFileSourceFactory
* [core] Rename shadowed args in onlinefilesource
* [core] Remove simple std::function callback aliases
* [core] Expose online file source property keys in public header file
* [test-runner] Add proxy file source test runner
* [cache] Update mbgl-cache utility to use new file source
* [metrics] Rebaseline binary size metrics
* [offline] Update offline utility
* [core] Update changelog
2020-01-13 10:57:23 +02:00
m-stephen
f9b7284276
[ios, macos]Remove iOS/macOS codes from native codes ( #16031 )
...
* add source/header
* add ios files
* add configs
* modify name
* http_file_source
* add interface delegate when map init
* fix name
* fix delegate name
* support mac os
* add mac os support
* make optional delegate when mac os
* mac/ios difference
* add ios change log
* cancel iOS/mac OS judgement
* cancel iOS/mac OS judgement
* cancel judgement in .m
* update
* update
* update http_file_source
* update ios
* update mac os
* add mac os file
* add mac os file to `.cmake`
* change names
* add log & fix format
* reset changelog commit
* update changelog
* rename iOS network manager
* Add a test configuration(same as default configuration) when mac os run tests
* re-add account type into `http_file_source`
* refactor
2019-12-14 13:38:46 +08:00
Mikhail Pozdnyakov
cd4136ed4b
[core][android][darwin] Fix GeoJSONOptions handling
...
- share the `GeoJSONOptions` instances using `Immutable<GeoJSONOptions>` - avoid extra copying
- fix wrapping of the `GeoJSONOptions` instances in supercluster map/reduce lambdas.
Previously, local variables were wrapped by reference.
2019-11-29 09:53:28 +02:00
Julian Rex
21af0ff487
[ios] Refactor host checks ( #15948 )
2019-11-20 12:44:39 -05:00
Thiago Marcos P. Santos
f73467786d
[build] Enable more warnings on the next build
...
Make compilation more pedantic.
2019-11-15 23:38:47 +02:00
Alexander Shalamov
cd1a46785e
[darwin] Fix image roundrip conversion
2019-11-11 18:20:01 +02:00
Alexander Shalamov
9fc9cc30e8
[darwin] Add conversion for resolvedImage
2019-11-11 18:20:01 +02:00
Alexander Shalamov
3f7ed99d89
[darwin] Update image expression evaluated type name
2019-11-11 18:20:01 +02:00
Juha Alanen
360b8b4247
[core,android,darwin,qt] Add fields related to feature-state
...
Move the fields from geometry.hpp/feature.hpp as they are not
part of the GeoJSON specification.
2019-10-28 16:46:55 +02:00
Konstantin Käfer
8206ce0e02
[core] map image type to string until we have a dedicated implementation
2019-10-14 18:46:12 +02:00
Jordan Kiley
e4e2a78033
Add iOS bindings for cluster properties ( #15515 )
2019-10-11 13:46:41 -07:00
Julian Rex
a1f124c394
[ios] Fix for iOS 9 crash (seen in simulator) ( #15771 )
...
* [ios] Fix for iOS 9 crash (seen in simulator)
* [ios] Update change log
* [ios, macos] Add #if around new function.
2019-10-11 15:16:12 -04:00
Julian Rex
a90e5f6e97
[ios, macos] Changed exception to assert and nil return, since attribution methods can be called via user interaction (without a mechanism to try/catch) ( #15764 )
2019-10-05 13:06:28 -04:00
Julian Rex
33a70100b8
[ios] Adds pointForCoordinate/coordinateForPoint to MGLMapSnapshotOverlay ( #15746 )
...
* [ios] Adds `pointForCoordinate:`/`coordinateForPoint:` to MGLMapSnapshotOverlay
* [ios] Adds PR #
* [ios, macos] Update file lists & mac contexts
* [macos] Fix for image scale in overlay.
* [ios] Updated change log based on PR feedback.
2019-10-04 13:51:40 -04:00
Alexander Shalamov
e5cdc4ecf3
[core][android][darwin] Move number format to i18n
2019-09-26 10:55:47 +03:00
Alexander Shalamov
9c8295c6a6
[core][android][darwin] Move platform specific Collator impls from expression
...
Platform specific Collator implementations should not be part of an expression APIs.
2019-09-26 10:55:47 +03:00
Thiago Marcos P. Santos
c7bbd5bbef
[core] Fix performance-move-const-arg
2019-09-25 18:59:07 +03:00
m-stephen
8128d709b6
[ios]Add errors reporting ( #15391 )
...
* add errors reporting
* [ios] report error if rendering takes > 1 second. (#15633 )
2019-09-20 10:14:44 +08:00
Julian Rex
2b08c1d7bf
[ios, macos] Fix MGLOfflinePack invalidate crash ( #15582 )
2019-09-18 18:13:07 -04:00
Julian Rex
8805defe57
[ios, macos] (Re)add tilesize rounding. ( #15656 )
2019-09-18 11:52:15 -04:00
Julian Rex
a6618dc0f9
[ios] Speculative fix for failing test: MGLDocumentationExampleTests.testMGLHillshadeStyleLayer()
2019-09-18 16:21:59 +03:00
Julian Rex
461358be4b
[ios] Fix for failing tests:
...
- testRemovingLayerBeforeAddingSameLayer
- testRemovingSourceInUse
2019-09-18 16:21:59 +03:00
Julian Rex
634c95c8d9
[ios, macos] Ensure potential variables that might be nil have a fallback. ( #15645 )
...
* [ios] Ensure potential variables that might be nil have a fallback.
* [ios, macos] (potentially) free the returned arch info.
2019-09-17 16:13:50 -04:00
Julian Rex
3dbc44404f
[ios, macos] Tail work from 15385 ( #15647 )
...
* [ios] Tweak iosapp headers.
* [ios] Revert bundle identifier change.
* [ios, macos] Remove parameter not referenced.
2019-09-17 15:52:18 -04:00
Nadia Barbosa
8331b7adfe
[ios, macos] Introduce custom drawing overlays for MGLMapSnapshotter
2019-09-16 12:55:36 -07:00
Mikhail Pozdnyakov
5207a36074
[core, ios, macos] SDK objects should hold weak pointers to the core style objects ( #15539 )
2019-09-09 23:55:38 -04:00