Minh Nguyễn
d3275aa43c
[ios] Refined annotation selection
...
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.
2015-12-13 16:37:29 -08:00
Minh Nguyễn
a36054ee6b
[ios] Refactored MGLMapView annotations
...
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 .
2015-12-13 16:37:29 -08:00
John Firebaugh
0ff9295ca8
[core] Move linux and osx to platform subdirectory
2015-12-10 16:50:39 -08:00
Konstantin Käfer
93c000dd18
[core] viewport is handled by embedding applications
2015-12-10 14:16:11 -08:00
Adam Hunter
095a8be300
Implementation of flyTo.
2015-12-09 17:14:22 -08:00
John Firebaugh
896245e510
[test] Update test suite
2015-12-09 16:25:45 -08:00
Mike Morris
55d97c1ad1
[node] document EventEmitter interface [skip ci]
2015-12-08 14:36:38 -08:00
Mike Morris
515a4fffab
node-v2.1.0
2015-12-08 11:39:12 -08:00
Thiago Marcos P. Santos
0a97145d05
[core] Better C++ usage on RunLoop
...
Follow-up of #3179 .
2015-12-08 10:23:11 -08:00
Justin R. Miller
7beb051c26
Merge branch 'release-ios-v3.0.1'
2015-12-07 13:03:26 -08:00
Justin R. Miller
8fb141a3e4
bump build for ios-v3.0.1 (no symbols)
2015-12-07 12:21:22 -08:00
Justin R. Miller
860138dd38
record app fg/bg/inactive state in telemetry
2015-12-04 08:39:02 -08:00
Justin R. Miller
435cd9ea9e
fixes #3113 : bring in MGLMapView via +load for Interface Builder
2015-12-03 15:51:56 -08:00
Justin R. Miller
6b4e8bac6d
fixes #3113 : bring in MGLMapView via +load for Interface Builder
2015-12-03 15:43:53 -08:00
Brad Leege
02feddb816
[android] #2805 - Updating Tilt API to support animation duration time
2015-12-03 16:57:44 -06:00
Brad Leege
349f47ba92
[android] #2805 - Basic wiring up of Android Tilt methods to Core GL Pitch methods
2015-12-03 16:57:43 -06:00
Justin R. Miller
0184b5ba9f
bump iOS version to 3.0.1-pre.1
2015-12-03 11:15:42 -08:00
Jason Wray
f67ceec8c2
[ios] fix CoreTelephony crash (by removing it)
...
Fix #3112 , ref #2581
2015-12-03 11:13:28 -08:00
Justin R. Miller
e2921f7e7c
refs #3112 : cleanups around Core Telephony runtime
...
- don't do anything with CT in simulator
- more direct use of dynamic selectors for clarity
2015-12-03 11:12:15 -08:00
Konstantin Käfer
c279fb1717
[core] throw values, catch references
2015-12-03 15:38:36 +01:00
Konstantin Käfer
0c351eb523
[core] use default instead of empty function body
2015-12-03 15:38:36 +01:00
Konstantin Käfer
478472e501
[core] add std::move to constructors
2015-12-03 15:38:36 +01:00
Konstantin Käfer
d5fb535058
[core] add namespace comment to closing brace
2015-12-03 15:38:36 +01:00
Konstantin Käfer
dc620f48de
[core] Fix std::move() misuse that disables copy elision
2015-12-03 15:38:36 +01:00
Jason Wray
e5f136a16a
[ios] fix CoreTelephony crash (by removing it)
...
Fix #3112 , ref #2581
2015-12-02 20:00:59 -05:00
Justin R. Miller
43ca910f54
refs #3112 : cleanups around Core Telephony runtime
...
- don't do anything with CT in simulator
- more direct use of dynamic selectors for clarity
2015-12-02 13:33:37 -08:00
John Firebaugh
8afa14fa78
[core] Map::setSprite ⇢ Map::addAnnotationIcon
...
Fixes #3084
2015-12-01 15:10:28 -08:00
John Firebaugh
622f6691b7
[glfw] No longer necessary to wait for style load to add default marker
2015-12-01 09:15:05 -08:00
Thiago Marcos P. Santos
ed29223e5a
[core] Remove mbgl/util/uv.hpp
...
Now only a few things depend on libuv and they can use it directly.
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
ab6477d906
[core] Removed libuv dependency from AssetZipContext
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
c117b7e3f4
[core] Removed libuv dependency from AssetFSContext
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
07c0424ab9
[core] Removed libuv dependency from HTTPCurl*
...
Moved the fd watcher to the RunLoop. So far only needs to
be implemented by platforms using HTTPCurlRequest et al.
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
62990f0a21
[core] Port uv::tls to pthreads
2015-12-01 11:49:02 +02:00
John Firebaugh
1c63f98f6d
[core] Expose fewer RunLoop implementation details in header
2015-12-01 11:49:02 +02:00
John Firebaugh
f2553fff89
[core] Merge uv_detail.hpp into uv.hpp
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
ae3f1c79fa
[android] Removed libuv dependency from HTTPAndroid*
2015-12-01 11:49:02 +02:00
Bruno de Oliveira Abinader
0cc31e1dda
[osx] Removed libuv dependency from HTTPNSUrl*
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
9c0eedf836
[curl] Make curl request less dependent on libuv
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
d515f84caf
[core] Remove unused libuv includes
2015-12-01 11:49:01 +02:00
Thiago Marcos P. Santos
9b36c19aeb
[core] Introduce Timer abstraction
2015-12-01 00:00:09 +02:00
Thiago Marcos P. Santos
0d8ea6c0a2
[core] Removed dependency on uv_loop from the file source
2015-12-01 00:00:09 +02:00
Thiago Marcos P. Santos
d422c8cac4
[core] Abstract main loop inside RunLoop class
2015-12-01 00:00:09 +02:00
Thiago Marcos P. Santos
123c5df922
[core] Introduce the AsyncTask
2015-12-01 00:00:09 +02:00
John Firebaugh
12fc949006
[tests] Don't use icons from the style for annotations
2015-11-30 12:40:09 -08:00
Justin R. Miller
8d25d9ab1a
Merge branch 'release-ios-v3.0.0'
2015-11-30 11:10:27 -08:00
Bruno de Oliveira Abinader
92856f394c
[core] Collision debug is now MapDebugOptions::Collision
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
1f0820c8e8
[core] Added MapDebugOptions
...
Map debug options are now cycled up to all debug options enabled, then
back to none.
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
31fd2822f5
[core] Replace time_t with std::chrono::seconds
...
Added aliases for std::chrono typedefs (eg. 'Seconds' for
std::chrono::seconds). These aliases are used together with templated
helper functions to replace time_t with std::chrono::seconds for most
cases, in particular for 'modified' and 'expires' values in Response.
2015-11-27 17:47:02 +02:00
Thiago Marcos P. Santos
873eabcf28
[node] Fix build on GCC 4.9.2
2015-11-26 19:40:36 +02:00
John Firebaugh
1d33790dc0
[core] Fix image type of Map::renderStill
...
It's a premultiplied image. This implies that we were misusing encodePNG
in most cases, as we were passing premultiplied pixels which were then
interpreted as unmultiplied. I changed encodePNG to accept premultipled
pixels, and unpremultiply in the implementations.
2015-11-25 15:57:37 -08:00