Ivo van Dongen
377faaf4f8
[core] annotation manager - manage dirty state internally
2017-08-31 18:45:28 +03:00
Ivo van Dongen
3832f8d0d8
[core] renderer interface
2017-07-18 10:45:12 +02:00
Ivo van Dongen
e35cbbae55
[core] mutate style on annotation mutations immediately
2017-07-18 10:45:12 +02:00
John Firebaugh
1520a56813
[all] Promote Style to public API
2017-06-22 08:04:39 -07:00
Konstantin Käfer
7b90af5d35
[core] always return owning pointers for GeometryTileData::getLayer()
2017-06-21 17:18:08 -07:00
Konstantin Käfer
4ea4715179
[core] shared data among AnnotationTileFeature objects
2017-06-21 17:18:08 -07:00
Ivo van Dongen
672ba516f2
[core] mutex guard annotation manager for cross thread usage
2017-06-13 10:15:53 +03:00
John Firebaugh
f983c2716b
[core] Fix several bugs in AnnotationManager
2017-06-05 19:38:08 -07:00
John Firebaugh
aa216d0025
[core] Don't use a separate SpriteAtlas for annotation images
...
Instead, just add them to the Style as needed. Includes changes from #8905 and takes care to avoid regressing #3817 .
2017-05-26 11:21:56 -07:00
John Firebaugh
d766af44c8
[core] Auto-growable SpriteAtlas using shelf-pack
2017-05-26 11:21:56 -07: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
8fb1a81c46
[core] Immutable<Impl> for Image
2017-05-15 08:20:18 -07:00
Ivo van Dongen
cc9f040a2d
[core] Split style image collection from SpriteAtlas
2017-05-12 13:19:00 -07:00
John Firebaugh
c130d470a1
[core] Remove StyleSourcedAnnotation support
...
The functionality this provided has been subsumed by the runtime styling API.
2017-05-10 14:22:01 -07:00
John Firebaugh
1c42daa152
[core] Tweak handling of annotation special case SpriteAtlas
...
* Simplify SymbolLayout; it never needs to care about more than one SpriteAtlas.
* Move the reference from SymbolLayer::Impl to SymbolBucket. This is a prerequisite for making layer Impls immutable.
2017-04-26 16:29:44 -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
59055cf403
[core] Move Sprite parsing to thread pool
2017-04-24 10:42:47 +02:00
John Firebaugh
efa6c01956
[core] Remove unnecessary Source::Impl::enabled assignment
...
This flag will get set automatically by Style::recalculate.
2017-04-18 08:49:57 -07:00
John Firebaugh
5524506abd
[core] Eliminate SpriteAtlas::updateDirty
...
Simplify internal datastructures. Properly remove rects from the bin pack when an image is removed.
2017-02-14 16:28:12 -06:00
Konstantin Käfer
62ea1f2185
[core] remove trailing whitespace, add trailing newlines, add space after //
2017-01-27 11:44:16 +01:00
Konstantin Käfer
9e3839781f
[core] convert SpriteAtlas to use managed texture handling
2016-11-01 18:41:52 +01:00
Konstantin Käfer
62b56b799a
[core] change std::array<uint16_t, 2> to mbgl::Size
2016-10-27 18:30:58 -07:00
Bruno de Oliveira Abinader
efc1bff65f
[core] Ignore placement for symbol annotations
2016-10-11 09:55:32 +03:00
Tobrun
72e3d6906d
[android] - do not update marker while creating ( #6314 )
...
* [android] - do not update marker while creating, add activity to prevent regression
* [core] - add asserts to incorrect usage of update and remove annotations api
* [android] - fix marker tests
2016-09-19 18:03:49 -07:00
John Firebaugh
940124ff71
[core] Merge SpriteStore and SpriteAtlas
2016-09-19 09:40:43 -07:00
John Firebaugh
0afd14ae29
[core] Eliminate use of util::ptr in GeometryTile* interfaces
2016-09-06 12:52:13 -07:00
John Firebaugh
e126dc3a5a
[core] Fix updates of line and fill annotations
2016-08-29 08:08:44 -07:00
Minh Nguyễn
e147887e35
[core, android, ios, macos] Replaced getPointAnnotationsInBounds() w/ queryPointAnnotations() ( #5165 )
...
queryPointAnnotations() accepts a screen rectangle instead of a geographic bounding box, so marker hit testing works at the edges of a rotated, tilted map view.
Fixes #5151 .
2016-08-12 15:45:18 -07:00
Konstantin Käfer
77e7846756
[core] code style cleanups
...
- puts function definitions in a namespace ... {} rather than using namespace ...;
- remove trailing whitespace
- add trailing newline
- protect SQL statements from being formatted by clang-format
2016-07-01 12:38:33 +02:00
John Firebaugh
c4e4cc5081
[core] Adjust layer source properties to better reflect reality
...
* Layer source ID is immutable; must be provided to the constructor
* Layer source layer is mutable
* Layers with GeoJSON sources do not have a source layer
While here, make Layer::copy impl-private.
2016-06-24 09:39:15 -07:00
John Firebaugh
2921127bdb
[core] Avoid unnecessary work when a symbol annotation is updated
...
In particular, if only the geometry changes, don't cascade and recalculate the style.
2016-06-17 11:38:04 -07:00
John Firebaugh
900568cfb0
[core] Runtime source API: private impls
2016-06-16 13:27:15 -07:00
John Firebaugh
f74c5d8abd
[core] Inline AnnotationSource constructor parameters
2016-06-14 11:25:45 -07:00
John Firebaugh
b222689de8
[core] Pass geojsonvt only to GeoJSONSource
2016-06-14 11:25:45 -07:00
John Firebaugh
9b0093e32d
[core] Introduce source subclasses
2016-06-14 11:25:45 -07:00
John Firebaugh
b9be5fd768
[core] Simplify GeometryTile::setData
2016-06-13 10:59:34 -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
078392eda9
[core] Merge annotation_tile_data.{hpp,cpp} into annotation_tile.{hpp,cpp}
2016-06-13 10:57:46 -07:00
John Firebaugh
d62baffb1b
[core] Merge AnnotationTileSource into AnnotationTileData
2016-06-10 12:42:14 +02:00
Konstantin Käfer
e8d8f52d2e
[core] *TileMonitor => *TileSource
2016-06-10 12:42:14 +02: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
John Firebaugh
0fba70d5a8
[all] Rationalize annotation API
2016-06-01 17:37:01 -07:00
Minh Nguyễn
8ace0d37d1
[core] AnnotationTileLayer vends its own name ( #5163 )
...
Fixes #5159 .
2016-05-26 13:12:23 -07:00
Konstantin Käfer
7272d7c84c
[core] move *Observers to their own files
2016-05-23 18:04:31 +02:00
Konstantin Käfer
ec70125e41
[core] move TileData and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
John Firebaugh
b2beeda50b
[core] Adopt a strict naming convention for style properties
...
This will allow code to be generated from the style specification.
2016-04-21 14:05:40 -07:00
Gabriel Miklós
d742c2d3eb
[core] Add support for updating point annotations
2016-02-12 16:47:24 -08:00
John Firebaugh
032c8fba3c
[core] Remove unused
2016-02-02 20:20:47 -08:00
Ansis Brammanis
9dcaab1933
[core] bump sprite atlas to 1024x1024
2016-01-26 13:27:16 -08:00