Commit Graph

801 Commits

Author SHA1 Message Date
Justin R. Miller
2aa3ab0c14 bump iOS version in podspec/Fabric 2015-10-30 15:23:50 -07:00
Minh Nguyễn
557b8afb7c [core][iOS] Source iOS styles from default_styles
Moved mbgl::util::default_styles to a more appropriate location, where iOS platform code can also find it. Moved -[MGLMapView bundledStyleURLs] (which is now deprecated) and the style switcher in iosapp to default_styles.

Added a collection of convenience methods for getting style URLs. It makes little sense to layer an enum atop this, as MapKit does, because MGLMapView styles aren’t limited to this set. A good analogy is UIColor. This also makes for a good entry point for future runtime styling APIs.

Introduced independent constants for each default style, because it’s more common to need access to a particular style than to iterate over them. This fact is apparent in the MGLStyle class, which now uses macros and assertions to ensure that it’s kept up-to-date with changes in default_styles.

/ref #1462
2015-10-30 13:09:37 -07:00
Minh Nguyễn
3b6dc37e39 Fixed build issues and typos
Also renamed styles to more common names.
2015-10-30 13:09:04 -07:00
Leith Bade
abf93c008b [core] Remove bundled styles.
Fixes #2239
2015-10-30 13:09:04 -07:00
Tom MacWright
26cb45ed46 Document node-mapbox-gl-native with JSDoc 2015-10-29 16:55:30 -07:00
Murray Hughes
f6e3ee4b25 [ios] fix removal of heading view when changing user tracking modes 2015-10-29 16:50:34 -04:00
Murray Hughes
f8c75c6e22 [ios] fix user annotation view refresh when switched from course to none 2015-10-29 16:50:33 -04:00
Justin R. Miller
58c90ac099 bump SMCalloutView by one change to grab accessbility support 2015-10-29 12:23:13 -07:00
Thiago Marcos P. Santos
978da4224e [core] Set names to threads on Linux
Makes debugging/profiling easier.
2015-10-29 11:54:43 +02:00
John Firebaugh
014b517820 [node] Output debug logs when a render test times out 2015-10-28 15:54:34 -07:00
Leith Bade
6bb709ef42 [android] Update test app icon
Fixes #2838
2015-10-28 22:36:35 +11:00
Justin R. Miller
48d6d039ed remove heading tests as unreliable 2015-10-27 10:43:20 -07:00
Justin R. Miller
2d8e29294c remove dead, broken code 2015-10-27 10:40:52 -07:00
Leith Bade
43dde0f204 [android] Fix crash on Marshmallow
Fixes #2813
2015-10-28 00:40:27 +11:00
Konstantin Käfer
32c0fb468f [http] don't retry when there's already a request in progress 2015-10-27 12:11:16 +01:00
Tobrun
f3ffb45cf6 [android] #2809 - addPolylines and removeAnnotations in JNI, added feature activity + sanity test case 2015-10-27 11:16:55 +01:00
Leith Bade
fd33dfcd73 [android] Restore old GL context after createSurface
Fixes #2807
2015-10-27 15:27:08 +11:00
Ansis Brammanis
750c72f324 improve gestures in perspective view
The location under your finger stays under your finger as you pan.
The location you double tap to zoom stays at the same point.
The location at the center of a pinch zoom stays at the center.
The location at the center of a rotation stays at the center.
2015-10-26 12:48:03 -07:00
Thiago Marcos P. Santos
c65f809651 [core] Move parseCacheControl() up in the class hierarchy
Avoid duplicating it on all the ports.
2015-10-26 18:37:51 +02:00
Konstantin Käfer
75dec6ffac [core] always reparse with the freshest possible placement config
Fixes an issue where updates to stale tiles would remove labels altogether until the map was rotated.
2015-10-26 16:44:55 +01:00
Konstantin Käfer
5173bf1bb8 [core] Make response data shared to avoid excessive copying 2015-10-26 15:54:27 +01:00
Konstantin Käfer
94a5ac857f [core] all requests have to be canceled explicitly now
By not automatically destroying Request objects after the result has been delivered, we are making sure that we can potentially fire the callback multiple times without adverse effects. This means that you have to hold on to the result of fs->request(), can explicitly cancel it if you don't want to be notified of data changes anymore. Not doing so will monitor the request indefinitely and will prevent the app from exiting.
2015-10-26 15:54:27 +01:00
Leith Bade
39911e581c [android] Move android files
Fixes #2032
2015-10-25 01:07:16 +11:00
Justin R. Miller
847cee0c89 re-bump for ios-v3.0.0-pre.2 2015-10-23 16:33:37 -07:00
Justin R. Miller
cf46b2f770 bump iOS version for 2.2.0-pre.2 2015-10-23 16:08:34 -07:00
Bruno de Oliveira Abinader
b8c94e76c2 Fixed typo in default styles 2015-10-23 15:09:08 -07:00
Justin R. Miller
144a4714f0 refs #2684: integrate Twitter Fabric 2015-10-23 14:13:56 -07:00
Minh Nguyễn
1e9cf71b5a IB inspectable for allowing tilt 2015-10-23 10:09:27 -07:00
Leith Bade
28113d92e7 [android] Use new GPS markers.
Add missing dpi for mapbox logo and compass.
Fixes #2732
Fixes #2690
2015-10-24 03:28:16 +11:00
Adam Hunter
45a8aa6a8f [ios] Fix for a crash on iPod Touch related to carrier vendor
Reverts #2691, which only fixed simulator crashing.

Refs #2687
2015-10-23 12:07:55 -04:00
Leith Bade
54762825b0 [android] Fix JNI local ref overflow
Change test to 1000 markers
For #2726
2015-10-23 16:40:44 +11:00
Leith Bade
f71d61fa91 [android] Add missing satellite streets style to Android and iOS.
As well as default_styles.cpp
Fixes #2739
Fixes #2740
2015-10-23 14:09:24 +11:00
Minh Nguyễn
4f509288b7 [iOS] Removed long-unavailable APIs 2015-10-22 14:27:58 -07:00
Minh Nguyễn
e3934df8d4 [iOS] Replaced styleID property with styleURL__ inspectable
The new styleURL__ inspectable property is carefully named to masquerade as a URL property in Interface Builder, even though IB supports no such thing.

If the user enters an invalid URL into the “Style URL” inspectable, throw an error instead of silently setting the style to the default. This check is not required in -setStyleURL:, which takes a real NSURL.
2015-10-22 14:27:39 -07:00
Jason Wray
0f866d9db6 [ios] minor telemetry improvements
- Use integer precision on zoom, location accuracy, and altitude keys
- Bump telemetry user agent version to 1.1
- Only send cellular events when dataful
2015-10-22 17:03:46 -04:00
John Firebaugh
3afc8b4a29 [core] Introduce StyleLayer subclasses 2015-10-22 09:34:40 -07:00
John Firebaugh
df89de5cc5 [core] Rationalize style property classes: <type>{Paint,Layout}Properties 2015-10-22 09:21:30 -07:00
Jason Wray
17121563ac [ios] fix simulator crash on optional CoreTelephony code
Fix #2687
2015-10-21 18:47:00 -04:00
Minh Nguyễn
a4d8b373f3 [ios] Notify delegate during rotate and pitch gestures 2015-10-21 12:39:28 -07:00
Minh Nguyễn
a30add62f9 Merge remote-tracking branch 'Hitta/fixed-notification' into 1ec5-changing-2373 2015-10-21 12:28:36 -07:00
Leith Bade
717cbd32ad Update metrics test server SSL certificate 2015-10-21 10:04:11 -07:00
John Firebaugh
c5b95032a5 [core] Annotation refactor 2015-10-20 13:54:19 -07:00
Jason Wray
28be82c1c1 [ios] remove CoreTelephony dependency
Cellular carrier name and connectivity level will now only be sent if
the developer independently chooses to link the CoreTelephony framework
in their app.
2015-10-19 13:52:28 -04:00
bsudekum
a20113daf1 [node] update changelog 2015-10-14 14:37:51 -07:00
Mike Morris
62595a9b39 [core] bump libuv to 1.7.5 across all platforms
UV_ASYNC_PARAMS and UV_TIMER_PARAMS for libuv <= 0.10 compatibility

use st_mtim.tv_sec in libuv > 0.10.x
2015-10-14 11:36:28 -04:00
Minh Nguyễn
59799947c7 Break lines on com­mon­ly un­spaced punc­tu­a­tion
Par­ti­cu­lar­ly hy­phens and soft hy­phens.

Fixes #2595.
2015-10-13 09:54:36 -07:00
Justin R. Miller
24aa375cd1 [ios] tweaks to match code style for 1a5c452 callout tap handler 2015-10-12 11:02:04 -07:00
Maciej Swic
1a5c452fe3 Forwards the SMCalloutView tap delegate 2015-10-12 10:54:53 -07:00
Jason Wray
6fb9c439bd [iOS] Remove wifi SSID from metrics
Wifi SSID was never stored and was only used for additional verification
of wifi networkedness. Instead, we now do this on device and don't need
the SSID name.

IDFA was previously included in metrics events if the AdSupport framework was
linked.
2015-10-08 09:14:41 -07:00
John Firebaugh
3bbb87c6d7 Update test-suite 2015-10-07 14:05:59 -07:00