summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* [core] Clamp pitch in easeTo(), flyTo()Minh Nguyễn2015-12-191-0/+1
| | | | Also factored out the maximum pitch into a constant.
* [ios, osx] Allow zero-duration flightMinh Nguyễn2015-12-192-10/+23
| | | | | | For consistency with -setCamera:…, a duration of 0 jumps instantaneously to the new location, while a negative value uses the distance-dependent default. Due to the produced curve and applied easing, flyTo() doesn’t model a parabola or ballistic trajectory, but it does simulate powered flight to some extent.
* [core] Reformulated flyTo optionsMinh Nguyễn2015-12-191-8/+9
| | | | The speed and curve fields in CameraOptions have been replaced with velocity and minZoom fields, which expressed in screen units. Scaling and easing make it difficult to derive options that are expressed in physical units.
* [core] Refined and commented flyToMinh Nguyễn2015-12-191-5/+42
| | | | | | | | Rewrote the flyTo implementation to more closely match GL JS’s implementation and the paper on which it is based. Rewrote CameraOptions documentation. Only document units for generic types like double. The semantics of LatLng and Duration are already baked into the types; one just needs to look up the types’ definitions. Also, the […) is set notation, so the braces are supposed to be mismatched. Fixes #3296.
* [android] Camera APIBrad Leege2015-12-181-5/+5
|
* [ios, android] Add methods to remove a custom layerJohn Firebaugh2015-12-172-0/+3
|
* [ios] Renamed custom style layer invalidation methodMinh Nguyễn2015-12-161-1/+1
| | | | Cf. -[UIView setNeedsDisplay] and -[MKOverlayRenderer setNeedsDisplay].
* [ios, android] Add a method to invalidate custom layers, forcing a repaintJohn Firebaugh2015-12-161-0/+2
|
* [ios] Silence undocumented typedef warnings from appledocMinh Nguyễn2015-12-161-0/+3
| | | | ref #3203
* Revert "Revert "[ios] Custom style layer""Minh Nguyễn2015-12-162-0/+23
| | | | This reverts commit 081e4e44516937a6139fad5823dd5ec3200cc343.
* [android] Move includes to platform subdirectoryJohn Firebaugh2015-12-162-219/+0
|
* Revert "[ios] Custom style layer"John Firebaugh2015-12-162-23/+0
| | | | ec9a4cd3285da280d43c7ddd0ca96fe37d9c5278
* [ios] Custom style layerMinh Nguyễn2015-12-162-0/+23
| | | | | | Exposed Map::addCustomLayer() publicly as an undocumented, block-based API. This change avoids the terms “layer”, “initialize”, “render”, and “altitude” because they overload existing terminology in the SDK, UIKit, or MapKit. (“Layer” is qualified as “style layer”.) There are outstanding questions about ARC memory management, but this approach works in both Objective-C and Swift for pure OpenGL programming. Added a demo to iosapp that draws a green layer below any labels in Mapbox Streets.
* code review updates: sprite_atlas brackets and nullable removed for ↵Romain Quidet2015-12-151-1/+1
| | | | reuseIdentifier of annotationImage
* 2210: MGLAnnotationImage image can be updateRomain Quidet2015-12-151-2/+2
|
* [ios, osx] Added flyToCamera: variation that uses default durationMinh Nguyễn2015-12-152-5/+18
|
* [ios, osx] Added flyTo to OS X; refactored camera settersMinh Nguyễn2015-12-152-2/+10
|
* [core] Corrected flying trajectory; pitched flightMinh Nguyễn2015-12-151-0/+2
| | | | | | Corrected some fairly opaque code that was incorrectly ported from GL JS the first time around in #3171, causing the trajectory to extend far into the Earth’s orbit. Also transition pitch while flying, call transition frame/finish callback functions, and recognize the same “speed” and “curve” parameters that GL JS does. Fixes #3296, fixes #3297.
* [core] allow changing the orientationKonstantin Käfer2015-12-154-0/+15
| | | | You can now change the orientation of north to be to the right, bottom, left in addition to the default of top
* [node] code review cleanupMike Morris2015-12-151-1/+1
|
* [osx] Map cameraMinh Nguyễn2015-12-132-0/+26
| | | | Shared MGLMapCamera between iOS and OS X. Unfortunately -camera and -setCamera: implementations need to be copy-pasted for now.
* [osx] Default callout view controllerMinh Nguyễn2015-12-132-1/+20
|
* [osx] Documentation comments for public classesMinh Nguyễn2015-12-135-43/+637
| | | | | | | | | | Added documentation comments for all the public headers that aren’t being shared with iOS. Removed an animated: parameter from -selectAnnotation: and -deselectAnnotation:: because callout popovers may extend beyond the entire window, there is no need to scroll the map to make the entire callout visible. Added missing geometric conversion methods. Renamed -mapView:regionWillChangeAnimated: et al. to say “camera” instead of “region”. “Region” leaves ambiguity about whether properties like rotation and pitch trigger this method. “Camera” associates these methods with the camera property, which seems apt.
* [osx] Commented private headers and implementation filesMinh Nguyễn2015-12-132-2/+44
|
* [osx] Moved Mapbox.{h,m} into framework proper; set version variablesMinh Nguyễn2015-12-131-15/+0
|
* [osx] Added inline comments to MGLMapViewMinh Nguyễn2015-12-131-1/+2
|
* [osx] Annotation cursorsMinh Nguyễn2015-12-131-0/+3
| | | | Also added an option to osxapp for assigning a random cursor to all the annotations each time an annotation is added or removed.
* [osx] Annotation tooltipsMinh Nguyễn2015-12-132-0/+15
| | | | Annotations can optionally have tooltips. osxapp has an option, off by default, to assign a (localized) tooltip to each dropped pin.
* [osx] Drop Pin context menu itemMinh Nguyễn2015-12-131-0/+2
|
* [osx] Rewrote platform-osx and osxappMinh Nguyễn2015-12-1317-53/+283
| | | | | | | | | | | | | | platform-osx now vends a real NSView subclass, MGLMapView, that is readily embedded inside a Cocoa application for OS X. MGLMapView is backed by an NSOpenGLLayer for optimal performance and integration with other layer-backed views. It supports keyboard shortcuts and several gestures and hosts attribution, zooming, and rotation controls as subviews. osxapp is now a bona fide Cocoa application that embeds MGLMapView inside a XIB. osxapp has preferences and a share button for tight integration with custom styles. Enabling asynchronous rendering would be more consistent with iOS but increases CPU usage so much, even when idle, that it isn’t worth any performance gain. The bigger issue is that VAOs aren’t being used. make xpackage creates a static library similar to the one created by make ipackage. make clean cleans additional places where build output ends up. The OS X minimum deployment target has been increased from 10.9 to 10.10. osxapp’s window has a full size content view, which requires 10.10. Lightweight generics require iOS 9+ and OS X 10.11 regardless, because it was only in that release that Foundation collection classes started adopting lightweight generics. Shuffled files around and refactored annotations so that iOS and OS X share a good chunk of the annotations code, which now takes advantage of polymorphism. MGLMapView can now display annotations but cannot yet select them. In osxapp, a long press drops a pin, and so does the map view’s context menu. Annotations have NSPopovers as callouts, and their view controllers can be customized. Annotation image alignment rects are respected for hit testing purposes and for positioning the callout anchor. Callouts in osxapp demonstrate the use of bindings to keep callouts in sync with underlying model objects.
* [core] Reduce custom layer API to lowest common denominatorJohn Firebaugh2015-12-112-4/+46
|
* Implementation of flyTo.Adam Hunter2015-12-092-0/+9
|
* [core] Custom layersJohn Firebaugh2015-12-091-0/+5
|
* [core] Replace StyleLayerType with RTTIJohn Firebaugh2015-12-071-23/+0
|
* Fixed linker warnings about overridden styleURL__Minh Nguyễn2015-12-061-3/+0
| | | Reapplied #3097, which was originally applied to the release-ios-v3.0.0 branch but was omitted in a merge back to master.
* [core] use `default` instead of empty function bodyKonstantin Käfer2015-12-032-5/+5
|
* [core] add std::move to constructorsKonstantin Käfer2015-12-031-1/+1
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-0342-61/+63
|
* [core] Map::setSprite ⇢ Map::addAnnotationIconJohn Firebaugh2015-12-011-5/+4
| | | | Fixes #3084
* [glfw] No longer necessary to wait for style load to add default markerJohn Firebaugh2015-12-011-2/+0
|
* [core] Move MapData storage to MapContextJohn Firebaugh2015-12-011-1/+1
| | | | | This allows MapData members to hold GL resources which must be released on the MapContext thread -- necessary for the following commit.
* [core] Removed libuv dependency from HTTPCurl*Thiago Marcos P. Santos2015-12-011-0/+14
| | | | | Moved the fd watcher to the RunLoop. So far only needs to be implemented by platforms using HTTPCurlRequest et al.
* [core] Privatize internal headersJohn Firebaugh2015-12-013-359/+0
|
* [core] Expose fewer RunLoop implementation details in headerJohn Firebaugh2015-12-011-16/+7
|
* [core] Merge uv_detail.hpp into uv.hppJohn Firebaugh2015-12-013-231/+207
|
* [core] Introduce Timer abstractionThiago Marcos P. Santos2015-12-011-0/+30
|
* [core] Removed dependency on uv_loop from the file sourceThiago Marcos P. Santos2015-12-011-6/+8
|
* [core] Abstract main loop inside RunLoop classThiago Marcos P. Santos2015-12-011-12/+33
|
* [core] Use AsyncTask on the MapContextThiago Marcos P. Santos2015-12-011-0/+28
|
* [tests] Don't use icons from the style for annotationsJohn Firebaugh2015-11-301-0/+2
|