Commit Graph

5902 Commits

Author SHA1 Message Date
Tobrun
e7c4ee49b1 [android] #3115 - optimised + cleanup before PR 2015-11-25 18:55:49 +01:00
Antonio Zugaldia
4c9751c6e6 we just need to clear the list' 2015-11-25 09:39:03 -05:00
Tobrun
0cf326d668 [android] #3115 reposition info windows that have been repositioned while panning the map 2015-11-25 11:24:30 +00:00
Tobrun
936d1c01b2 [android] #3121 Allow InfoWindow to be open while panning, allow standard InfoWindow (without repositioning InfoWindowTipView) to be panned above the map 2015-11-25 10:33:15 +00:00
Antonio Zugaldia
aa018736b2 still some work needed on onSingleTapConfirmed() 2015-11-24 17:35:22 -05:00
Mike Morris
e87834f15d [node] update package.json deps 2015-11-24 14:09:57 -05:00
Minh Nguyễn
047107113f Updated guide URL 2015-11-23 19:17:20 -08:00
John Firebaugh
6ff3ef55f8 [core] Remove unused 2015-11-23 17:28:44 -08:00
John Firebaugh
36081f6486 [core] For binary image data use uint8_t, not char 2015-11-23 17:28:44 -08:00
Justin R. Miller
a620912176 change iOS Bitrise Slack room
[skip ci]
2015-11-23 16:39:20 -08:00
Justin R. Miller
c6edcf69b3 reduce framework binary size with more stripping 2015-11-23 12:49:33 -08:00
Mike Morris
76253eb1d1 node-v2.0.0-pre.16 2015-11-23 14:13:22 -05:00
John Firebaugh
c4c3a19d85 [node] Allow GC in spite of reference loops through the request method
The following produces a reference cycle:

var map = new mbgl.Map({
    request: function () { ... }
});

map has a reference to the request function, which has a reference to
its closure, which has a reference to map.

Storing a the map options in an internal field, rather than a Persistent,
allows V8 to collect the reference cycle when none of its members have
other references.
2015-11-20 16:33:46 -08:00
Minh Nguyễn
8a0bce7808 Discourage code usage of styleURL__ property
A hack atop the hack added in #2632. Pre-declare `styleURL__` with an attribute that prevents it from appearing in code completion suggestions, while leaving it available to Interface Builder, which is unable to parse attributes.
2015-11-20 11:31:46 -08:00
Minh Nguyễn
b3dbdb389f [iOS] Set application root as asset root
As of #2746, we no longer bundle any styles with the SDK, so the asset: URL scheme is unused. Instead, point asset: to the application root for developer convenience and consistency with the Android and default asset roots. Also fixed an issue that prevented relative URLs from being treated as asset: URLs.

Fixes #1208, fixes #3050.
2015-11-20 10:44:12 -08:00
Tobrun
566b108248 [android] - #2658 improve window background PopupWindowView 2015-11-20 15:32:24 +01:00
Konstantin Käfer
b5f7cafab4 [core] more robust max-age parsing 2015-11-20 14:39:44 +01:00
Minh Nguyễn
94e2d8a02c [iOS] Added missing documentation comment 2015-11-20 01:02:21 -08:00
John Firebaugh
d08861daf4 [core] Force style-sourced annotations to be visible 2015-11-19 19:50:29 -08:00
John Firebaugh
afa04de152 [core] Followup fix to #3037
The previous fix resulted in annotations sometimes never being added.
This would happen if, during the execution of MapContext::update where
Update::Annotations was set, the style itself was loaded but some of
its subresources (sprite or sources) were not.

#3082 is a follow up issue to make MapContext::update less error-prone.
2015-11-19 18:01:42 -08:00
Minh Nguyễn
dc5a55c670 Fixed Linux builds; code style 2015-11-19 12:35:28 -08:00
Minh Nguyễn
a983dc8259 Ported replaceTokens() tests from GL JS 2015-11-18 19:06:33 -08:00
Justin R. Miller
f2a28f095b refs #2380: plop Settings.bundle inside of framework distribution 2015-11-18 18:41:14 -08:00
Justin R. Miller
a0533d8244 refs #2922: update display link in all common modes (inc. scrolling) 2015-11-18 18:27:46 -08:00
John Firebaugh
46a6b03582 [node] Fix race condition in tests
The message callback races with the rest of this test. We already have
tests for errors being emitted from mbgl, so just remove it.
2015-11-18 16:53:11 -08:00
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