Commit Graph

7032 Commits

Author SHA1 Message Date
Tobrun
656eb8766c [android] #3481 - add check to enable location in tracking mode 2016-01-08 17:44:54 +01:00
Konstantin Käfer
a06f28ddb7 [core] only cache successful or NotFound responses
We don't want other types of error end up in our cache, since it'll likely evict perfectly good content.
2016-01-08 16:25:54 +01:00
Konstantin Käfer
c5feadf0bd [test] deliver error responses when the underlying request failed 2016-01-08 13:23:01 +01:00
Konstantin Käfer
7e815aed2e [test] allow aborting rendering after a timeout 2016-01-08 13:23:01 +01:00
Konstantin Käfer
4479f5db6c [core] don't consult cache for asset resources 2016-01-08 13:05:51 +01:00
Konstantin Käfer
bc309d84d7 [core] unify URL prefix detection (asset:// and mapbox://) 2016-01-08 12:14:39 +01:00
Minh Nguyễn
b6fca67089 [ios] Added some missing coordinate conversion methods
These methods were public in the OS X SDK but not here.
2016-01-07 21:32:10 -08:00
Minh Nguyễn
6fcb9f4da1 [ios] Invalidate CADisplayLink
CADisplayLink holds a strong reference to its target, forming a cycle that must be broken with -[CADisplayLink invalidate] when the animation is complete. I don’t yet have enough faith that will-change and did-change notifications are always coming from mbgl in pairs, so this change limits CADisplayLink to when MGLMapView is in the view hierarchy. It also pauses the CADisplayLink when the view is hidden or the application is in the background. Finally, -[MGLMapView invalidate] has been renamed because that term tends not to mean “redraw” in Cocoa but is rather tied to timers.

Fixes #3130.

[ios] Also invalidate CADisplayLink on removal from window

[ios] Also shut down CADisplayLink when view is hidden
2016-01-07 20:28:44 -08:00
kelvinabrokwa
52844d4746 [core] fix text-offset bug
fixes #3469
2016-01-07 16:44:44 -08:00
Thiago Marcos P. Santos
c8a39e1587 [tests] Sleep more than 1s before refreshing accessed time
The cache `accessed` field resolution is 1s, so we
need to sleep a little bit more in order to make
sure that the cache entries we are refreshing will have
a different `accessed` time than the other entries.
2016-01-07 20:54:01 +02:00
bsudekum
0ef257bfc6 [node] bump version to v2.2.1 2016-01-07 09:54:45 -08:00
Konstantin Käfer
aa76b680ef [build] change Mac OS X platform target to avoid mismatch 2016-01-07 16:13:20 +01:00
Anton Malinskiy
a6a3b8a80a [android] Fixed x86_64 crash on startup: no implementation previously for cache's get/bind by chrono's seconds for x86_64. Explicitly cast to int64_t 2016-01-07 18:32:17 +07:00
Tobrun
1caad0db7c [android] #3435 - updated MapView for swallowing SecurityExceptions if permissions are revoked by end-user 2016-01-07 11:35:46 +01:00
Minh Nguyễn
11d99bd890 [ios] Refined custom callout view support
Renamed MGLCalloutView to MGLCompactCalloutView and MGLCalloutViewProtocol to MGLCalloutView to avoid an awkward workaround for a Swift name collision. Replaced individual title and subtitle properties with a single representedObject property that lets you use custom annotation properties in the custom callout view. Overrode a problematic SMCalloutView method. Added lots more documentation.
2016-01-06 23:43:07 -08:00
Romain Quidet
b70fd7ae69 [ios] basic custom callout view on demo app 2016-01-06 23:42:48 -08:00
Romain Quidet
04ab28b621 [ios] expose custom callout api, wrap around SMCalloutView class 2016-01-06 23:42:41 -08:00
Ansis Brammanis
42b13c69fe add test for text clipping at tile edges
ref #2829
2016-01-06 18:34:28 -08:00
Dane Springmeyer
12345e56d4 [android, linux, osx] Upgrade to libpng 1.6.20
- refs https://github.com/mapbox/mason/tree/libpng-1.6.20
 - refs https://travis-ci.org/mapbox/mason/builds/100661025
2016-01-06 16:35:16 -08:00
Mike Morris
1dd1543905 [core] clip labels to tiles in MapMode::Still 2016-01-06 15:17:03 -08:00
Mike Morris
dc1630f50d [core] always add labels to buffers in MapMode::Still
To minimize label clipping.
2016-01-06 14:10:23 -08:00
Tobrun
9d6cb1361c [android] #3444 #3435 - added change listeners to location tracking and bearing tracking, added requires permissions checks and handled them in the test app, update javadoc to reflect changes, formatting commit of MapView, Reposition UserLocationView when location tracking becomes active 2016-01-06 10:05:58 +01:00
Minh Nguyễn
69cf21cece [ios] Restored readme in built package
Restored a build script statement that was accidentally deleted in #3203.
2016-01-05 22:53:27 -08:00
Antonio Zugaldia
1738a9e200 [android] Fixes crash related to location listener
Fixes #3442
2016-01-05 17:36:09 -08:00
Minh Nguyễn
e3d48c2de5 Removed OS X SDK from build matrix 2016-01-05 16:47:45 -08:00
Minh Nguyễn
1a501d4ec4 Happy new year! 2016-01-05 14:01:58 -08:00
Minh Nguyễn
bc6054152c [ios] Removed appledoc workaround 2016-01-05 12:41:58 -08:00
Jason Wray
6905be6b2d [ios] more inline docs updates for jazzy
- Change all smart quotes to dumb quotes to workaround SourceKitten bug.
- Port changes from OS X (#3135)
2016-01-05 12:41:58 -08:00
Minh Nguyễn
1420a49689 [ios] Generate API documentation using jazzy
Replaced appledoc usage with jazzy, which understands modern Objective-C syntax by virtue of using Clang ASTs. Nevertheless, we have to make lots of changes to our documentation syntax, which was tailored to appledocs quirks. The new syntax jives much better with what Xcode expects in terms of auto-indentation and Quick Help.

Fixes #1420.
2016-01-05 12:41:54 -08:00
John Firebaugh
e26b218883 [android, ios, osx] Emoji ⇢ ASCII in Bitrise notifications 2016-01-05 10:59:41 -08:00
Minh Nguyễn
5f58c015e4 [iOS] Transparent GLKView
Tie layer opacity to view opacity.

Fixes #3038.
2016-01-05 10:01:31 -08:00
Minh Nguyễn
f8f735b574 Rewrote documentation
Rewrote some copy to provide more context and link to more GL-related repos, including GL JS. Put the various SDKs in a table so we can show the various CI bot status images.

Integrated target list into the relevant documents. Rewrote large portions of iOS and OS X setup documentation to guide normal developers to more friendly places. Combined some Android documentation.

Moved SDK-specific documentation into platform/. Added a temporary readme in ios/ that points to the one in platform/ios/.
2016-01-05 08:04:16 -08:00
Thiago Marcos P. Santos
6af69e4e56 [tests] Added utests for cache versioning 2016-01-05 17:32:46 +02:00
Thiago Marcos P. Santos
a5987afeb9 [core] Added versioning to the cache database
Force drop the table when the version doesn't match. Previously
it was assumed (my bad) that CREATE TABLE IF NOT EXISTS would
compare the table schema, which is not true.
2016-01-05 17:32:46 +02:00
Tobrun
f80673b15c [android] #3397 - animating change of direction when tracking mode is follow user 2016-01-05 16:10:17 +01:00
Tobrun
522a88560b [android] #3308 - remove default constructor 2016-01-05 16:06:34 +01:00
Konstantin Käfer
0377e23c20 [test] terminate test server when stdin closes 2016-01-05 14:14:23 +01:00
Minh Nguyễn
70f04c8bc5 Updated gesture help
Followup to #3426.
2016-01-05 00:02:33 -08:00
John Firebaugh
79368a0ecf [test] Remove terminate-when-inactive behavior from the test server
It caused #3163.

Attempts at having the child exit automatically when the parent exits were stymied
by the fact that unix sucks: http://stackoverflow.com/q/284325/52207.
2016-01-04 17:27:01 -08:00
Minh Nguyễn
af4b9599cb Double-tap to zoom out on Magic Mice
Fixes #3426.
2016-01-04 15:20:25 -08:00
Minh Nguyễn
8aad739ec2 [osx] Fixed map feedback zoom level
The map feedback tool still uses mapbox.js, so its zoom levels are one off from Mapbox GL’s.
2016-01-04 11:40:31 -08:00
Minh Nguyễn
e17e27fb0e [osx] Corrected initial title for restored windows 2016-01-04 11:40:31 -08:00
Minh Nguyễn
0a23d4fe39 [osx] Restore last window regardless of system preference
Even with the system preference set to close windows when quitting, the user would still expect this map-centric application to remember the last viewed map, because the world map isn’t quite as interesting.
2016-01-04 11:40:31 -08:00
Minh Nguyễn
44a4f7bca2 [osx] Fixed URL handler, reload for new access token 2016-01-04 11:40:23 -08:00
Minh Nguyễn
019b3d5b92 [osx] Respect system window closing preference
Instead of forcing the system to restore windows between sessions (which confusingly switches the behavior of ⌘Q and ⌥⌘Q), honor the preference but have each new window inherit the style of the previous main window.
2016-01-04 11:40:18 -08:00
Minh Nguyễn
0712ed904b [osx] Make osxapp document-based
Allows for multiple map windows open at a time.
2016-01-04 09:33:00 -08:00
Antonio Zugaldia
6e4eb094bf [android] Fix zoom gestures when scrolling is disabled
Fixes #3421
2015-12-30 15:27:58 -08:00
Thiago Marcos P. Santos
e6dc4fe49d [tests] Add unit tests for SQLiteCache size limit 2015-12-28 14:48:02 +02:00
Thiago Marcos P. Santos
6d0b01c5fb [core] Make it possible to limit the size of the SQLite cache 2015-12-27 18:15:33 +02:00
Minh Nguyễn
225eda4fff [osx] Simplified zoom logic 2015-12-24 16:24:45 -08:00