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
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
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
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
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
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
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
Alexander Shalamov
907aaba93d
[darwin] Reset number formatter digits for currency style
...
As we are using singleton formatter, fraction digits must be reset
when number formatter is used when initialized for decimal / currency
style.
2019-09-04 10:37:50 +03:00
Mikhail Pozdnyakov
35733f44ab
[Darwin] Update MGLSymbolStyleLayer documentation
2019-09-03 11:45:17 +03:00
Ander Conselvan de Oliveira
21632a66f8
[core] Remove programCacheDir parameter from ProgramParameters
...
Binary shader support has been removed in commit c2f974f2a5 ([core]
Remove binary shader support). This left-over parameter is not used
anywhere anymore.
2019-08-27 16:23:48 +03:00
Jason Wray
0e57c7de44
[ios] Refactor NSUserDefaults key variable names
2019-08-21 12:14:20 -07:00
Jason Wray
2f43a7b87b
[ios] Updates for offline pricing
2019-08-20 17:21:55 -07:00
Alexander Shalamov
e6e751abd3
[darwin] Update documentation text for enum array value
2019-08-13 13:32:56 +03:00