Bruno de Oliveira Abinader
b5bb48edaa
[core] Simplify LatLng::unwrapForShortestPath usage
...
Simplify LatLng::{wrap,unwrapForShortestPath} code, avoiding duplicated
code between Transform::{latLngToScreenCoordinate,easeTo,flyTo}.
Added unit tests for camera usage in Transform to detect cases like e.g.
crossing the antimeridian as a shortest path between two coordinates.
Transform::flyTo precision loss to be handled in #4298 .
2016-03-14 11:45:31 +02:00
Bruno de Oliveira Abinader
fe7e208b42
[core] Implement LatLng::null()
2016-03-13 21:38:20 +02:00
Bruno de Oliveira Abinader
8e30a4a080
[core] Harden Transform anchor & padding usage
...
Use optional values for anchor & padding in Map and Transform functions
instead of NaNs. Added unit tests to stress some edge cases.
2016-03-13 21:38:20 +02:00
Jason Wray
a396c6a7f0
[ios] Fix incorrect issue link in v3.1.0 section
...
[skip ci]
2016-03-13 13:36:47 -04:00
Tobrun
d64652f9be
[android] #3749 - added javadoc
2016-03-12 19:57:27 -05:00
Tobrun
a980f725b8
[android] #4252 - close concurrent window fix
2016-03-11 22:29:48 -05:00
Tobrun
45e6ee1372
[android] #4283 - enable strict mode in test app + fix strict mode warning related to releasing the surface
2016-03-11 20:07:56 -05:00
John Firebaugh
c39bd344b5
[core] Set mapbox::DEFAULT_OFFLINE_TILE_COUNT_LIMIT to 6000
2016-03-11 16:36:58 -08:00
Tobrun
ad2ebc6cf6
[android] #4270 - library resource prefix espresso update
2016-03-11 17:37:19 -05:00
Minh Nguyễn
3b225d57d9
ios-v3.2.0-pre.2
2016-03-11 13:50:06 -08:00
Minh Nguyễn
14993ed477
[ios] Copyedited changelog entries
2016-03-11 12:01:59 -08:00
Minh Nguyễn
4748973c04
[core] Deactivate offline region upon completion
2016-03-11 11:43:32 -08:00
Bruno de Oliveira Abinader
694a064cdd
[core] Fix non-anchored Transform::setAngle
...
This reverts a line change from b33b2f15 , because we explicitely want
the anchor to be invalid.
2016-03-11 16:53:36 +02:00
Bruno de Oliveira Abinader
f73beb5913
[core] Fix screen coordinates when crossing the antimeridian ( #2 )
...
Added missing case. Really fixes #4155 this time.
2016-03-11 12:34:21 +02:00
Minh Nguyễn
4bcc24d5af
[ios] Fixed iosapp build
...
MBXDownloadsTableViewController.{h,m} had been renamed MBXOfflinePacksTableViewController.{h,m}, but the project had not been.
2016-03-10 20:22:19 -08:00
Minh Nguyễn
3622c2d25c
[ios] MGLOfflinePack in jazzy config
2016-03-10 20:17:16 -08:00
Minh Nguyễn
1ee7264b0e
[ios, osx] Updated changelog
2016-03-10 17:14:15 -08:00
Minh Nguyễn
641c31507d
[ios] Renamed downloads to offline packs in iosapp
2016-03-10 17:14:14 -08:00
Minh Nguyễn
ff9c3a57b0
[ios, osx] Renamed MGLOfflineTask to MGLOfflinePack
...
“Offline pack” more effectively communicates the persistent nature of the downloaded content.
2016-03-10 17:14:14 -08:00
Minh Nguyễn
ee20fd8fd8
[ios, osx] Avoid unregistering observer for invalid task
2016-03-10 17:14:14 -08:00
Minh Nguyễn
7fa3b92429
[ios, osx] Tightened offline task state
...
Fixed a race condition that could occur if a progress update comes after a call to remove the task but before the removal is complete. Avoid synchronously setting the task’s state inside -resume and -suspend; instead, rely on the observer to set the state asynchronously.
2016-03-10 17:14:14 -08:00
Minh Nguyễn
77d99584ce
[ios, osx] Distinguish between unknown and inactive state
2016-03-10 17:08:58 -08:00
Minh Nguyễn
68ba0712f7
[ios, osx] Privatized offline region observer
2016-03-10 17:08:58 -08:00
Minh Nguyễn
c335847451
[ios, osx] Invalidate task immediately upon removal
2016-03-10 17:08:58 -08:00
Minh Nguyễn
e218728f3a
[ios, osx] Fixed crash interacting with MGLOfflineTask
...
Added a missing conditional to the invalidation checking macro that I factored out at the last minute.
2016-03-10 17:08:58 -08:00
Minh Nguyễn
8824237e2d
[ios, osx] Documented offline APIs
...
Also categorized offline symbols for jazzy and moved styleURL from MGLOfflineRegion to MGLTilePyramidOfflineRegion, since you never know if there will be a region type not constrained by a style in the future.
2016-03-10 17:08:58 -08:00
Minh Nguyễn
0348c1ee96
[ios] Tap to pause/resume
...
Tapping on a download now pauses or resumes it. Tapping on a completed download navigates to the downloaded region and switches to the downloaded style.
2016-03-10 17:08:58 -08:00
Minh Nguyễn
f5ac63dfec
[ios, osx] Renamed offline classes
...
Renamed SDK classes related to offline viewing to more closely match the terminology used by mbgl and the Android SDK while remaining consistent with Cocoa naming principles.
2016-03-10 17:08:58 -08:00
Minh Nguyễn
e36218a866
[osx] Added OS X support for offline downloads
2016-03-10 17:08:58 -08:00
Minh Nguyễn
081ee9fbef
[ios] Added download manager to iosapp
2016-03-10 17:08:58 -08:00
Minh Nguyễn
77657b3896
[ios] Implemented offline API in iOS SDK
...
Fixes #3892 .
2016-03-10 17:08:58 -08:00
Minh Nguyễn
a65730803e
[ios] Converted iosapp to use storyboard
2016-03-10 17:08:58 -08:00
Bruno de Oliveira Abinader
3879bc6a4e
[core] Make vec{2,3,4} operator bool explicit
2016-03-11 02:24:09 +02:00
Jason Wray
c19cc4aef6
[ios] Remove duplicate entry from changelog
...
[skip ci]
2016-03-10 18:43:45 -05:00
Minh Nguyễn
29688e2cd8
[ios] Disable implicit animation of user dot bounds
...
ref #1125
2016-03-10 12:03:26 -08:00
Tobrun
d04d6d8f93
[androd] #4269 - polyline activity crash fix
2016-03-10 15:01:19 -05:00
Tobrun
4cb75a5c36
[android] #4263 - fix null pointer on MapboxMapEventManager
2016-03-10 14:59:33 -05:00
Jason Wray
64b163ee5d
[ios] Add description strings to constituent classes
2016-03-10 13:48:00 -05:00
Tobrun
d03e87fa4d
[android] #4263 - have the ability to define multiple callbacks for OnMapReady
2016-03-10 10:49:37 -05:00
John Firebaugh
bbfd2c3d5a
[android] Route exceptions in HTTPRequest constructor to onFailure
2016-03-10 10:38:00 -05:00
Bruno de Oliveira Abinader
1a4b8f3e2f
[core] Fix screen coordinates when crossing the antimeridian
...
If the center and point coordinates are not in the same side of the
antimeridian, we need to unwrap the point longitude to make sure
it can still be seen from the visible side of the antimeridian that is
opposite to the center side.
Fixes #4155 .
2016-03-10 14:00:42 +02:00
Bruno de Oliveira Abinader
7dde622db1
[core] Extra checks in Transform
2016-03-10 03:36:47 +02:00
Bruno de Oliveira Abinader
b33b2f1515
[core] Check for NaNs in EdgeInsets
2016-03-10 03:36:46 +02:00
Bruno de Oliveira Abinader
e8d1276bb1
[core] Added Transform::getScreenCoordinate
2016-03-10 03:36:46 +02:00
Bruno de Oliveira Abinader
d300f341bc
[core] Remove _validPoint from Transform code
...
vec2<T>::operator bool() checks for NaNs already.
2016-03-10 03:36:46 +02:00
Bruno de Oliveira Abinader
dc2853533f
[core] Fixes point annotations misplaced on maximum scale
2016-03-10 03:36:45 +02:00
Bruno de Oliveira Abinader
026b6d4c01
[core] Coordinate wrapping fixes
...
- Make returning LatLngs unwrapped by default.
- PointAnnotation and ShapeAnnotation are always wrapped so they can be
selected via intersection from the visible tile boundaries.
- Fixes LatLng::wrap() calculation.
- Fixes LatLng::unwrapForShortestPath() calculation.
The new unwrapForShortestPath algorithm unwraps the start coordinate
either forwards or backwards depending on the end coordinate value, so
we can always cross the antimeridian when needed and still obtain a
wrapped end coordinate in the end.
Fixes #4214 .
2016-03-10 03:36:45 +02:00
Tobrun
808bf7004a
[android] #4076 - MapboxMapOptions fix
2016-03-09 17:46:00 -05:00
John Firebaugh
7cceca4b45
[core] Deactivate OfflineDownload when the tile count limit is hit
...
This is a better behavior than sending hundreds or thousands of tileCountLimitExceeded notifications.
2016-03-09 13:40:00 -08:00
Tobrun
be00dfd367
[android] #4253 - remove MapboxMapActivity
2016-03-09 16:30:29 -05:00