John Firebaugh
f2772309fe
Rewrite CustomSpriteImages test
...
Previous test was invalid; Map::setSprite is only for annotations.
2015-11-18 16:29:18 -08:00
John Firebaugh
db1c4f2cc2
[core] Avoid calling AnnotationManager::updateStyle until the style is loaded
...
Fixes #3037
2015-11-18 16:05:13 -08:00
Minh Nguyễn
fcec19b835
Ensure proper will/is/didChange for resetNorth
2015-11-18 11:27:17 -08:00
Jason Wray
f0022e6e6f
[ios] update changelog for willStart/didFinishLoading
2015-11-18 10:25:31 -08:00
Jason Wray
9cbccb662e
[ios] document willStart/didFinish map loading delegate methods
...
Fixes #2706
2015-11-18 10:23:54 -08:00
Bruno de Oliveira Abinader
adfac6f061
[core] Added ConstrainMode::{HeightOnly,WidthAndHeight}
...
ConstrainMode gives flexibility to our engine to choose between
constraining both vertically and horizontally, or just vertically
(default behavior).
Constrain in both axis means we can no longer pan the map beyond the map
boundaries. This fixes an issue where e.g. annotations disappear upon
crossing the map boundaries.
2015-11-18 09:37:27 +02:00
Bruno de Oliveira Abinader
cb9b397985
[core] Fix LatLngBounds default coordinates
...
LatLngBounds southwest and northeast coordinate points were inverted, so
they could be extended via LatLngBounds::extend(). However, this looks
confusing and error-prone.
A static LatLngBounds::getExtendable() is added to address cases when we
want to extend LatLngBounds.
2015-11-18 09:37:27 +02:00
Bruno de Oliveira Abinader
711d41f91b
[core] Avoid extra copy of TransformState in Painter::render
...
In MapContext thread, TransformState gets updated from main thread to
MapContext and Painter can safely reference MapContext's TransformState
instead of copying it upon each Painter::render call.
2015-11-18 09:37:27 +02:00
Justin R. Miller
31354186a6
more clearly indicate Foundation imports to avoid recursion
2015-11-17 17:10:09 -08:00
Justin R. Miller
b07d4c8ff6
clarify how to run individual tests
...
[skip ci]
2015-11-17 15:21:33 -08:00
Justin R. Miller
0a8d9a3b6d
add IB additions to umbrella header to avoid framework warnings
2015-11-17 14:44:15 -08:00
Justin R. Miller
ac10cc1ecd
fixes #3054 : move desktop test app keybindings output to startup log
2015-11-17 12:00:51 -08:00
Konstantin Käfer
85ab48636c
[core] allow changing pitch in GLFW based apps
2015-11-17 19:02:12 +01:00
Justin R. Miller
728847329c
refs #3045 : implicitly link dependencies for framework
...
[skip ci]
2015-11-16 16:26:30 -08:00
Justin R. Miller
ac2a9b0254
refs #3045 : correct bundle identifier for iOS framework target
...
[skip ci]
2015-11-16 16:10:38 -08:00
Justin R. Miller
445145406f
bump version to ios-v3.0.0-pre.7
2015-11-16 16:10:32 -08:00
Justin R. Miller
ed8d183fec
refs #3045 : fix up target
...
[skip ci]
2015-11-16 16:10:26 -08:00
Leith Bade
af2d034e9d
[android] Bring back OkHTTP
...
Update http_request_android.cpp for changes in #2727
Fix crash caused by calling both onFailure and onReponse in the same request
Fixes #2856
Fixes #2400
2015-11-17 10:12:58 +11:00
John Firebaugh
43c6e2fb52
[node] Need to have a singleton RunLoop instance
2015-11-16 12:25:48 -08:00
John Firebaugh
7137239cbd
[core] Use std::unique_ptr for FileSource request
2015-11-16 12:25:47 -08:00
John Firebaugh
1caf89c32b
[core] Pass a value to response callback, not a reference
2015-11-16 12:25:47 -08:00
Thiago Marcos P. Santos
36581f3d30
[core] Do not pass uv_loop_t around
...
This should be abstracted by util::RunLoop
2015-11-16 12:25:47 -08:00
John Firebaugh
2eb0203bf4
[core] Cancelled flag needs to be atomic; it is read from multiple threads
2015-11-16 12:25:46 -08:00
John Firebaugh
6f881977eb
[core] Fix a subtle and currently unexposed bug in RunLoop::invokeWithCallback
...
The doubly nested lambda that's responsible for executing the callback
needs to check the cancellation flag on *both* threads. See comment for
details.
2015-11-16 12:25:46 -08:00
Thiago Marcos P. Santos
d9f10fbfa7
[core] Use std::mutex on RunLoop
...
Only the WorkTask mutex needs to be recusive because
the WorkQueue will run a WorkTask that will pop
itself from the WorkQueue causing it to get cancelled.
2015-11-16 22:16:08 +02:00
Justin R. Miller
42a60a6661
static framework target for iOS
2015-11-16 11:53:00 -08:00
Justin R. Miller
212e7a1e08
provide resource bundle search for premade frameworks
2015-11-16 11:40:54 -08:00
Jeff Miccolis
c35f18fdbc
Add creds for bitrise. Fixes #3028
2015-11-13 19:00:42 -06:00
Adam Hunter
1ced39cbd1
Merge pull request #2991 from mapbox/2931-adams-playground
...
Manual Zoom Test Activity - will turn into an automated test at some point in the future
2015-11-13 16:57:24 -08:00
Brad Leege
5747bee1b8
[android] #2931 - Adding Zoom button to UI
2015-11-13 16:52:58 -08:00
Brad Leege
803d8bbd4e
[android] #2931 - Making Manual Zoom Navigation Drawer Item Open Manual Zoom Activity
2015-11-13 16:52:58 -08:00
Brad Leege
69a2b06e21
[android] #2931 - Creating basic Activity for Manual Zoom
2015-11-13 16:52:58 -08:00
Brad Leege
1c9d85e0de
[android] #2931 - Adding Manual Zoom As Drawer Option
2015-11-13 16:52:58 -08:00
Brad Leege
a6e639b794
[android] #3029 - Adding removeMarker() convenience method
2015-11-13 17:49:08 -06:00
Justin R. Miller
e2e5b380fb
also look in commit bodies for CI skipping commands
...
[skip ci] (see what I did there?)
2015-11-13 15:21:54 -08:00
Justin R. Miller
8e6b9a0d96
bump iOS version to 3.0.0-pre.6
...
[skip ci]
2015-11-13 14:39:18 -08:00
Justin R. Miller
3293f32fef
re-add OS X desktop usage hotkeys (refs #2800 @tmcw)
...
[skip ci]
2015-11-13 12:14:58 -08:00
Tobrun
f4de4a799c
[android] #3023 - reactive token generation
...
[android] #3023 - update documentation to reflect change
2015-11-13 11:21:41 +01:00
Tobrun
bcd5db4a46
[android] #3019 - optimise visible coordinatebounds
2015-11-13 10:43:42 +01:00
Tobrun
0ef7b42ae3
[android] #3001 add config changes example to test app
2015-11-13 10:39:22 +01:00
Tobrun
569399c1ae
[android] #2989 - moved access token to test app
...
[android] #2989 - gitignoring config.xml
[android] #2989 - move token file, rename
[android] #2989 fixing gitignore, renaming config file
2015-11-13 08:52:32 +01:00
John Firebaugh
f9ebe54a63
[core] Merge Sprite into SpriteStore
2015-11-12 13:03:14 -08:00
John Firebaugh
1e350b7ea4
[core] Reorganize sprite related files
2015-11-12 13:03:14 -08:00
Minh Nguyễn
0dc1519a18
Set refresh interval to 60fps
...
Fixes #3005 .
2015-11-12 12:00:47 -08:00
Brad Leege
5afcf77124
[android] Fixing Android API Target
2015-11-12 13:38:32 -06:00
Minh Nguyễn
48d1c4025d
[iOS] Removed unnecessary casts
...
Also renamed secondsAsDuration() to durationInSeconds(): function names should generally put the return type first, the argument type last, to avoid confusion.
2015-11-12 10:46:50 -08:00
Bruno de Oliveira Abinader
fc2fa73363
[core] Cleanup Transform::rotateBy
...
Make use of PrecisionPoint's operator functionalities inherited from
vec2<> and reduced overhead eg. offset_y is always 0 so no need to add
this to calculation inside the if.
2015-11-12 10:46:50 -08:00
Bruno de Oliveira Abinader
8b76f00d8c
[core] PrecisionPoint is now a vec2<double>
...
We could reuse all the operators defined in vec2<>, including operator
bool() that checks if the contained values are !NaN.
2015-11-12 10:46:50 -08:00
Minh Nguyễn
6748b6155e
[core] Fixed bit-shifting error in exponential backoff
...
This change fixes a bug introduced in 4d5c6333be for #2727 . 1 << 32 would exceed the size of int64_t. The static analyzer reported undefined behavior here because std::min() might or might not return 32.
2015-11-12 10:46:47 -08:00
Minh Nguyễn
aae7f90e37
[core] Fixed Transform::_setScale()
...
Corrected Transform::_setScale() after the refactoring in 5a24ac605b for #2994 . This change also addresses two dead store warnings from the static analyzer.
2015-11-12 10:46:43 -08:00