summaryrefslogtreecommitdiff
path: root/platform
Commit message (Collapse)AuthorAgeFilesLines
* [ios] Maintain user tracking, anchor on user dot during zoom, rotateMinh Nguyễn2016-01-201-43/+39
| | | | Per MapKit behavior, zooming or rotating with a gesture can no longer kick the user out of user tracking mode. In user tracking mode, the zoom animation is always anchored on the user dot, wherever it may be.
* [ios, osx] Optionally animate content insets changeMinh Nguyễn2016-01-202-20/+43
|
* [ios] Made user dot position configurableMinh Nguyễn2016-01-201-5/+20
| | | | The user dot or user puck’s position is now configurable via a new alignment property in any user tracking mode. Also, -setUserTrackingMode:animated: is now exposed publicly, and setting its animated parameter to NO skips the initial animation.
* [ios] Non-animated user tracking mode changesMinh Nguyễn2016-01-201-6/+11
| | | | Calling -setUserTrackingMode:animated: with animated set to NO should jump instantaneously to the first reported location.
* [ios] Keep user dot callout open after user location changeMinh Nguyễn2016-01-201-8/+0
| | | | Outside of user tracking mode, the user dot moves in spurts, so view synchronization performance isn’t an issue.
* [ios] Keep callout attached to moving user dotMinh Nguyễn2016-01-201-12/+32
|
* [ios] Maintain user tracking mode after orientation changeMinh Nguyễn2016-01-201-1/+6
|
* [ios] Eliminated jump after flight to first locationMinh Nguyễn2016-01-201-1/+4
| | | | Don’t update the user location annotation’s coordinates until after the transition to the first reported location is complete.
* [ios] Leave user location callout open when trackingMinh Nguyễn2016-01-201-3/+17
| | | | Don’t close the user location annotation’s callout when the user location changes in user tracking mode.
* [ios] Fly to user locationMinh Nguyễn2016-01-201-43/+54
| | | | Fly to the user location when entering user tracking mode. Keep user location updates from interfering with the initial flight.
* [ios] Affix user dot on screen in user tracking modeMinh Nguyễn2016-01-201-17/+75
| | | | | | | | In user tracking mode, keep the user dot in a fixed location on screen, instead easing the map view so that the fixed location corresponds to the new user location. There is one exception: MGLMapView reacts to the first location update the same way as before, so that it appears to move to where the user dot has been all along. In course tracking mode, weight the user dot down towards the bottom of the view, since it’s more important to see the road ahead than the road behind. Fixes #2600, and #1041 to some extent.
* [osx] Fix loop closing with pending requestsThiago Marcos P. Santos2016-01-201-0/+7
| | | | | | | | The main loop will now wait for all the requests to complete before closing. This will make the FileSource on OSX block longer than it should at shutdown.
* [core] Add ref counting to the main loopThiago Marcos P. Santos2016-01-201-1/+25
| | | | | | | | Should not be used at all, added for a corner case on OSX network backend where the request is processed on a worker thread managed by OSX and we need to wait for that reply before destroying the thread that pushed the request.
* [ios] Fixes crash when vendorId is nilCameron Mulhern2016-01-201-0/+3
|
* Revert "Revert WebP support due to broken builds"Bruno de Oliveira Abinader2016-01-203-3/+45
| | | | | | | This reverts commit 6709bdcacd5a45a10b554f3f225206c9494e5e43. There was an issue with the script that removes '-lwebp' from WebP linker flags, since we're statically linking. This is now fixed.
* [core][ios][osx][android] make SpriteImage accept PremultipliedImageAnsis Brammanis2016-01-194-21/+22
| | | | | | | | | | | | the SpriteImage constructor signature changes from SpriteImage( uint16_t width, uint16_t height, float pixelRatio, std::string&& data, bool sdf = false); to SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
* [core][ios][osx][android] fix icons with non-integer width/heightAnsis Brammanis2016-01-193-6/+6
| | | | | | | | | | | ref #3031 ref #2198 For example, an icon that has: - a pixel width of 10 - a pixel ratio of 3 - a scaled with of 3.333 is now supported.
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-191-2/+2
|
* node-v2.2.2node-v2.2.2Mike Morris2016-01-191-0/+4
|
* [core] Eliminate macros in sqlite3.cppJohn Firebaugh2016-01-192-26/+22
|
* Revert WebP support due to broken buildsJohn Firebaugh2016-01-193-45/+3
| | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993.
* [linux] Added WebP tile supportBruno de Oliveira Abinader2016-01-192-3/+44
| | | | | | | - Android support is currently disabled due to a libwebp build issue. - iOS and OS X support will appear after the next Mapbox iOS SDK release. Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354
* [linux] Added WebP build depsBruno de Oliveira Abinader2016-01-191-0/+1
|
* [osx] No need to link with libpng & libjpegBruno de Oliveira Abinader2016-01-191-2/+0
| | | | | OSX platform includes platform/darwin/image.mm which uses CoreFoundation to decode PNG and JPEG images.
* [glfw] Fix panning directionThiago Marcos P. Santos2016-01-191-1/+1
| | | | Follow-up of the transform refactoring
* [ios] Removed redundant zoom constraintsMinh Nguyễn2016-01-181-2/+2
| | | | The zoom level is already clamped by Transform. -currentMinimumZoom appears to be useful only as an unrotation threshold; it doesn’t correspond to the minimum allowed zoom level.
* [ios] Account for top/bottom barsMinh Nguyễn2016-01-181-6/+59
|
* [core, ios, osx, android, glfw] Flipped origin of Map::latLngForPixel(), ↵Minh Nguyễn2016-01-184-38/+16
| | | | | | | | Map::pixelForLatLng() Map and Transform methods assume an origin at the top-left corner of the view, like iOS, Android, and GLFW but unlike OS X. Transform is responsible for flipping coordinates between the top-left origin of Map and the bottom-left origin of TransformState. Fixes #3574.
* [core, osx] Added optional padding to convenience methodsMinh Nguyễn2016-01-181-9/+10
| | | | Methods that offer a convenient way to jump or ease now accept an optional padding parameter. MGLMapView specifies the padding to ensure that keyboard-based zooming and rotation respects the toolbar.
* [osx] Content insetsMinh Nguyễn2016-01-181-3/+61
| | | | Added a contentInsets property to MGLMapView that behaves similarly to NSScrollView.contentInsets. Adjust it according to the window’s content layout rectangle using KVO. Automatically apply the content insets whenever creating a CameraOptions or getting the center coordinates.
* [ios] Refactored unrotationMinh Nguyễn2016-01-161-28/+34
| | | | Avoid unrotating due to programmatic rotation, even programmatic rotation that might expose empty portions of the map. Only snap to north due to a gesture.
* [ios] Avoid unrotating in heading or course tracking modeMinh Nguyễn2016-01-161-1/+3
| | | | Fixes #3587.
* [core] use stale stylesKonstantin Käfer2016-01-151-2/+2
| | | | This adds support for using cached styles that are stale. They're treated like changing styles; when the refreshed style changed compared to the one we've already had, we're swapping out the entire style, which might cause a slight flicker.
* [core] Support multiple paths in SQLiteCache::getShared()Konstantin Käfer2016-01-151-7/+25
| | | | If you use many different caches, expired weak_ptrs will pile up in the unordered_map, but that is an edge case, and you probably shouldn't do that anyway.
* [core] move SharedSQLiteCache::get to SQLiteCache::getSharedKonstantin Käfer2016-01-152-3/+3
|
* [core] Restore existing response bodyJohn Firebaugh2016-01-143-0/+6
| | | | Until #2721 lands we still need this.
* [ios] Fixed static analyzer warningsMinh Nguyễn2016-01-141-1/+1
|
* [osx] Fixed static analyzer warningsMinh Nguyễn2016-01-141-1/+1
|
* [ios] send turnstile event when telemetry is pausedJason Wray2016-01-141-2/+14
|
* [core] Let SQLiteCache decide when store or refresh responsesJohn Firebaugh2016-01-142-16/+11
|
* [core] Add an explicit "not modified" indicator to ResponseJohn Firebaugh2016-01-144-34/+37
|
* [core] std::shared_ptr<const Response> ⇢ const Response&John Firebaugh2016-01-143-18/+18
|
* [core] Eliminate FileCache interfaceJohn Firebaugh2016-01-141-6/+7
| | | | There is only one implementation and we're unlikely to add more.
* [node] extract the error message from the Error objectKonstantin Käfer2016-01-141-2/+16
| | | | this avoids double "Error: Error: reason" messages
* [test] don't pass raw strings as error messagesKonstantin Käfer2016-01-141-1/+1
|
* [android] #3461 - upgrade to okhttp3 for faster tile loading! :rocket:Tobrun2016-01-142-25/+26
|
* [android] #3535 - improve disabling tracking modesTobrun2016-01-141-10/+26
|
* [android] #3539 - silence warning about unused param message that was ↵Tobrun2016-01-141-0/+3
| | | | breaking our build on CI
* [osx] Consistent origins in gesture recognizersMinh Nguyễn2016-01-141-28/+42
| | | | Cleaned up gesture recognizers, flipping the origins of anchor points only and always before calling mbgl methods. This exposed the fact that the cursor locking feature during drag-zoom/rotate/tilt was broken, so I fixed it to match MapKit behavior exactly and also account for modifier changes in mid-gesture.
* [core] Standardize transform originMinh Nguyễn2016-01-143-3/+3
| | | | All Transform methods that take a PrecisionPoint now assume a “flipped” origin at the upper-left corner of the view. Previously, some methods assumed an origin at the lower-left corner.