Commit Graph

7032 Commits

Author SHA1 Message Date
Minh Nguyễn
07cf1824d0 [core] Constrain minimum zoom level 2015-12-24 16:24:45 -08:00
Minh Nguyễn
63820d1b4f [core] Always constrain width for zoom level
Even if the map supports wrapping the world, it isn’t necessary to show more than one full revolution of the world at a time. Removed a redundant zoom level clamp.
2015-12-24 16:24:45 -08:00
Minh Nguyễn
58264408c8 [core] Always return valid source zoom level
If for whatever reason a source doesn’t cover all the zoom levels allowed by the style – for instance, if different sources have different zoom ranges – use the nearest available zoom level.
2015-12-24 16:24:45 -08:00
Minh Nguyễn
181b6284ab [osx] Run unit tests 2015-12-24 15:55:46 -08:00
Minh Nguyễn
7b032907d7 [osx] Stop building/testing OS X SDK on Travis 2015-12-24 15:07:45 -08:00
Minh Nguyễn
490907ac29 [android, ios, osx] Moved platform identifier into Slack user name
Also customized links for brevity.
2015-12-24 15:07:07 -08:00
Minh Nguyễn
633a3a5a3d [osx] Bitrise configuration
Fixes #2776.
2015-12-24 15:07:03 -08:00
Minh Nguyễn
ceb0790cd8 [osx] Unit tests
Added an XCTest bundle to the osxsdk scheme. It contains some basic tests of shared iOS/OS X code.
2015-12-24 14:41:23 -08:00
Jason Wray
e4d8494852 [ios] snap to north if interaction ends within ±7°
First proposed in #938, implemented in #1059, reverted in #1064.
2015-12-24 13:45:51 -05:00
Antonio Zugaldia
d2b2336a9e [android] better http log messages
Fixes #3411
2015-12-24 11:25:17 -05:00
John Firebaugh
845699e698 [tests] Simplify MockFileSource 2015-12-24 08:17:42 -08:00
John Firebaugh
338f94e7ed [tests] Rewrite {Sprite,Glyph}Store tests in the style of ResourceLoading 2015-12-24 08:17:42 -08:00
Brad Leege
aca584e124 [android] #3412 - Remove REGION_DID_CHANGE checks and set animateCamera methods to 1 millisecond default animation durations 2015-12-24 10:03:28 -06:00
Jason Wray
2aa1e5ca18 [ios] vary annotation bounds fit padding based on view size
Fix #3392, #3110
2015-12-23 20:18:01 -05:00
John Firebaugh
7a6076ea9d [tests] Test with OnlineFileSource
When we introduce OfflineFileSource, the behavior of existing tests should
not change.
2015-12-23 14:55:12 -08:00
John Firebaugh
d238e00d9b [core] Remove RapidJSON and GeoJSONVT dependencies from SourceInfo
It's going to be exposed in the public core API as part of #3374.
2015-12-23 14:48:41 -08:00
John Firebaugh
c972a251da [core] Remove Resource dependency from low-level classes
These classes should not be coupled to domain-specific resource types.
2015-12-23 14:30:20 -08:00
John Firebaugh
16de579d7c [core] Rationalize error handling for resource loading
* Standardize on std::exception_ptr as the error representation
  (fixes #2854).
* Don't format textual strings at the error source; pass on the
  constituent data via observer method parameters instead.
* Use the null object pattern to simplify observer notification code.
* Further refactoring for ResourceLoading tests.
2015-12-23 12:50:42 -08:00
Bruno de Oliveira Abinader
7bd4745cf1 [core] Fix typo in version-specific host defaults path 2015-12-23 14:53:59 -04:00
Bruno de Oliveira Abinader
908f4d7eb1 [core] Fix build script paths 2015-12-23 14:02:24 -04:00
Tobrun
11a8978eed [android] #3283 - fix setCenterCoordinate animation 2015-12-23 16:32:09 +01:00
Bruno de Oliveira Abinader
2e69d95c6b [tests] Moved lazy source loading tests to ResourceLoading 2015-12-23 10:54:05 -04:00
Minh Nguyễn
ba6edac01e [osx] Restore last viewed style at launch
Fixes #3389.
2015-12-22 22:41:15 -08:00
John Firebaugh
7c22792bdf [tests] Rewrite resource loading test
Make it more readable and easier to debug.
2015-12-22 18:00:30 -08:00
Minh Nguyễn
d745ff0923 [ios] Meters per point at latitude
Renamed -metersPerPixelAtLatitude: to -metersPerPointAtLatitude:, leaving the old name as a deprecated alias. In Cocoa Touch terminology, “point” is the visual unit backed by pixels.
2015-12-22 17:06:43 -08:00
Minh Nguyễn
35aeb06fe2 [ios] Add SQLite, zlib linker flags 2015-12-22 16:15:51 -08:00
Brad Leege
06f58b288a [android] #3384 - package-info.java for the .camera and .location packages JavaDocs 2015-12-22 17:27:04 -06:00
John Firebaugh
1a5eab785c Eliminate boolean return code 2015-12-22 14:54:35 -08:00
John Firebaugh
b60b6c47c0 [core] Merge SQLiteCache into the platform library
OfflineFileSource will depend on SQLite too.
2015-12-22 12:09:14 -08:00
John Firebaugh
ab0efe5d00 [core] Move OnlineFileSource to platform
Preparation for OfflineFileSource which depends on SQLite
2015-12-22 12:09:14 -08:00
Minh Nguyễn
7bfb776618 Fixed make run-osx, make run-xosx 2015-12-22 10:39:50 -08:00
Brad Leege
4c90f63c6d [android] #2915 - Removing Crashlytics From TestApp 2015-12-22 08:46:58 -06:00
Minh Nguyễn
bfcbae375b [osx] make osx with Xcode
make osx now builds with Xcode instead of make, because building the OS X SDK and osxapp requires Xcode-specific build settings. make xosx and make nosx are now aliases to make osx.

Fixes #3293.
2015-12-21 19:50:41 -08:00
John Firebaugh
3d37017c68 [ios, osx] Drop xcpretty
It's buggy and hides necessary diagnostics.
2015-12-21 16:59:35 -08:00
Brad Leege
4a18e1cf77 [android] #3354 - Setting Android Version to 3.1.0-SNAPSHOT 2015-12-21 18:29:57 -06:00
Brad Leege
8b033231d4 Merge branch 'master' into release-android-v2.4.0
# Conflicts:
#	src/mbgl/map/transform.cpp
2015-12-21 18:23:38 -06:00
Thiago Marcos P. Santos
373916420a [tests] Create less threads on the AsyncTask tests
So we open less fds as new versions of OSX have
a smaller limit (256).
2015-12-21 22:22:11 +02:00
John Firebaugh
913f49c701 [core] Prepare for OfflineFileSource
* Rename existing DefaultFileSource to OnlineFileSource
* Restore a DefaultFileSource that's a passthrough to OnlineFileSource
2015-12-21 11:35:00 -08:00
Brad Leege
4814ce1124 [android] #3354 - Android 3.0.0 Change Log 2015-12-21 13:15:34 -06:00
Brad Leege
19f2f62609 [android] #3354 - Incrementing Version to 3.0.0 for release 2015-12-21 12:22:43 -06:00
Brad Leege
9c4cbb4fcd [android] #3348 - Updating customLayerClass package name in JNI code 2015-12-21 11:51:54 -06:00
Brad Leege
e8e485f83e [android] #3348 - Moved ExampleCustomLayer into it's own package. Moved Custom Layer to Main Activity Controls in Nav Drawer with new icon. 2015-12-21 10:09:33 -06:00
Brad Leege
3bffd6456f [android] #3358 - easeTo() uses nanoseconds instead of milliseconds 2015-12-20 10:00:08 -06:00
Brad Leege
77d62baa50 [android] #3358 - Created easeCamera() API method. 2015-12-20 09:46:59 -06:00
Brad Leege
8f532eeefa [android] #3358 - Making Core GL camera methods private. Adding moveCamera() API method. Updating CameraActivity to use only animateCamera() and moveCamera() API. 2015-12-20 09:19:03 -06:00
Minh Nguyễn
49bfdd662f [ios, osx] Optional peak altitude for flying 2015-12-20 04:11:14 -08:00
Minh Nguyễn
b7223f249d [ios, osx] Avoid transition to current camera
Fixes #2456.
2015-12-20 03:57:51 -08:00
Minh Nguyễn
d668c0fa84 [ios, osx] Better zoom level–altitude conversion
Greatly simplified conversions between zoom level and altitude. Adjusted field of view to more closely match MapKit. Conversions are now well within the same order of magnitude as MapKit at all latitudes.

Fixes #2266.
2015-12-20 03:57:28 -08:00
Tobrun
f3de446bd9 [android] #3304 - refactor SpriteFactory to IconFactory, changed all the sprite names to icon for convention 2015-12-20 11:57:36 +01:00
Minh Nguyễn
cafe591d2a [osx] Flipped drag-rotate center point 2015-12-19 23:30:21 -08:00