Commit Graph

7552 Commits

Author SHA1 Message Date
Brad Leege
fcadb064eb [android] #4835 - Adding tracking and cleanup of myLocationListener functionality 2016-04-26 17:07:23 -05:00
Brad Leege
ef8cc24945 [android] #4835 - Adding FAB Toggle UI And Functionality 2016-04-26 17:07:23 -05:00
Brad Leege
02d82c9f51 [android] #4835 - Restoring Initial setup of MyLocationToggle UI 2016-04-26 17:07:23 -05:00
Brad Leege
0b5a994246 [android] #4835 - Initial setup of MyLocationToggle UI 2016-04-26 17:07:23 -05:00
Minh Nguyễn
8d5a6b515f [ios] Only post layout change notifications when focused
Constantly posting accessibility layout change notifications on every location change made it very difficult to stay focused on an accessibility element, be it the user dot or some other element. Now we only post the notification when the user dot is focused, user tracking mode is off (so the user dot actually has a chance to move around), and the application is active (not in the middle of application switching).
2016-04-26 14:19:10 -07:00
Minh Nguyễn
193a843013 [ios] Fixed ℹ️, user dot accessibility
The user location annotation view is created lazily, so if the user dot isn’t within view at launch, it doesn’t exist by the time UIKit first queries MGLMapView for child accessibility elements. This caused console spew about missing accessibility elements and prevented the ℹ️ from being visible to XCUITest.
2016-04-26 14:19:05 -07:00
Tobrun
bf493f96cd [android] #4800 - correct background offsets from attributes 2016-04-26 22:24:18 +02:00
Tobrun
e2510fce79 [android] #4800 - default location view from start: introduced attributes, update MapboxMapOptions, added tests. updated MockParcel 2016-04-26 22:24:17 +02:00
Tobrun
ba9703351d [android] #4845 - disable robotium 2016-04-26 20:56:24 +02:00
John Firebaugh
189b5c2f60 [core] Rewrite parsePropertyTransition to work around GCC 4.9 bug 2016-04-26 11:44:48 -07:00
John Firebaugh
878310b891 [core] Simplify property parsing
This is a followup to #4811. Now that use of Function is consistent, we can have a single separate parseProperty template function that delegates to a parseConstant template function.
2016-04-26 11:44:48 -07:00
Mike Morris
64fe75b011 node-v3.1.2 2016-04-26 11:48:02 -04:00
Thiago Marcos P. Santos
18c337c845 [Qt] Split Qt flags
The shared library won't link with things that we don't
use, like QtOpenGL anymore.
2016-04-26 18:36:07 +03:00
Mike Morris
93b7d245f6 use Clock::time_point::max() instead of frame time
For Style::cascade and Style::recalculate, when rendering with
  MapMode::Still. Fixes a subtle race condition with animated
  transitions exacerbated by cd1a06c2dc.
2016-04-26 11:33:05 -04:00
Tobrun
b39d289920 [android] #3231 - add support for tinting attribution icon through xml - MapboxMapOptions, AttributionDialog will use the same color values 2016-04-26 12:28:36 +02:00
Tobrun
3602fdc040 [android] #3231 - added support for automatic tinting ui components used the client developer material colors 2016-04-26 12:28:36 +02:00
Konstantin Käfer
4770a9eb21 [osx] make scrollwheel zooming smoother
- uses the same algorithm as the GLFW app to determine scrollwheel zoom speed
- disables transitions which makes the trackpad feel faster due to immediate response
2016-04-26 10:42:33 +02:00
Konstantin Käfer
f9bdaa9d3a [osx] disable touch events
they are canceling out trackpad scrolling events
2016-04-26 10:42:33 +02:00
Minh Nguyễn
27f77b6bfa [ios] Hide compass from VoiceOver when pointing north
Fixes #4820.
2016-04-26 00:16:20 -07:00
Minh Nguyễn
cf2ef5b40b [ios] Use default images for world tour destinations
Use the default red pin images for world tour destinations in iosapp instead of the two characters usually used for the “Add n Points” actions.
2016-04-25 22:02:06 -07:00
John Firebaugh
e916cc811c [tests] Rationalize test fixtures (#4834)
Place them in a directory corresponding to the test .cpp file name.
2016-04-25 14:51:27 -07:00
Jason Wray
8ce0fb4739 [ios] Update frame size when changing dot/puck mode
- Keeps the same center point
- `updateFrameWithSize:` does not take CGSize because there is not yet
  support for non-square user location annotations
2016-04-25 17:00:43 -04:00
Minh Nguyễn
0339639e3d [osx] Fixed crash on launch on OS X 10.10
Fixed a crash introduced in #4783 that occurs when launching osxapp. -[NSString localizedCapitalizedString] is only available on OS X 10.11 and above.
2016-04-25 13:59:43 -07:00
John Firebaugh
76d6aba8f2 [core] Define mbgl::variant (#4833)
For parallelism with mbgl::optional, and to avoid exposing namespaces other than `mbgl` in the public API.
2016-04-25 13:58:10 -07:00
John Firebaugh
c1f40b9e71 [core] Move enum type classes to implementation (#4831) 2016-04-25 13:34:41 -07:00
Brad Leege
d20174270b [android] #4829 - Use CopyOnWriteArrayList for non blocking iterations 2016-04-25 14:39:24 -05:00
John Firebaugh
c4089b60bc [core] Extract Function::evaluation to a separate class (#4811)
This allows the Function<Faded<T>> partial specialization to be eliminated, giving all property functions a consistent storage type.
2016-04-25 09:51:47 -07:00
Thiago Marcos P. Santos
42043599ff [build][Qt] Use Ubuntu Trusty for Qt5
Ships with a newer version of Qt5 (Qt 5.2.1) and
it is closer to what we are actually shipping to.

Unfortunately, ATM Trusty will require 'root' [1] and
won't that makes it significantly slower because it
will not use a container version of the build env.
2016-04-25 18:33:30 +03:00
Thiago Marcos P. Santos
8b9f84d815 [Qt] Add toolchain support
Enables cross-compilation.
2016-04-25 16:44:28 +03:00
Bruno de Oliveira Abinader
4c548fe0bb [build] Added 'qt-app' targets to Travis Qt build 2016-04-25 16:20:34 +03:00
Bruno de Oliveira Abinader
db9f305b49 [Qt] Force lib install name to be executable path on OS X 2016-04-25 16:19:03 +03:00
Thiago Marcos P. Santos
1abad528af [Qt] Do not ignore compilation errors
But will no longer build with GCC 5.
2016-04-25 15:32:39 +03:00
Thiago Marcos P. Santos
5c3ae4c3d6 [Qt] Only include and link with QMapboxGL lib
Fixes #4808
2016-04-25 15:26:30 +03:00
Thiago Marcos P. Santos
d00f55de41 [Qt] Do not use non-Qt headers 2016-04-25 15:00:14 +03:00
Thiago Marcos P. Santos
a65c9ca134 [Qt] Set default visibility to hidden for Qt
Expose less symbols on the shared library.

Fixes #4809
2016-04-25 14:15:04 +03:00
Minh Nguyễn
d9a2a845de [ios] Added accessibility labels, hints, gestures
Fixed an issue where the “return to map” accessibility element lacked a label. Always update the title and subtitle of an annotation accessibility element, in case the title or subtitle changes from one showing to the next.

Added a hint for annotations. Use declarative rather than imperative for hints.

Marked the map view and its annotations as adjustable so that swiping up and down with VoiceOver zooms out and in, respectively.

Added accessibility values to toolbar buttons in iosapp.
2016-04-25 00:24:35 -07:00
Minh Nguyễn
7cc3928a19 [ios] Made annotation callouts accessible
Via nfarina/calloutview#84, SMCalloutView is now accessible. Activating a focused annotation now shows its callout view and focuses its left accessory view, if present, or the title view. There is a “return to map” accessibility element for dismissing the callout view and restoring focus to the annotation on the map.
2016-04-25 00:18:57 -07:00
Minh Nguyễn
9d3269eaa3 [ios] Restored user dot accessibility
Put the user dot back into rotation as an accessible element.
2016-04-25 00:18:06 -07:00
Minh Nguyễn
babc43ea62 [ios] Made annotations accessible
Lazily create and cache accessibility elements for visible annotations as UIAccessibility asks about them.

Sort the annotations’ accessibility elements by the annotations’ distance from the logical center (the center after accounting for padding, or the user dot when user tracking mode is on).

Updated the changelog.

Fixes #1493.
2016-04-25 00:17:02 -07:00
Minh Nguyễn
893a777a2f [ios] Made compass and user dot accessible
Made the compass behave like a button when visible. Added accessibility values and hints. The compass’s accessibility value uses the compass direction formatter. Turned off direct interaction with the map because it obscures the ornaments.

The user dot now reports the current coordinates. Its accessibility label now reflects its annotation’s title instead of the hardcoded label “User location”. (It’d be weird to address the VoiceOver user as “user”.)
2016-04-25 00:16:28 -07:00
Minh Nguyễn
9350075812 [ios] VoiceOver support for MGLMapView
Enabled direct interaction with `MGLMapView`, allowing for panning and so forth. Defined an accessibility value that announces the current center coordinate. Inset the map view accessibility frame to exclude ornaments from the interactive element.
2016-04-25 00:15:56 -07:00
Minh Nguyễn
bf313b0c5f [ios, osx] Fixed direction formatter edge cases
Fixed an issue causing angles that are multiples of 360°, such as 720°, to be described as 0 o’clock. Fixed a crash when a compass direction is close enough to 360° to round up to 360°.
2016-04-24 23:38:49 -07:00
Minh Nguyễn
57f0a21125 [ios] Only convert encoding of files generated by genstrings
Followup to #4783: fixed an issue causing make genstrings to reconvert a UTF-8-encoded file from UTF-16 to UTF-8, garbling it.
2016-04-24 20:57:13 -07:00
Minh Nguyễn
c376380112 [ios] Added separate target for Settings.bundle
Added a separate target to produce the example Settings.bundle. Use the build product in iosapp instead of a folder reference.

Added the bundle and settings targets as dependencies on the dynamic and static targets instead of listing them explicitly in various schemes.
2016-04-24 17:58:05 -07:00
Minh Nguyễn
8de7a75f02 [ios] Use base localization for Settings.bundle
Also converted the bundle’s strings file from UTF-16 encoding to UTF-8 encoding for better diffability.
2016-04-24 17:39:17 -07:00
Minh Nguyễn
540bbc537e [ios] Fixed ios-test build warnings 2016-04-24 16:41:19 -07:00
Minh Nguyễn
19f4236ebb [ios, osx] Document common workflows
We have a lot of targets now, and it isn’t always clear to new contributors where files end up. Hopefully this brief guide to adding files will help.
2016-04-24 16:18:23 -07:00
Minh Nguyễn
f85f4f4105 [ios] Streamlined resource bundling
Added a target that produces Mapbox.bundle.

Replaced $BUNDLE_RESOURCES and $PLACE_RESOURCE_BUNDLES_OUTSIDE_FRAMEWORK with a single variable, $SELF_CONTAINED, that determines whether the output static framework is self-contained – that is, whether it contains Mapbox.bundle, Settings.bundle, and LICENSE.md. Eliminated the ability to produce a static framework that has the same layout as a dynamic framework. Now, resources are always in Mapbox.bundle; self-containment only determines where that bundle resides.

Added a separate source Info.plist to be placed in both the static framework and its resource bundle, but only after we give the build system a chance to expand variables within it. Now nearly all the Info.plist keys are filled in by the build system rather than using plutil in package.sh.
2016-04-24 16:18:23 -07:00
Minh Nguyễn
95613bd7dd [ios, osx] Made OS X SDK localizable
Replaced the iOS-specific ilocalize make rule with a genstrings make rule that creates iOS, OS X, and shared strings files. Moved the override English .stringsdict file under darwin/resources/. Made the default OS X callout view XIB localizable. Made some hard-coded strings in the OS X SDK source localizable.
2016-04-24 16:18:23 -07:00
Minh Nguyễn
7a1d62dc30 [ios, osx] Corrected quarter wind abbreviations 2016-04-24 16:18:23 -07:00