summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* [osx] Documentation comments for public classesMinh Nguyễn2015-12-1312-89/+732
| | | | | | | | | | 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-1314-6/+89
|
* [osx] Align build settings with Xcode framework project templateMinh Nguyễn2015-12-132-7/+31
| | | | In particular, -Os yields significant size improvements in Release.
* [osx] Renamed annotation IDs to annotation tagsMinh Nguyễn2015-12-131-97/+97
| | | | By analogy with Cocoa tracking area tags, tooltip tags, view tags, etc.
* [osx] Moved Mapbox.{h,m} into framework proper; set version variablesMinh Nguyễn2015-12-136-32/+28
|
* [osx] Added inline comments to MGLMapViewMinh Nguyễn2015-12-134-21/+251
|
* [osx] Build framework based on static libraryMinh Nguyễn2015-12-1334-218/+174
|
* [osx] Fixed KVO compliance for selectedAnnotationMinh Nguyễn2015-12-131-0/+2
|
* [osx] Blanket the map with pinsMinh Nguyễn2015-12-132-2/+50
|
* [osx] Annotation cursorsMinh Nguyễn2015-12-134-24/+118
| | | | 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-135-3/+86
| | | | 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-134-57/+96
|
* [osx, ios] Improved annotation interactionMinh Nguyễn2015-12-131-36/+85
| | | | | | | | | | | | Corrected annotation image alignment rects used in positioning the popover and hit testing for selection. The alignment rects were flipped in a couple places and we were getting lucky until now. Query for any point annotation within a slop area that extends by the maximum image dimensions in each direction, then filter by annotations whose images actually hit-test. (So to select an annotation that has a doughnut image, you have to click on the actual doughnut, not its hole.) It’s a fuzzy hit test with a four-pixel-radius slop area, so there shouldn’t be any clicking precision issues. Clicking on an annotation while a callout is open merely closes the callout popover, so it isn’t possible to go immediately from one callout to another. Since we still want to cycle through coincident annotations, keep track of the last selected annotation ID. Clicking on a visible point annotation whose center is out of the visible bounds now selects the annotation. Ported the callout-positioning portion of these changes to iOS. Also refactored some geometry conversion methods and removed a redundant constant.
* [osx] Rewrote platform-osx and osxappMinh Nguyễn2015-12-1386-582/+4424
| | | | | | | | | | | | | | 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.
* [ios] Sort candidate annotations by proximity to tapMinh Nguyễn2015-12-132-4/+15
| | | | | | If you tap near a tight cluster of annotations, the annotation directly beneath your finger should be selected first. Previously, the annotations within the query bounds would be selected in order from oldest to newest, which was counterintuitive. The new behavior does sometimes make it more difficult to cycle through the entire cluster, but the previous behavior often got in the way anyways, as your finger would wind up atop a callout view for an annotation farther south. Also updated the changelog.
* [ios] Refined annotation selectionMinh Nguyễn2015-12-131-18/+22
| | | | Decreased hit test padding for annotation selection, since the query no longer depends on it. Fixed an assertion failure when selecting an annotation while the user dot is selected. Fixed an issue where selecting a selected user dot deselected it. Fixed an issue where the user dot’s callout positioning rect was off-center and a little too high.
* [ios] Refactored MGLMapView annotationsMinh Nguyễn2015-12-131-277/+473
| | | | | | | | MGLMapView now maps “annotation tags” (Cocoa-speak for numeric annotation IDs) to context objects that pair annotations with their identifiers. Previously, MGLMapView mapped the annotation objects themselves to context objects that contained annotation IDs, but this caused most operations involving annotations to be rather expensive: since mbgl tracks annotations by ID, most of the time you know the ID and need either the annotation or some piece of metadata about it. Along for the ride, geographic methods and support for alignment rect insets on annotation images have been ported from #3135 for OS X. Hit testing now works much like in #3135, with the exception that UIKit doesn’t support hit testing based on pixel opacity. -convertRect:toLatLngBoundsFromView: returns a world-spanning bounds when the world is wrapping. Fixes #3159.
* [ios] Silly rabbit, Cocoa bindings are for Mac developers!Minh Nguyễn2015-12-121-1/+1
| | | Reapplied 56ea347c49cfbeec9cf1dca5726b9eb322ebd1ec for #3199, which got lost in a merge.
* [android] #3262 stop listening to bearing when state switchesTobrun2015-12-121-5/+3
|
* [android] #3191 - remove double direction stateTobrun2015-12-121-2/+0
|
* [android] #3270 - add sample activity for animated coordinate changeTobrun2015-12-1210-3/+212
|
* [android] #3267 limit user input as an example to VisibleCoordinateBoundsTobrun2015-12-121-0/+5
|
* [core] Use global namespace on some <cmath> functionsThiago Marcos P. Santos2015-12-111-4/+4
| | | | | Improves compatibility as some old std libs don't have them on the std:: namespace.
* [test] update test suite to include more comprehensive GeoJSON testsKonstantin Käfer2015-12-119-18/+29
|
* [core] don't fail on invalid inline GeoJSON dataKonstantin Käfer2015-12-111-2/+9
|
* [build] make sure we're building the config file for node Xcode projectsKonstantin Käfer2015-12-111-1/+1
|
* [core] create GeoJSON tiles from inline GeoJSON in sourcesKonstantin Käfer2015-12-116-3/+231
|
* [core] parse GeoJSON source typeKonstantin Käfer2015-12-1111-14/+108
|
* [core] split Source parsing into separate functionsKonstantin Käfer2015-12-112-21/+65
|
* [core] move SourceInfo to its own fileKonstantin Käfer2015-12-114-116/+158
|
* [core] Reduce custom layer API to lowest common denominatorJohn Firebaugh2015-12-117-49/+139
|
* [android] #3245 Reverse Tilt GestureTobrun2015-12-111-1/+1
|
* [android] #3246 disable zoom controlsTobrun2015-12-111-1/+0
|
* [android] #3248 - enforce application context in a singletonTobrun2015-12-111-1/+1
|
* [android] #3238 inconsistent package nameTobrun2015-12-111-1/+1
|
* updates order of lifecycle methods. Addresses #2957danswick2015-12-101-7/+7
|
* Fix Android ProGuard View rules & release signingStephen Niedzielski2015-12-103-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Enable ProGuard for the test app so the most common use case may be tested. - Update ProGuard to keep all Mapbox views and their methods. Previously, ProGuard was stripping numerous class methods including UserLocationView.g/setAccuracy(). These particular methods are accessed via reflection. On newer APIs, this manifests only in Logcat and loss of functionality: PropertyValuesHolder W Method setAccuracy() with type float not found on target class class com.mapbox.mapboxsdk.views.UserLocationView W Method getAccuracy() with type null not found on target class class com.mapbox.mapboxsdk.views.UserLocationView On Android 4.03 and 4.04 (API 15), this causes an NPE: java.lang.NullPointerException at android.animation.PropertyValuesHolder.setupSetterAndGetter(PropertyValuesHolder.java:513) at android.animation.ObjectAnimator.initAnimation(ObjectAnimator.java:385) at android.animation.ValueAnimator.setCurrentPlayTime(ValueAnimator.java:537) at android.animation.ValueAnimator.start(ValueAnimator.java:927) at android.animation.ValueAnimator.start(ValueAnimator.java:950) at android.animation.ObjectAnimator.start(ObjectAnimator.java:363) at com.mapbox.mapboxsdk.views.UserLocationView.setLocation(UserLocationView.java:401) at com.mapbox.mapboxsdk.views.UserLocationView.toggleGps(UserLocationView.java:300) at com.mapbox.mapboxsdk.views.UserLocationView.setEnabled(UserLocationView.java:230) at com.mapbox.mapboxsdk.views.MapView.setMyLocationEnabled(MapView.java:3122) ... Also add Support libraries rules to the test. Further amendments may be made by examining usage.txt[0,1]. [0] http://developer.android.com/tools/help/proguard.html#enabling [1] http://proguard.sourceforge.net/manual/usage.html#shrinkingoptions
* [tests] Force classic locale on toString testsThiago Marcos P. Santos2015-12-101-0/+4
| | | | | | Fix an issue where the test result can be affected depending on the current locale settings of the machine running the tests.
* [core] Move linux and osx to platform subdirectoryJohn Firebaugh2015-12-109-17/+15
|
* [core] viewport is handled by embedding applicationsKonstantin Käfer2015-12-105-24/+6
|
* [core] update annotation simplification [skip ci]Vladimir Agafonkin2015-12-101-1/+1
| | | | | | This matches VT default https://github.com/mapbox/tilelive-bridge/commit/6bd5b3cc68e86990cc9cf2b fde5e956373cb5b0c
* [core] update geojson-vt optionsVladimir Agafonkin2015-12-101-4/+3
| | | | | | - fix the code to use the same simplification tolerance - remove outdated indexMaxZoom/Points values and rely on default - bump buffer 2x to fix bleeding linecaps on thick lines
* [core] upgrade to GeoJSON VT 3.0.0Konstantin Käfer2015-12-106-28/+32
|
* [core] don't rebuild shaders unless they changeKonstantin Käfer2015-12-1014-183/+89
|
* [android] #3240 - Reimplemented compass algorithm for compass bearing, fixed ↵Tobrun2015-12-091-40/+35
| | | | switching between user location tracking modes
* Implementation of flyTo.Adam Hunter2015-12-096-1/+132
|
* [test] Update test suiteJohn Firebaugh2015-12-093-4/+12
|
* [android] #3224 - add espresso test for TiltActivityTobrun2015-12-091-0/+27
|
* [core] Custom layersJohn Firebaugh2015-12-0917-55/+273
|
* [android] #2954 - Refactoring UserLocationView to use common ↵Brad Leege2015-12-092-43/+41
| | | | LocationServices for location data