Minh Nguyễn
7ff036cd01
[core] Removed map attribution API
...
Since client code can readily access the individual sources, Map doesn’t need to expose a dedicated API for iterating over them.
2016-09-26 15:42:57 -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
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
8b0694bc16
[core] MapChangeDidFinishLoadingStyle - Ensure style is loaded ( #6392 )
2016-09-20 12:37:34 +02:00
Ivo van Dongen
f3b38df91d
[core] add MapChangeDidFinishLoadingStyle signal ( #6371 )
2016-09-20 09:55:53 +02: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
John Firebaugh
41bbd4e4f7
[core] Use an actor model for tile worker concurrency
2016-09-16 12:01:06 -07:00
Bruno de Oliveira Abinader
beb67fb7b2
[core] Separate transition options accessors from class API
...
Now the style class transition options have its own getter/setter, which
persists for each style until a new style is set.
2016-09-13 12:38:59 +03: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
8e2170c885
[core] Batch source updates
2016-09-06 14:29:22 -07:00
John Firebaugh
b4864ca9d5
[core] Trigger Source::Impl::reload when a filter or layout property is modified
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
46b73b8a2c
[core] Source::update => Source::{load,parse}Tiles, Source::load => Source::loadDescription
2016-09-05 19:03:27 +02:00
John Firebaugh
e126dc3a5a
[core] Fix updates of line and fill annotations
2016-08-29 08:08:44 -07: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
Konstantin Käfer
cb33c861b4
[core] parse more Style JSON properties
...
We're now parsing "name", "center", "zoom", "bearing", and "pitch" from the stylesheet.
2016-08-19 17:34:10 +02:00
Amy Lee Walton
b0cb8715ed
CJK overflow - update to match gl-shader ( #5908 )
...
* update vertex array ushorts
* update atlas size
* testing latest cjk test-suite branch
* update shader ref
* update shaders
* update icon buffer
* shaders
* updated tests
* buffer fix
* updated make tests
* annotation expected updates
* final push
* final fonts
* a_data1 removal
* remove cjk-mixed test
* hiring threshold for cjk-chinese
* update to new test suite
* Rename a_data2 to a_data in sdf and icon shaders
* update test-suite sha
2016-08-11 09:49:36 -07:00
Thiago Marcos P. Santos
045a644a7d
[core] Respect minzoom and maxzoom properties
...
Fixes #5811
2016-07-29 15:26:30 +03:00
Bruno de Oliveira Abinader
427773d31a
[core] Micro-optimizations in geometry code
2016-07-26 16:35:29 +03:00
John Firebaugh
16c435b151
[core, node] Implement bindings for addLayer
2016-06-24 09:39:51 -07:00
Bruno de Oliveira Abinader
97dffeb03d
[core] s/Wireframe/Overdraw/g
2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
df5a395708
[core] Refactor wireframe to match JS overdraw mode
2016-06-20 13:24:20 +03:00
Bruno de Oliveira Abinader
2f8fce7bdb
[core] Cleaned up TransitionOptions
2016-06-20 13:01:59 +03:00
John Firebaugh
e2f52a1dd8
[core] Copy only the necessary style layers to the worker
2016-06-17 11:38:03 -07:00
John Firebaugh
5254127e8c
[core] Runtime source API: Map methods
2016-06-16 13:27:15 -07:00
John Firebaugh
900568cfb0
[core] Runtime source API: private impls
2016-06-16 13:27:15 -07:00
John Firebaugh
a020e535ca
[core] Add a few conveniences to Color
2016-06-15 13:22:00 -07:00
Young Hahn
24b66bc8cd
Color class ( #5361 )
...
* Color class
* Switch to list initialization
2016-06-15 11:38:22 -04:00
John Firebaugh
14ab6661e0
[core] Eliminate Source::isLoading
...
Source::load is already a no-op if the request is in progress, so it isn't necessary.
2016-06-14 11:25:45 -07:00
John Firebaugh
5c7dfd948f
[core] *Tile ↔ *TileData
...
Tile is now the main base class; RasterTile, VectorTile, etc are its subclasses. GeometryTileData and its subclasses form the piece that's passed to the worker.
2016-06-13 10:59:33 -07:00
John Firebaugh
3ab7c1cca3
[core] Tile ⇢ RenderTile
2016-06-13 10:57:46 -07:00
Konstantin Käfer
8a8f828e41
[core] rename onPlacementRedone -> onNeedsRepaint
2016-06-10 12:42:14 +02:00
John Firebaugh
5928e4e52a
[core] Clean up style.cpp
2016-06-02 16:33:56 -07:00
John Firebaugh
e802aedb8c
[core, node, android] Remove used "base" parameter from setStyleJSON
2016-06-02 16:33:56 -07:00
John Firebaugh
e1a58565c8
[core] Move RenderData alongside RenderItem
2016-06-02 15:44:39 -07:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00
John Firebaugh
a43940afb2
[core] Runtime style layer API
2016-06-02 14:51:39 -07:00
Konstantin Käfer
c60fd0604a
[core] TileData::isReady() => TileData::isRenderable()
2016-05-25 21:51:25 +02:00
Konstantin Käfer
7272d7c84c
[core] move *Observers to their own files
2016-05-23 18:04:31 +02:00
John Firebaugh
fbb074a089
[core] Eliminate temporary vector in Style::queryRenderedFeatures
2016-05-17 13:20:25 -07:00
John Firebaugh
3e21e3887a
[core] Introduce StyleQueryParameters; push coordinate calculations into Source
2016-05-17 13:20:25 -07:00
John Firebaugh
0e7f3ada64
[core] Fix code style issues
2016-05-12 08:43:08 -07:00
Konstantin Käfer
7332ae0073
[core] retain tiles differently and remove old TileID class
2016-05-10 14:50:56 +02:00
Konstantin Käfer
ec70125e41
[core] move TileData and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
Konstantin Käfer
bdcbceff80
[core] move Tile to use UnwrappedTileID
2016-05-10 14:50:56 +02:00