Bruno de Oliveira Abinader
0d171dbe0e
[core] Make TransformState LatLngBounds optional
2017-06-01 13:46:53 -04:00
John Firebaugh
5dd98df50b
[all] Rationalize style::Image
...
A style has a collection of images, just as it has collections of sources and layers.
* Name things appropriately
* Use std::unique_ptr
2017-04-24 15:52:28 -07:00
Konstantin Käfer
197f0ca6b4
[android] use AAssetManager instead of libzip
2017-04-24 10:42:10 +02:00
Bruno de Oliveira Abinader
09a2271576
[core] Ignore shortest path in Map::pixelForLatLng
2017-04-14 12:52:20 -07:00
Bruno de Oliveira Abinader
2f4d162deb
[core] Tighten geo.hpp ctors
2017-04-14 12:33:13 -07:00
John Firebaugh
f1c06f8d83
[all] Remove redundant scale-related camera methods
...
We don't need to have two different measurement systems for map zoom.
2017-04-13 10:28:44 -07:00
Bruno de Oliveira Abinader
c4fc89977b
[core] Added {set,get}{Min,Max}Pitch
2017-04-11 12:51:09 +03:00
Bruno de Oliveira Abinader
c1c6c1e298
[core] Added Map::{get,set}LatLngBounds
2017-04-11 12:51:09 +03:00
Bruno de Oliveira Abinader
e5aa4d70cd
[core] Updated Size::isEmpty and TransformState::valid checks
2017-04-10 18:01:28 +03:00
John Firebaugh
16a2839e23
[all] Make LatLng coordinates read-only
2017-04-06 09:22:51 -07:00
John Firebaugh
0314a46ee4
[core] Tighten LatLng and other geo.hpp classes
...
* Remove LatLng::null and enforce invariants
* Remove unnecessary operator bool()
2017-04-06 09:22:51 -07:00
Tobrun
83cef9eb68
[android] - update VectorSource javadoc ( #8521 )
...
* [android] - update VectorSource docs on VectorSource creation
* [tests] Test only CameraOptions center, zoom in CameraToLatLngBounds
2017-03-24 17:55:55 +01:00
Bruno de Oliveira Abinader
80915992ab
[core] Added Map::latLngBoundsForCamera
2017-03-24 13:51:35 +02:00
Konstantin Käfer
8e5214144e
[core] Ensure that a BackendScope exists when doing GL calls
2017-03-23 14:50:11 -07:00
Bruno de Oliveira Abinader
5ff4110243
[core] Pass std::exception_ptr in MapObserver::onDidFailLoadingMap
2017-03-17 11:25:48 +02:00
Bruno de Oliveira Abinader
fc70cbf1e1
[core] Replace MapChange enum with MapObserver
2017-03-15 14:53:32 +02:00
Konstantin Käfer
9ca9adf69c
[core] private OffscreenView implementation
2017-02-27 16:51:17 -08:00
John Firebaugh
5354572620
[core] Eliminate manual HeadlessBackend activation management
2017-02-20 12:04:21 -08:00
John Firebaugh
0bbc6b814c
[core] Restore support for GL implementations without VAO extension
2017-02-10 18:04:45 -06:00
Thiago Marcos P. Santos
318690645e
[test] Added unit test for style request failures
2017-02-07 12:17:40 +01:00
Konstantin Käfer
62ea1f2185
[core] remove trailing whitespace, add trailing newlines, add space after //
2017-01-27 11:44:16 +01:00
Ansis Brammanis
38b5cb0c77
[core, ios] replace altitude with fov
...
ported from -js: eb6c6596c6a7a61363d30356674e0002153b1d19
`altitude` was a terribly-named variable that was used to indirectly
control the fov. This should eliminate some confusion.
`altitude` was equivalent to `cameraToCenterDistance / height`
2016-12-21 15:46:36 -08:00
Minh Nguyễn
a6b1773a44
Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-master
...
Also reran make style-code and manually discarded anything related to fill extrusion layers.
2016-12-20 12:41:40 -08:00
Minh Nguyễn
9456bec172
[test] Fixed Map-GetImage
...
Followup to #7096 .
2016-12-05 18:48:00 -08:00
Roman Blum
1045934d5e
[core, ios, macos] Add image accessor to MGLStyle ( #7096 )
...
* [core] Add interface to get image from sprite atlas
* [tests] Add tests for Map::getImage
* [ios, macos] WIP: get MGLImage for name from style
* [ios, macos] Fixed -imageForName:
Convert from sprite images to platform images using the existing encodePNG() function, which is also used for printing. Allow -imageForName: to return nil without an assertion failure. Added a basic test.
2016-12-05 17:16:13 -08:00
Ivo van Dongen
c810d16f0d
[android][build] core tests - initial setup for rendering tests
2016-11-27 18:50:24 +02:00
Konstantin Käfer
117863f111
[build] move headless rendering files to platform/default
2016-11-22 20:58:51 +01:00
Konstantin Käfer
3bc79e316e
[build] move default ThreadPool implementation to platform/default
2016-11-22 20:58:51 +01:00
Bruno de Oliveira Abinader
50f0f919c3
[test] Use shared headless display
...
Prevents some OpenGL implementations from bailing out.
2016-11-17 01:01:15 +01:00
John Firebaugh
d9862fa38c
[tests] Disable "ContinuousRendering" test; causing spurious CI failures
2016-11-15 13:55:16 -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
Bruno de Oliveira Abinader
7b3e24d74a
[core] Cleanup TransformState::getIntegerZoom
2016-10-31 16:53:07 +02:00
Konstantin Käfer
62b56b799a
[core] change std::array<uint16_t, 2> to mbgl::Size
2016-10-27 18:30:58 -07:00
Konstantin Käfer
91272992f3
[core] don't load tiles from sources that aren't used
2016-10-27 16:15:36 -07:00
Konstantin Käfer
a4d259c33f
[core] move gl::Context to Backend and refactor View
2016-10-25 13:52:36 -07:00
Konstantin Käfer
5cc390d694
[core] separate Backend from View for headless rendering
2016-10-25 13:52:36 -07:00
Mike Morris
817c26111a
[core] [node] pass thread pool impl to Map constructor
...
Updates mbgl::Map constructor usage everywhere
Adds NodeThreadPool implementation using AsyncQueue to call
Nan::AsyncQueueWorker from main thread
2016-10-20 14:37:36 -04:00
Bruno de Oliveira Abinader
3b8b68d028
[core] Fix Map::setLatLng behavior
...
We were erroneously assigning a value to optional<ScreenCoordinate>
(null island), causing it to be a valid anchor for Transform::easeTo.
2016-10-07 17:23:17 +03:00
Konstantin Käfer
3f3fc7b772
[test] add .test.cpp suffix to test case files
2016-09-28 16:34:22 +02:00
Thiago Marcos P. Santos
4d3356dc1e
[tests] Add tests for Map::[add|remove]Image
2016-09-22 17:43:28 +03:00
Konstantin Käfer
1e8f9c75ca
[core] do not render layers that are outside their zoom range
...
So far, we didn't properly disable layers that are outside the zoom range. This means that we rendered layers that should not have been rendered, albeit we didn't make any attempt to load tiles for those layers. However, when zooming in/out, existing tiles might already have been loaded in the source which continued to be rendered. In most cases they weren't actually visible because either the matrices weren't updated, or the clip IDs weren't set so that they would be "rendered" off-screen and clipped completely. In any case, we did way too much work.
2016-09-20 14:10:38 +02:00
Ivo van Dongen
f3b38df91d
[core] add MapChangeDidFinishLoadingStyle signal ( #6371 )
2016-09-20 09:55:53 +02:00
Bruno de Oliveira Abinader
22fc8cdc1a
[test] Added Map class accessors tests
2016-09-13 12:38:59 +03:00
Thiago Marcos P. Santos
1d7a5b0fe0
[tests] Add unit test for style loading failures
2016-08-24 20:02:39 +03:00
Thiago Marcos P. Santos
c98f4f476b
[core] Emit MapChangeDidFailLoadingMap when the style cannot be loaded or parsed
...
Currently this signal is never emitted, which can cause the Still mode
to starve in case of an invalid style or failed request.
2016-08-24 20:02:31 +03:00
John Firebaugh
eb9fe89612
[tests] Test that style mutations due to annotations don't cancel style revalidation
2016-08-23 09:55:32 -07:00
John Firebaugh
86cccc4d24
[core] Don't allow style mutations to be overwritten by revalidation
...
* Once we get a fresh style, stop revalidating.
* If the style is mutated, stop revalidating and preserve the existing mutations.
2016-08-23 09:55:32 -07:00
John Firebaugh
6bbb2e4c2b
[tests] Merge single test in set_style.cpp with other Map tests
2016-08-23 09:55:32 -07:00
Konstantin Käfer
18176605f6
[core] support "scheme": "tms" in TileJSON files
2016-08-16 11:04:30 +02:00
Young Hahn
24b66bc8cd
Color class ( #5361 )
...
* Color class
* Switch to list initialization
2016-06-15 11:38:22 -04:00