Commit Graph

9312 Commits

Author SHA1 Message Date
Ivo van Dongen
36dea5ea0d [android] return source ownership on remove 2016-11-14 14:05:18 +01:00
Ivo van Dongen
8d53f9f091 [android] return layer ownership on remove 2016-11-14 14:05:18 +01:00
Tobrun
f66ea0bef9 [android] - getMarkerViews in rect should return in bound views (#7015)
* [android] - getMarkerViews in rectangle should only return in bound views.

* added example in test app for debugging

* Covert rectangle coming in to density dependant rectangle
2016-11-14 12:08:03 +01:00
Tobrun
fa6d586417 [android] - allow using rotate gesture when not tracking user location, correctly update bearing during rotation gesture (#6978) 2016-11-14 10:37:34 +01:00
Konstantin Käfer
a7fa97e8a3 [core] don't run symbol placement more often than necessary 2016-11-14 10:35:15 +01:00
Konstantin Käfer
35a66eb2bd [core] don't show OpenGL debug information on startup 2016-11-14 10:25:48 +01:00
Jesse Bounds
edf40bb6d9 [core] Return source and layer ownership (#7014)
When a source or layer is removed transfer ownership back to the
caller so it can (optionally) take it. Preserve the behavior that 
removing a CustomLayer triggers deinitialization.  Deinitialize all 
custom layers when a style is destroyed in case those layers are not 
explicitly removed.
2016-11-11 14:40:04 -08:00
Ivo van Dongen
39b0bc0a40 [core] symbol layer - recalculate style on icon/text size changes 2016-11-11 20:18:16 +01:00
Chris Loer
517db640ab [core] Bump standard library to libstdc++5-dev and clang version to 3.8. (#6991)
[core] Bump standard library to libstdc++5-dev and clang version to 3.8.
2016-11-11 10:44:52 -08:00
Tobrun
914c7a7575 [android] - update make clean for Android Wear module (#7018) 2016-11-11 18:45:43 +01:00
Tobrun
720a0256f5 Default Style Camera on Android (#7019)
* [core] - do not set camera mutated to true when calling Map::getLatLng

* [android] - correctly check if a Map is created without a camera position
2016-11-11 18:13:25 +01:00
Ivo van Dongen
1beb28e75b [android] updated test activities for refactored layer/source ownership 2016-11-11 13:46:10 +01:00
Ivo van Dongen
185983f2f7 [android] source/layer java doc 2016-11-11 13:46:10 +01:00
Ivo van Dongen
822b83ae4e [android] fix source ownership 2016-11-11 13:46:10 +01:00
Ivo van Dongen
3a4a27c95f [android] fix layer ownership 2016-11-11 13:46:10 +01:00
Mike Morris
7d2f18b5ed node-v3.4.1 2016-11-10 14:16:31 -05:00
Tobrun
fcbb7c1860 [android] - check for default values when constructing a camera position from a CameraUpdate (#7002) 2016-11-10 19:10:07 +01:00
Konstantin Käfer
108a28faa8 [android] update viewport size when framebuffer size changed 2016-11-10 17:04:18 +01:00
Jesse Bounds
d0e8ed4bc3 Merge branch 'release-ios-v3.3.6' into merge-release-ios-v3.3.6 2016-11-09 20:36:11 -08:00
John Firebaugh
da725d7bf9 [node] Initial camera will be set automatically by style 2016-11-09 17:54:45 -08:00
John Firebaugh
a5e712d28b [node] Don't needlessly reset map state 2016-11-09 17:54:45 -08:00
John Firebaugh
31047b6cb5 [core] Default camera position to that specified by the style 2016-11-09 17:27:35 -08:00
Jesse Bounds
157ba2651f ios-v3.3.6 2016-11-09 13:56:25 -08:00
Jesse Bounds
8a84f3b279 [core] Back port changes for correct GL context in Map::onLowMemory()
This ports changes in
https://github.com/mapbox/mapbox-gl-native/pull/6972 to this version
of the map.
2016-11-09 10:43:25 -08:00
John Firebaugh
7ea0457e89 [core] Ensure correct GL context in Map::onLowMemory() 2016-11-09 09:57:20 -08:00
Jesse Bounds
8bf63ddb9c Revert "[core] Band-aid for crash triggered by unbound element buffer (#6844)"
This reverts commit 057b7b75ce.
2016-11-09 09:54:13 -08:00
Konstantin Käfer
16def03117 [core] add continuous rendering test that terminates once it settles down
This is to test that continuous mode stops rerendering once no further changes are needed, i.e. to test the absence of "busy rendering".
2016-11-09 17:55:59 +01:00
Konstantin Käfer
1afd993184 [core] don't initialize with Duration::min() to avoid arithmetic overflows
In FrameHistory::needsAnimation, we are computing "time - previousTime", but since previousTime was
initialized to Duration::min(), we got a integer overflow, which produced invalid values.
2016-11-09 17:55:59 +01:00
Ivo van Dongen
a9249b331a [android] test activity for runtime changes to symbols 2016-11-09 15:25:17 +01:00
Tobrun
33aa14c939 [android] - instrumentation tests upgrade, move view checking to utility class, remove inheritance in runtime style test (#6803)
update gitignore for generated tests

add camera move test

add realtime geojson to be excluded when generating Activity sanity tests

by default show workaround for showing a MapView in a dialog

add annotation tests

remove older camera tests, introduce tests for move, ease and animate, bring back setLatLng and getLatLng on MapView, add tests for internal camera API.

compass view tests

add tests for attribution and logo.

fix annotation tests

Rename Actiivity test class, split up annotation tests, added MarkerView tests, added infowindow tests, added MyLocationView tests

fix addRemoveLayer test by integrating map interactions inside a ViewAction
2016-11-09 12:56:49 +01:00
Konstantin Käfer
2411ec83b1 [build] don't rewrite style code for every build
revert of 93166aef48

On Android, we always rewrote the style code files, which lead to gratuitous recompiles
2016-11-09 11:10:22 +01:00
Tobrun
4030e86c33 [android] - fix inconsistency of float usage in CameraPosition and CameraUpdateFactory (#6941) 2016-11-09 10:51:40 +01:00
Tobrun
772324e8f2 Cherry pick release v4.2.0 (#6944)
* [android] - MyLocationView should facing above when location and compass bearing tracking are enabled. (#6829)

* [android] - use current animated rotation value for calculating animated marker rotation difference (#6826)

fix unit tests, input limiting is not handled by animateRotationBy instead of MarkerView.
Changed test to validate if method was called with correct value.

* [android] - only calculated offset margins for InfoWindow if View is found in current viewport, added example to the test app to test for regressions (#6877)

* upgraded okhttp dependency to latest version (#6880)

* Cancelable callback invocation (#6891)

* [android] - allow onCancel to be invoked from camera cancel callbacks

* set to null after finish

* [android]  - using bearing clockwise versus counterclockwise (#6917)

* [android]  - using bearing clockwise versus counterclockwise

* fixup brackets

* [android] - convert bearing values from core to Android SDK equivalent.
2016-11-09 10:42:18 +01:00
Vladimir Agafonkin
efc427f9bb update to mapbox-gl-shaders with vertex/fragment preludes (#6971) 2016-11-08 15:01:53 -08:00
Tobrun
2b81dee8d3 [android] - update make targets (#6958) 2016-11-08 18:38:29 +01:00
Konstantin Käfer
bcdbbbcac2 [core] don't assign clip IDs to tiles that aren't rendered 2016-11-08 18:09:58 +01:00
John Firebaugh
3b38cf48b7 [core] Require point size / line width for DrawMode constructors 2016-11-08 08:09:29 -08:00
John Firebaugh
52be5d480d [core] Put ignore in util namespace 2016-11-08 08:09:29 -08:00
John Firebaugh
d1e2fe511e [core] Introduce and use IndexedTuple 2016-11-08 08:09:29 -08:00
John Firebaugh
1db2ffbc1b [core] Use gl::Program to resolve some rough edges in the GL binding types
* Extract `ignore` util to separate header.
* `Segment` now tracks offset and length of indices, rather than primitives. This is more natural.
* Introduce `VertexVector` and `IndexVector` types. These types carry information about the intended draw mode (`Triangles`, `LineStrip`, etc.), and ensure that elements are always appended in a group size appropriate for that draw mode, for both indexed and unindexed rendering.
* `Program`, rather than `Drawable`, is now the unifying object for draw calls. `Program` is the best place to type check the draw call, because it is typed to carry information about the intended primitive, vertex type, attributes, and uniforms.
* Use the debug shaders for debug tile rendering, like gl-js.
* Fix the draw mode for background. It was drawing triangle strips with a triangles array. Surprised this didn’t cause issues. Now it’s type checked.
2016-11-08 08:09:29 -08:00
John Firebaugh
66bdbc3b96 [core] Introduce gl::Program template 2016-11-08 08:09:29 -08:00
John Firebaugh
36210fe4e9 [core] Make attribute binding more similar to uniform binding 2016-11-08 08:09:28 -08:00
Bruno de Oliveira Abinader
687ee1e1c9 [build] Remove unused gl/implementation.hpp 2016-11-08 18:02:38 +02:00
Bruno de Oliveira Abinader
8e99ae44dd [build] Use mesa-13.0.0-glx in CI builds 2016-11-08 18:02:38 +02:00
Bruno de Oliveira Abinader
d0ac12309b [core] Refactor HeadlessBackend 2016-11-08 18:02:38 +02:00
Bruno de Oliveira Abinader
297c303e88 [core] Refactor HeadlessDisplay 2016-11-08 18:02:38 +02:00
Fredrik Karlsson
5a828cb80f [ios, macos] override style spec documentation 2016-11-08 13:47:09 +01:00
Fredrik Karlsson
3002023a6c [ios] specify plist-file for settings bundle 2016-11-08 10:12:29 +01:00
Cameron Mace
6b85d4c2f9 added attribution tint color check (#6950) 2016-11-07 18:23:18 -05:00
John Firebaugh
2e76fca473 [tests] Update test-suite 2016-11-07 10:43:06 -08:00