Commit Graph

16768 Commits

Author SHA1 Message Date
Jason Wray
35cb8849cc Add GitHub issue template!
Closes #4542. Cribbed from 7b61aa9888/ISSUE_TEMPLATE.md
2016-03-31 15:45:51 -04:00
Ansis Brammanis
415ea295c5 [core] make sprite metrics checking stricter
- check that sprite metrics are within the bounds of the sprite. fix #714
- make sprite metrics problems Errors instead of Warnings
- check for negative image width, height
2016-03-31 10:27:42 -07:00
Tobrun
3f10f74a70 [android] #4520 - don't update camera position after padding call 2016-03-31 11:07:22 +02:00
Tobrun
7b6353407f [android] #4530 - add polygon example to test app 2016-03-31 11:00:16 +02:00
Tobrun
4454bd2a3e [android] #4515 - correctly calculate bounds 2016-03-31 10:58:47 +02:00
Tobrun
53267c6fc1 [android] #4517 - removed not destroyed check when determining a two tap zoomout, check occurs earlier in the method. 2016-03-31 10:22:00 +02:00
Bastien Mayard
b347451022 [android] #4517 - fix two tap gestures when zoomGesturesEnabled = false 2016-03-31 10:22:00 +02:00
Tobrun
9fc8cf39a8 [android] #3832 - improve unit testing geometry package 2016-03-31 09:38:28 +02:00
Ansis Brammanis
273600c16e [core] simplify conversions from pixels to tile units
fix #3768
2016-03-30 18:53:44 -07:00
John Firebaugh
5eda74a514 Merge branch 'release-ios-3.2.0-android-4.0.0' 2016-03-30 17:43:37 -07:00
Ansis Brammanis
b6a181097c [core] fix reparsing overscaled geojson tiles
fix #3838
2016-03-30 13:57:47 -07:00
John Firebaugh
7b5a1ca167 [core] Localize and simplify state for MapChangeDidFinishLoadingMap event
Only Map needs to track this state, and it can simply be set when beginning to load a style and reset when finished.
2016-03-30 13:53:31 -07:00
Brad Leege
7c036fb618 [android] #4535 - Enabling 4.1.0-SNAPSHOT 2016-03-30 15:16:21 -05:00
Ansis Brammanis
8e9e779f2f [core] fix line-dasharray/long-segment render test
fix #3928

reduce LineAtlas width to 256 to match -js. 256 should be enough.
2016-03-30 13:13:54 -07:00
Ansis Brammanis
387f37d035 [core] increase geojson buffer size to match -js 2016-03-30 13:13:53 -07:00
Brad Leege
66ffa453f0 [android] #4535 - 4.0.0 Changelog 2016-03-30 15:04:51 -05:00
Brad Leege
c4dbde3d59 [android] #4535 - Setting version to 4.0.0 for release 2016-03-30 15:04:51 -05:00
Brad Leege
891fccb681 [android] #4535 - 4.0.0 Changelog 2016-03-30 13:27:01 -05:00
Brad Leege
bd00e88b88 [android] #4535 - Setting version to 4.0.0 for release 2016-03-30 11:50:41 -05:00
Tobrun
ff7cdb1ba5 [android] #4365 - reworked some samples, resources and tests 2016-03-30 16:49:20 +02:00
Tobrun
58da079f8c [android] #4365 - Camera Animation Type Example 2016-03-30 16:49:20 +02:00
Tobrun
47ac55538a [android] #4365 - Improve test app examples related to InfoWindows 2016-03-30 16:49:08 +02:00
Minh Nguyễn
a143918116 Merge branch 'release-ios-3.2.0-android-4.0.0' of https://github.com/mapbox/mapbox-gl-native into release-ios-3.2.0-android-4.0.0 2016-03-29 14:02:13 -07:00
Tobrun
fc8215ecbd [android] #4500 - OnMapReady not invoked for offline maps 2016-03-29 14:56:21 -05:00
Minh Nguyễn
e84c937dc0 ios-v3.2.0-beta.3 2016-03-29 12:50:28 -07:00
Jason Wray
593f3d511a [ios] Make showAnnotations default padding proportional at smaller frame sizes 2016-03-29 15:17:04 -04:00
Jason Wray
d20795b891 [ios] Don't use negative content insets
When a map view was smaller than the entire viewport, negative content insets would be applied. Negative content insets would only be valid if the map view extended outside of its frame, which cannot happen.

Fixes #4440.
2016-03-29 15:17:04 -04:00
Tobrun
8262846294 [android] #4487 - ArrayInOutOfBoundsException fix for polyline and polygon 2016-03-29 14:07:52 -05:00
Tobrun
f8b6e1f7da [android] #4487 - ArraysInOfBoundsException fix for addMarkers 2016-03-29 14:07:52 -05:00
Minh Nguyễn
9a556bf24a [osx] Fixed tests
The previous change includes an additional salient change: a newly minted offline pack’s state is inactive initially, not unknown.
2016-03-29 11:46:28 -07:00
Minh Nguyễn
38116e39c5 [ios, osx] Require progress to be requested manually
Requesting progress is expensive, so it is once again computed only on demand, rather than automatically at launch. Moved progress requesting back to iosapp and osxapp.
2016-03-29 11:46:27 -07:00
Minh Nguyễn
78f93708d6 [osx] Offline pack manager in osxapp
Added an offline pack download manager to osxapp to demonstrate the use of MGLOfflineStorage with Cocoa Bindings. Like the Offline Packs view controller in iosapp, new packs are added based on the foremost map view’s current state. Double-clicking a complete offline pack opens a new map window to the pack’s bounds.
2016-03-29 11:46:27 -07:00
Minh Nguyễn
8c8b058038 [ios, osx] Include progress in progress change notification
An MGLOfflinePackProgressChangedNotification notification now includes the pack’s state and progress values, which match the values in the corresponding MGLOfflinePack properties. Implemented NSValue category methods to store MGLOfflinePackProgress inside a dictionary.
2016-03-29 11:46:27 -07:00
Minh Nguyễn
aff1196d02 [ios, osx] Updated jazzy categories 2016-03-29 11:46:27 -07:00
Minh Nguyễn
b248e43112 [osx] Offline unit tests
Added unit tests for MGLTilePyramidOfflineRegion, MGLOfflinePack, and MGLOfflineStorage.

Fixes #4426.
2016-03-29 11:46:27 -07:00
Minh Nguyễn
4fd875a971 [ios, osx] Secure coding, copying for offline regions
Implemented NSSecureCoding and NSCopying protocols for MGLTilePyramidOfflineRegion so that it can be used more fluidly by client code.
2016-03-29 11:46:26 -07:00
Minh Nguyễn
f02bdb8fbb [osx] Fixed build error
Fixed an incomplete variable renaming. Don’t bother creating intermediate directories to the legacy cache path. When the main bundle lacks a bundle identifier, as is the case when the SDK runs in the test bundle, fall back on the SDK’s bundle.
2016-03-29 11:46:26 -07:00
Minh Nguyễn
ad3bbd9c11 [ios, osx] Clarified documentation
Updated MGLTilePyramidOfflineRegion documentation to note that local files can’t be used as style URLs. Added documentation for private offline methods.
2016-03-29 11:46:26 -07:00
Minh Nguyễn
e36f31c503 [ios, osx] Allow creating invalid offline packs
Removed NS_UNAVAILABLE attribute from -[MGLOfflinePack init]. Packs initialized with this initializer are doomed to invalidity.

Fixes #4421.
2016-03-29 11:46:26 -07:00
Minh Nguyễn
ec72faa789 [ios, osx] Invalidate packs upon reload 2016-03-29 11:46:26 -07:00
Minh Nguyễn
55f1ad11c4 [ios, osx] More accurate KVO, private delegate, descriptive fallback name, fewer reloads
Made MGLOfflineStorage.packs strong rather than copy so that KVO notifications on that key path include index paths. Replaced custom KVO mutable collection methods with calls to -mutableArrayValueForKey:, avoiding redundant casts.

Privatized MGLOfflinePackDelegate and made its methods required, since MGLOfflineStorage is the only conforming implementation. Require a pack to be explicitly invalidated before deallocation by its owner (MGLOfflineStorage). Added a method to reload the canonical collection of packs.

Previously, if the user adds an offline pack without specifying a name in the alert, the pack would be named “Untitled n” for the nth pack created since the application was launched. This logic could result in identically named packs (for example, if the user relaunches and creates another unnamed pack). Instead, use the visible coordinate bounds as a placeholder and fallback name.

Resume a pack upon successful addition. Removed an extraneous weakSelf/strongSelf dance. When possible, update individual labels in a cell instead of reloading the entire cell. That way, if the user swipes to the left to reveal the Delete accessory button while the pack is actively downloading, the accessory button remains on screen as progress updates come in.
2016-03-29 11:46:26 -07:00
Minh Nguyễn
a1e5701fa3 [ios, osx] Centralized offline pack management
MGLOfflineStorage now maintains a centralized, strongly held, KVO-compliant collection of all extant offline packs. MGLOfflineStorage issues notifications for progress updates. Client code can now react to the successful addition of an offline pack either via the completion block or via a KVO insertion.

Fixes #4287.
2016-03-29 11:46:25 -07:00
Tobrun
bbab5a5b5e [android] #4510 - clean up test app with onStart/onStart references. 2016-03-29 13:41:36 -05:00
Justas Medeisis
af4871f7bf [android] #4510 - Remove onStart() and onStop() lifecycle methods from MapView. 2016-03-29 13:41:36 -05:00
Ansis Brammanis
0539f7b4cb [core] fix infinite loop in mbgl::resample
fix #4416
2016-03-29 11:38:35 -07:00
Ansis Brammanis
fb15582d53 [core] fix background-pattern rendering in perspective view
fix #3801
2016-03-29 11:19:47 -07:00
Ansis Brammanis
6fcc7ba513 [core] fix circle rendering in still mode
fix #3764
2016-03-29 10:10:48 -07:00
Ansis Brammanis
2d975d147f [core] switch circle render tests to poi_label 2016-03-29 10:10:48 -07:00
Jesse Bounds
1d6ce5e809 [ios] Make more adjustments to the pod readme for the static framework case 2016-03-29 10:10:34 -07:00
Minh Nguyễn
5adb102d98 [ios] Copyedited changelog
Corrected a few Xcode terms in the changelog entry about static framework installation fixes. Merged that entry with the one above it because they discuss the same fixes. Also moved the combined entry to the top, because it’s about as close to a breaking change as we can get without incurring a major version bump.
2016-03-29 10:10:34 -07:00