Commit Graph

16768 Commits

Author SHA1 Message Date
Mikhail Pozdnyakov
fd8891c12c [ios][andoid] Add change log entry 2019-07-22 10:41:03 +03:00
Mikhail Pozdnyakov
3a0db3921c [core] Introduce RenderTileSetSource class
Encapsulates the tiles update logic based on the given tile set.
2019-07-22 10:41:03 +03:00
Mikhail Pozdnyakov
ff42997b01 [core] Avoid unneeded tile sets copying at sources code 2019-07-22 10:41:03 +03:00
Mikhail Pozdnyakov
bbe7679bc6 [core] Render sources keep the existing tiles until the new tileset is ready
In Continuous map mode, keep the existing tiles if the new tileset is not
yet available, thus providing smart style transitions without flickering.
2019-07-22 10:41:03 +03:00
Thiago Marcos P. Santos
1aa4776dc1 [tests] Bump GL JS to run render test for #15139
https://github.com/mapbox/mapbox-gl-js/pull/8510
2019-07-19 15:17:00 +02:00
Thiago Marcos P. Santos
fe9d463658 [core] Do not try to place a center anchor beyond the center of the line
Once the algorithm finds the center of the line, if placement is
not possible, do not place the anchor.

Previous code was trying to continue place the label beyond the center
of the segment.

Fixes #15139.
2019-07-19 15:17:00 +02:00
Aleksandar Stojiljkovic
d7f28c3079 Fix wrong #15065 nit fix
Change in 3ffc14a325
was a typo while addresssing review nit: while it didn't affect render tests it doesn't work properly in all cases.

Fixes: #14844, #14779, #15039
2019-07-19 12:58:19 +03:00
Tobrun
79bdce6cd4 [android] - update dependencies, target SDK, support library (#15135) 2019-07-19 11:46:38 +02:00
Tobrun
de667d2fe5 Merge pull request #15170 from mapbox/tvn-snapshot
Update snapshot version for the q release
2019-07-19 10:51:02 +02:00
tobrun
bd6c0cc55e [android] - update CI image of the release job 2019-07-19 10:50:53 +02:00
Heather Stenson
fd99a6e570 [docs] Remove references to increasing offline tile limit 2019-07-18 16:27:31 -07:00
Łukasz Paczos
4a93f39700 [android] ignore a flaky MapSnapshotter test until #11669 is resolved 2019-07-18 14:39:25 +02:00
Łukasz Paczos
146e2c555f [android] changelog for 8.2.0-beta.1 2019-07-18 13:38:06 +02:00
Łukasz Paczos
048a07e3c9 [android] fail MapSnapshotter test in case of an error returned from core 2019-07-18 10:54:39 +02:00
Jason Wray
19aa8060b3 [ios] Prepare ios-v5.2.0-beta.1 release 2019-07-17 16:51:59 -07:00
Aleksandar Stojiljkovic
ae38a22dc1 [core] Fix collision with content insets
Viewport center offset usage was wrongly submitted in #14664. It was part of alternative approach that used enlarged viewport. Existing and added tests were not sufficient to spot the regression, since the collision check padding is usually larger than the center offset x and y. Annotation picking has tolerance of only 10 pixels but no annotation integration test was using content insets.

Usage of offset is not needed because `posMatrix` in e.g. `CollisionIndex::projectPoint(const mat4& posMatrix, const Point<float>& point)` already incorporates center offset (projection matrix) and the code in current master was just offsetting all by the value.

Modified [ios] MGLAnnotationViewIntegrationTests.testSelectingAnnotationWithCenterOffset to use different insets. It verifies the fix.

Fixes [iOS] Annotations are not selectable (added via iosapp menu) #15106:

In case of #15106, view's original content insets is {top:88, bottom:34}, causing that center offset is {x:0, y:27} and selection with tolerance of 10 wouldn't select annotation.
After tapping the view, so that the header gets removed, view's content insets get changed to {top:44, bottom:34}, center offset is {x:0, y:5} and annotation selection would work, as described in #15106.

Fixes: #15106
2019-07-17 16:13:33 -07:00
Jordan Kiley
8fe469f6b1 [ios] Add changelog entry for Cache Management API (#15131) 2019-07-17 13:55:11 -07:00
Nadia Barbosa
54fb5b046e [ios, macos] Update Jazzy theme (#15125)
* [ios, macos] Update Jazzy theme

module_version -> module-version

* Update platform/macos/scripts/document.sh
2019-07-17 13:02:30 -07:00
Jason Wray
5b820a926d [ios] Add MGLMapViewZoomTests 2019-07-17 12:38:15 -07:00
Jason Wray
866aa6a6f1 [ios] Check center coordinate in MGLMapViewDirectionTests 2019-07-17 12:38:15 -07:00
Jason Wray
4e1ba601b3 [ios] Clean-up direction and compass tests 2019-07-17 12:38:15 -07:00
Łukasz Paczos
3ced4a943b [android] update Bintray's package name 2019-07-17 17:17:03 +02:00
Mikhail Pozdnyakov
f63a906ea1 Bump mapbox-gl-js version 2019-07-17 14:52:47 +03:00
Mikhail Pozdnyakov
8574b8b726 [core] Favor previous anchor only when still in the text-variable-anchor options
Port of https://github.com/mapbox/mapbox-gl-js/pull/8473
2019-07-17 14:52:47 +03:00
Heather Stenson
5f6f20e667 [ios, macos] Change "map ID" to "tileset ID" (#15116)
* map id --> tileset id

* styles map id -> style url

* update changelog
2019-07-16 18:36:07 -07:00
Jordan Kiley
9d8839c4b8 [ios] Cache Management API (#14978) 2019-07-16 14:58:32 -07:00
tobrun
0baa54a194 [android] - create map snapshot from testcase 2019-07-16 17:06:19 +02:00
m-stephen
d2434d0751 [ios , macos] Exclude CJK resources from offline download by default (#14952)
* [iOS, macOS] exclude CJK glyphs resources download by default.

* [iOS, macOS] update iosapp

* [iOS, macOS] update macOS

* [iOS, macOS] update iOS change log

* [iOS, macOS] update macOS change log

* [iOS, macOS] update comment & add test cases

* Update platform/darwin/test/MGLOfflineRegionTests.m

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/darwin/test/MGLOfflineRegionTests.m

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/darwin/test/MGLOfflineRegionTests.m

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/ios/CHANGELOG.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/macos/CHANGELOG.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/darwin/test/MGLOfflineRegionTests.m

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>
2019-07-16 11:39:34 +08:00
Julian Rex
3c488e05ef [ios] Adds thread safe access to MGLNetworkConfiguration events dictionary (#15113) 2019-07-15 21:11:17 -04:00
Josh Erb
cdd47c0358 [node] v4.2.0 release 2019-07-15 10:13:47 -04:00
Julian Rex
dae803f81d Added changelog entry 2019-07-14 22:20:56 +03:00
Aleksandar Stojiljkovic
d968cbba15 [ios][macos] Fix center coordinate incorrect after pinch gesture
To changelog:
Fixed incorrect center coordinate after pinch regression caused by edge insets fix (#14664).

While working on #14664, missed to understand the logic used in

```
                CLLocationCoordinate2D centerCoordinate = _previousPinchCenterCoordinate;
                mbgl::EdgeInsets padding { centerPoint.y, centerPoint.x, self.size.height - centerPoint.y, self.size.width - centerPoint.x };
                self.mbglMap.jumpTo(mbgl::CameraOptions()
                                        .withCenter(MGLLatLngFromLocationCoordinate2D(centerCoordinate))
                                        .withPadding(padding));

```

Replacing this code by moveBy achieves the required translation.

Fixes: #14977, #15082
2019-07-14 22:20:56 +03:00
Mikhail Pozdnyakov
a0e2064f75 [ios][android] Change log update 2019-07-12 19:38:23 +03:00
Mikhail Pozdnyakov
ff7fb5e46d [core] RenderCustomGeometrySource should clear tiles after style update
Otherwise, the remaining stale tiles cannot be updated.
2019-07-12 19:38:23 +03:00
Jason Wray
5b488225fb [ios] Add MGLCompassButton and MGLOrnamentVisibility 2019-07-11 16:06:54 -07:00
Łukasz Paczos
de71ff5102 [android] changelog for 8.2.0-alpha.3 2019-07-11 20:01:18 +02:00
Łukasz Paczos
ac0431eac5 [android] ensure that move detector is enabled if double-tap is interrupted 2019-07-11 18:18:48 +02:00
Łukasz Paczos
11cd2220a1 [android] fix up "match" expressions docs with stop arguments 2019-07-11 15:43:03 +02:00
Mikhail Pozdnyakov
d8d64cadda [ios][android] Changelog update 2019-07-11 15:36:28 +03:00
Mikhail Pozdnyakov
fa5646d112 [core] Synchronize render passes and render tiles
Before this change render passes were assigned for the
whole layer at properties evaluation stage.

This caused problems, as layer render data are bound
to the tile and these data might differ from tile to
tile, depending on which tile has been updated by the
tile worker and which has not been yet updated.

This change takes into consideration the actual render
passes required for each tile and combines them for
the layer render passes. Naturally, this change also
introduces render pass check for each render layer in
`RenderLayer::render()` implementations.
2019-07-11 15:36:28 +03:00
Łukasz Paczos
200af48754 [android] add regression tests for recent quick zoom/double tap issues 2019-07-11 14:14:10 +02:00
Łukasz Paczos
0b0d7b844a [android] allow map panning after quick zoom is disabled but a phantom gesture is executed 2019-07-11 14:14:10 +02:00
Łukasz Paczos
afa7cea4c0 [android] ensure location shadow's gradient is greater than 0 2019-07-11 13:27:13 +02:00
Łukasz Paczos
5b02434e88 [android] remove access token's nullability annotations to not impact Kotlin interop 2019-07-11 12:59:05 +02:00
Łukasz Paczos
4348169aac [android] allow setting a null access token in the runtime 2019-07-11 11:02:24 +02:00
Łukasz Paczos
348c437c0a [android] throw configuration exception when accessing Mapbox services with an invalid token 2019-07-11 11:02:24 +02:00
Jason Wray
1c931e4006 [ios] Prepare ios-v5.2.0-alpha.3 release 2019-07-10 13:39:03 -07:00
tobrun
32321d407c [android] - update okhttp to latest stable version that support pre lolipop devices 2019-07-10 11:26:01 +03:00
m-stephen
6b59db8fb0 [ios, macos] Default to local rendering of CJK characters, using system font (#14862)
* Change default CJK font from "PingFang" to "Helvetica"

* Add CHANGELOG.

* Update CHANGELOG.

* [ios] Enable client-side rendering and use `Helvetica` by default. Set `MGLIdeographicFontFamilyName` to `NULL` for using your custom remote font.

* [ios] Update change log

* [ios] Change default CJK configuration in `iosapp` project

* [ios] Update comment

* [ios] return local font name using default system font.

* [ios] Update changelog

* [ios] update changelogs & comments

* [iOS, macOS]Support mac os

* [iOS, macOS] fix bug

* [iOS, macOS] update change log

* [iOS, macOS] fix nit.

* [iOS, macOS] Ability to specify an array of fonts for fallbacks for `localIdeographicFontFamily`

* [iOS, macOS] Update comments

* [iOS, macOS] Update change log

* [iOS, macOS] update for mac OS font family names

* Fix nit.

* Update platform/ios/CHANGELOG.md

Co-Authored-By: Minh Nguyễn <mxn@1ec5.org>

* [iOS, macOS] Set `MGLIdeographicFontFamilyName` to a Boolean value `NO` for using your custom remote font.

* [iOS, macOS] remove `MGLIdeographicFontFamilyName` from info.plist & update Info.plist Keys.md

* [iOS, macOS] remove `MGLIdeographicFontFamilyName` from macOS demo app project and update info.plist Keys.md

* [iOS, macOS] update macOS changelog

* [iOS, macOS] Change docs

* Update Change log

* [iOS, macOS] Test case

* Update platform/macos/docs/guides/Info.plist Keys.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/macos/docs/guides/Info.plist Keys.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/ios/CHANGELOG.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/darwin/src/MGLRendererConfiguration.mm

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/darwin/test/MGLRendererConfigurationTests.mm

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/macos/docs/guides/Info.plist Keys.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/macos/docs/guides/Info.plist Keys.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/macos/docs/guides/Info.plist Keys.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* [iOS, macOS] update comments

* [iOS, macOS] add plist value test && filter for invalid string

* [iOS, macOS] fix nit

* Update platform/ios/docs/guides/Info.plist Keys.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/ios/docs/guides/Info.plist Keys.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/ios/docs/guides/Info.plist Keys.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/macos/CHANGELOG.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/ios/docs/guides/Info.plist Keys.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* Update platform/ios/docs/guides/Info.plist Keys.md

Co-Authored-By: Jason Wray <friedbunny@users.noreply.github.com>

* [iOS, macOS] add invalid value type test

* Apply own suggestions from code review
2019-07-10 10:00:35 +08:00
Jason Wray
18f7e4b84d [build] Opt out of homebrew cleanup on CI 2019-07-09 10:19:32 -07:00