Konstantin Käfer
08809b4d44
[macos,ios] initialize util::RunLoop in SDK rather than by default
2016-10-06 10:16:45 -07:00
John Firebaugh
7a3bef091e
[core] Refactor Buffer
2016-10-05 10:52:19 -07:00
John Firebaugh
31be5d3c3a
[core] Tiles that error on load are not renderable
2016-10-05 10:26:04 -07:00
Thiago Marcos P. Santos
82b801250e
[tests] Add unit tests for query features fiters
2016-10-05 11:12:16 +03:00
Konstantin Käfer
07315711d6
[core] remove Raster object in favor of a more low-level Texture object
2016-10-04 14:00:30 -07:00
Sam Matthews
280fd8c28e
[core] Preserve non-access_token query parameters in canonicalizeTileURL
2016-10-03 10:08:17 -07:00
Konstantin Käfer
b470a65582
[build] add back -Werror
2016-09-30 17:01:05 +02:00
Ivo van Dongen
1bf12e20a6
[core] LocalFileSource implementation and tests
2016-09-30 14:57:26 +02:00
Konstantin Käfer
15aece8a30
[core] introduces types for GL objects
2016-09-29 10:17:47 -07:00
Konstantin Käfer
d1a84d9b51
[core] rename VAO => VertexArray, FBO => Framebuffer
2016-09-29 10:17:47 -07:00
Konstantin Käfer
3f3fc7b772
[test] add .test.cpp suffix to test case files
2016-09-28 16:34:22 +02:00
Konstantin Käfer
44c7e9d05e
[core] merge gl::ObjectStore into gl::Context
2016-09-27 11:03:29 -07:00
Konstantin Käfer
ce42d22984
[core] rename gl::Config to gl::Context
2016-09-27 11:03:29 -07:00
Konstantin Käfer
21386b3146
[core] move GL value accessors to gl::value namespace
2016-09-27 11:03:29 -07:00
Konstantin Käfer
c88ce2d51e
[core] add ability to render to offscreen textures
2016-09-27 10:42:10 +02:00
Konstantin Käfer
0c3abb2129
[test] Show error message when expected file does not exist
2016-09-27 10:42:10 +02:00
John Firebaugh
570bafcfec
[core] Don't allow OfflineDownload to flood the request queue
2016-09-26 14:55:49 -07:00
Minh Nguyễn
f307652548
[core] Source-driven attribution
...
Implemented observer callbacks so the style knows when the source’s attribution changes and the map knows when the style’s attribution changes. Also implemented a getter for a tile source’s attribution.
Fixes #2723 .
2016-09-26 11:37:06 -07:00
Bruno de Oliveira Abinader
2ed81bbaae
[core] Trigger Update::RecalculateStyle when toggling layer visibility
2016-09-26 11:47:34 +02:00
Thiago Marcos P. Santos
4d3356dc1e
[tests] Add tests for Map::[add|remove]Image
2016-09-22 17:43:28 +03:00
Molly Lloyd
598f7c6ad5
[core] allow offline region metadata to be updated ( #6338 )
2016-09-20 17:43:00 +02: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
Thiago Marcos P. Santos
34e783ed9c
[tests] Remove memory fragmentation test ( #6226 )
...
It is not reliable.
2016-09-20 14:47:08 +03:00
Ivo van Dongen
f3b38df91d
[core] add MapChangeDidFinishLoadingStyle signal ( #6371 )
2016-09-20 09:55:53 +02:00
Lucas Wojciechowski
37cb2bd756
[core] Convert uses of std::set to std::unordered_set ( #6325 )
...
* src/mbgl/annotation/annotation_manager.hpp
* src/mbgl/algorithm/update_renderables.hpp
* src/mbgl/geometry/glyph_atlas.hpp
* src/mbgl/renderer/painter.cpp and src/mbgl/renderer/render_item.hpp
* src/mbgl/renderer/symbol_bucket.hpp and src/mbgl/text/glyph_store.hpp
* src/mbgl/sprite/sprite_atlas.hpp
* include/mbgl/storage/network_status.hpp
* src/mbgl/text/collision_tile.cpp
* src/mbgl/style/update_batch.hpp
* platform/default/mbgl/storage/offline_download.hpp
* Add GlyphRangeSet typedef
* Fix whitespace & unused imports
2016-09-19 17:26:25 -07:00
John Firebaugh
dc1861f6d5
[core] Merge GlyphStore and GlyphAtlas
2016-09-19 09:40:43 -07:00
John Firebaugh
940124ff71
[core] Merge SpriteStore and SpriteAtlas
2016-09-19 09:40:43 -07:00
Jake Pruitt
d169ea55c1
Keep query strings in source URLs ( #6182 )
...
Carries over any query strings from mapbox://-prefixed styles urls,
source urls and tile urls to the api.mapbox.com requests.
2016-09-16 14:11:16 -07:00
John Firebaugh
41bbd4e4f7
[core] Use an actor model for tile worker concurrency
2016-09-16 12:01:06 -07:00
clydebarrow
767aedc676
[core] Correct evaluation of interval functions
2016-09-16 10:58:42 -07:00
John Firebaugh
32fac7cbe4
[core] Use optional to represent possible absence, not empty strings
2016-09-16 09:00:55 -07:00
John Firebaugh
1f375581c3
[core] Move {clip,merge}_lines to layout directory
2016-09-16 09:00:54 -07:00
Tobrun
9ef65440b6
[core] [android] - public api configurable base endpoint ( #6309 )
...
add runloop to test
2016-09-15 22:01:09 -07:00
Konstantin Käfer
d1d523686c
[core] upgrade RapidJSON to 1.1.0
2016-09-15 14:05:23 +02:00
Konstantin Käfer
d6c958ba5f
[test] use recursive wrapper for recursive variant types
2016-09-15 13:42:10 +02:00
Brad Leege
d0f9ba4998
[core] #3980 - Switching Core GL instances of map to unordered_map
2016-09-14 16:40:20 -07:00
Jason Wray
9237ad3c58
[tests] Add v3 & v4 database migration tests
2016-09-14 15:48:53 -04:00
Jason Wray
4daff7f2f8
[core] Revert SQLite WAL journaling
2016-09-14 15:45:47 -04:00
Ivo van Dongen
290bd07a92
[core] OnlineFileSource - rate limit
2016-09-13 14:21:37 +02:00
Bruno de Oliveira Abinader
22fc8cdc1a
[test] Added Map class accessors tests
2016-09-13 12:38:59 +03:00
Tobrun
4f23d0cda8
[core] - move wrap test ( #6311 )
2016-09-12 12:50:13 -07:00
John Firebaugh
030234c7a6
[core] Rework invokeWithCallback so that the callback is last
2016-09-08 16:36:47 -07:00
Konstantin Käfer
f3191dbbb4
[core] change bool *AlongLine to SymbolPlacementType
2016-09-07 17:56:38 +02:00
Konstantin Käfer
ff0c895eaa
[core] change bool wrap/repeating to enum class SpritePatternMode
2016-09-07 17:56:38 +02:00
Konstantin Käfer
426242fe41
[core] change bool to enum class bool TileLoadState
2016-09-07 17:56:38 +02:00
John Firebaugh
d6f667a5e7
[core] Observe visibility changes
2016-09-06 14:29:22 -07:00
John Firebaugh
6d770cb40f
[core] Initial state of Source::Impl::enabled must be true
...
Until Style::recalculate() is called to check that there are no visible layers using the source, we have to assume there are. Otherwise, Style::isLoaded() can return a false positive.
2016-09-06 14:29:22 -07:00
John Firebaugh
fe2a26225f
[core, ios, android, qt] Observe style layer mutations rather than requiring SDKs to use Map::update
...
This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation.
2016-09-06 14:29:22 -07:00
John Firebaugh
3635b9f147
[core] Prepare style observer interfaces for source reloading
...
* Renamed {Source,Tile}Observer::onNeedsRepaint to onTileUpdated. Messages should be in terms of what happened to the observed object, not in terms of what the observer needs to do. This also removes a confusing overlap of virtual methods on StyleObserver.
* Added style::Observer::onUpdate(Update). This is also a violation of the above rule, but I'm hopeful that it will disappear when update batching is implemented.
2016-09-06 12:52:14 -07:00
Konstantin Käfer
4eb54270d7
[core] remove unused TimePoint during Source update
2016-09-05 19:04:34 +02:00