Konstantin Käfer
4a3c4edb59
[android] add support for gnustl
2018-09-11 11:43:54 +02:00
Bruno de Oliveira Abinader
83bd4c2135
[core] Replace remaining dynamic_cast with static_cast
2018-08-08 14:14:34 +03:00
John Firebaugh
2bbc792060
[core] Check all bucket dynamic_casts
...
A mismatch can occur when a layer changes from one type to another.
2018-07-24 11:08:40 -07:00
Bobby Sudekum
4286d5869c
Add pitch argument to cameraThatFits functions ( #12213 )
2018-07-02 16:30:18 -07:00
Bruno de Oliveira Abinader
48744d51d8
[test] Update Map.PrefetchTiles
2018-02-28 11:54:37 +02:00
Konstantin Käfer
5de373fff0
[core] continue loading style even if we mutate it
...
When we load a stale style from cache, and the user immediately starts mutating it, we should continue loading the style so that we'll get a fresh copy of the data into our cache and avoid perpetually showing the stale style.
2018-02-23 11:29:15 +01:00
Ansis Brammanis
22c07596a0
[core] Split MapMode::Still into Static and Tile
...
`Tile` makes sure the symbols in the resulting tile are tileable while
symbols in `Still` match rendering in `Continuous` mode.
2017-11-17 10:05:15 -08:00
Asheem Mamoowala
2366487275
[core] Add cameraForLatLngs() method with modified bearing
2017-10-09 11:42:37 -07:00
Konstantin Käfer
ca4f0bbcc5
[test] add test for rendering a 204 No Content tile
2017-09-22 19:24:42 +02:00
Bruno de Oliveira Abinader
bd4441503f
[test] Added Map.SetStyleDefaultCamera test
2017-08-11 22:04:52 +03:00
John Firebaugh
32bd1d54fa
[node, tests] Consolidate headless rendering logic in HeadlessFrontend
2017-07-26 09:50:38 -07:00
Ivo van Dongen
a5a0558bde
[test] allow only a single shared display to avoid egl errors
2017-07-18 10:45:12 +02:00
Ivo van Dongen
46c43510d7
[core] rename backend to renderer backend
2017-07-18 10:45:12 +02:00
Ivo van Dongen
3832f8d0d8
[core] renderer interface
2017-07-18 10:45:12 +02:00
Ivo van Dongen
57351c068b
[core] split backend from mapobserver
2017-07-18 10:45:12 +02:00
Thiago Marcos P. Santos
69c8f602de
[tests] Add unit test for tile prefetching
2017-07-07 14:28:52 +03:00
Bruno de Oliveira Abinader
1df45a5e42
[core] Check if frameZoom is NaN in Transform::flyTo callback
2017-06-28 20:59:56 +03:00
Bruno de Oliveira Abinader
433e54e636
[core] Clamp to scale boundaries in TransformState::setLatLngZoom
2017-06-28 20:59:56 +03:00
Ivo van Dongen
24a00231f3
[core] fix render doesn’t flag style mutation
2017-06-26 16:19:06 -07:00
John Firebaugh
40e4755621
[core] Move setStyleJSON/URL to Style; add Map::setStyle
2017-06-22 08:04:39 -07:00
John Firebaugh
1520a56813
[all] Promote Style to public API
2017-06-22 08:04:39 -07:00
John Firebaugh
e4201e207c
[tests] Add tests for MapObserver::on{WillStart,DidFinish}LoadingMap
2017-06-22 08:04:39 -07:00
Bruno de Oliveira Abinader
99cfbacdfb
[core] Make TransformState LatLngBounds optional
2017-06-01 17:04:09 +03:00
John Firebaugh
cc1ea759a6
[core, node, darwin, android, qt] Make image ID part of Image
...
More like Source and Layer.
2017-05-16 12:26:35 -07:00
John Firebaugh
9eba2a66d1
[core, node, darwin, qt] Remove support for paint classes
2017-05-15 09:45:55 -07:00
Ivo van Dongen
cc9f040a2d
[core] Split style image collection from SpriteAtlas
2017-05-12 13:19:00 -07: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