Ivo van Dongen
ff3dc29ffd
[core] ensure layer::accept works with non-void return values on gcc
2017-05-30 13:07:03 +03:00
Ivo van Dongen
5cf0fc0f8b
[core] default file source - ensure thread safety for cached values
2017-05-27 10:05:36 +03:00
Ivo van Dongen
89129379f1
[core] default file source - ensure thread safety for local file and asset requests
2017-05-27 10:05:36 +03:00
Ivo van Dongen
b608d85db7
[core] allow self closing mailbox/actor
2017-05-27 09:25:03 +03: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
2c8343aa82
[core] Block in Mailbox::close() until neither receive nor push are in progress
...
Otherwise, an ActorRef that's in the process of sending a message could attempt to access an invalid Scheduler reference:
Thread 1 Thread 2
--------------------------------------------------
Scheduler::Scheduler
Actor::Actor
weakMailbox.lock()
Actor::~Actor
Scheduler::~Scheduler
mailbox->push()
scheduler.schedule() 💣
2017-05-24 08:19:19 -07:00
Ivo van Dongen
2dd8553096
[core] forward visitor in layer::accept
2017-05-23 10:06:56 +03:00
John Firebaugh
1f921299b0
[core] Make ExponentialStops behavior consistent; add tests
2017-05-19 11:48:45 -07:00
John Firebaugh
bdff99c853
[core] Eliminate round-trip through Value in CameraFunction::evaluate
2017-05-19 11:48:45 -07:00
Konstantin Käfer
eae2c715f1
[core] add error for non-virtual destructor deletes + add virtual dtors
2017-05-18 16:57:12 +02:00
John Firebaugh
786707649a
[core] Remove ambiguous get{Width,Height} accessors from style::Image
2017-05-17 11:23:47 -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
9eba2a66d1
[core, node, darwin, qt] Remove support for paint classes
2017-05-15 09:45:55 -07:00
John Firebaugh
da4d735e2c
[core] Unify {Paint,Layout,Light}Properties
2017-05-15 09:45:55 -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
095dc7b167
[core] Replace createRender{Source,Layer} with Render{Source,Layer}::create
...
* Eliminates the need for EnableImmutableFromThis
* Eliminates the dependency of {Source,Layer}::Impl on corresponding Render class (circular dependency)
2017-05-12 11:26:27 -07:00
John Firebaugh
afead4e749
[core] Return {Source,Layer}::getID by value
...
Avoid dangling references in the following sequence:
auto& id = layer->getID();
layer->setMaxZoom(2);
std::cout << id;
The reference would be dangling because mutating the layer allocates a new Immutable impl, and there may be no references to the prior impl, which held the id.
2017-05-12 11:26:27 -07:00
John Firebaugh
c2a5894f2d
[core] Immutable Impls
2017-05-12 11:26:27 -07:00
Bruno de Oliveira Abinader
37046938da
[tidy] modernize-raw-string-literal
2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
870067360f
[tidy] modernize-pass-by-value
2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
25b2250c32
[tidy] modernize-use-using
2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
fa36110dfb
[tidy] modernize-use-auto
2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
f709d7b055
[tidy] llvm-namespace-comment
2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
6f993230f2
[core] Make deleted members public
...
warning: deleted member function should be public [modernize-use-equals-delete]
2017-05-12 18:07:36 +03: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
baaae99a03
[core, android] Factor JSON string conversions
...
This adds a `convertJSON` template, to be used like:
Error error
optional<Foo> foo = convertJSON<Foo>(string, error);
Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`.
While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
2017-05-08 13:48:57 -07:00
Ivo van Dongen
6fd40867d6
[core] delegate light changes to render light
2017-05-08 19:39:55 +03:00
Ivo van Dongen
feae5e22ee
[core] generated accessor methods on light
2017-05-08 19:39:55 +03:00
Lauren Budorick
1c9af3226f
[core] Reuse fill-extrusion textures between frames ( #8896 )
2017-05-08 09:06:07 -07:00
John Firebaugh
54b7684baa
[core] Remove unused declaration
2017-05-05 08:57:30 -07:00
Asheem Mamoowala
5c52401d55
[core] Make Map.addImage tests pass ( #8843 )
...
Fix Node tests suite implementation to parse pixelRatio from style json
Premultiply images in the node binding before sending to mbgl core
2017-05-02 09:54:06 -07:00
John Firebaugh
3f0c89d633
[core] Refactor Source::*Impls into RenderSources and TilePyramid
2017-05-02 08:45:09 -07:00
John Firebaugh
c2b00378b7
[all] Push querySourceFeatures back out to Map
...
Once Source and RendererSource are split, Source will no longer have access to tiles.
2017-05-02 08:45:09 -07:00
Lauren Budorick
f6e79d7073
[core] Render fill-extrusion layers ( #8431 )
2017-04-27 15:56:55 -07:00
Ivo van Dongen
3c175adf30
[core] split off render layers
2017-04-25 17:23:54 -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
John Firebaugh
3c23faf65a
[core] More complete fix for composite function interpolation edge case
...
b5b4549 / #8613 handled the edge case for layout properties, but not paint properties. Move the check for a degenerate range to interpolationFactor in order to handle both correctly.
2017-04-20 16:11:57 -07:00
John Firebaugh
ddecdeca94
[core] Move ProjectedMeters to projection.hpp
2017-04-18 14:43:31 +03:00
John Firebaugh
092da9c956
[core] Remove non-Map-dependent projection methods from Map
2017-04-18 14:43:31 +03:00
Bruno de Oliveira Abinader
2f4d162deb
[core] Tighten geo.hpp ctors
2017-04-14 12:33:13 -07:00
Bruno de Oliveira Abinader
8877452ec3
[core] TransitionOptions s/operator bool/isDefined/
2017-04-14 12:33:13 -07:00
Bruno de Oliveira Abinader
04a3a7383a
[core] Remove unused bool() functions
2017-04-14 12:33:13 -07:00
John Firebaugh
7b041b123c
[core, darwin] Object identity for MGLSource*, MGLStyleLayer*
...
All `MGLSource` pointers referencing the same logical source will now be object identical; similarly for `MGLStyleLayer`.
2017-04-13 10:33:18 -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
John Firebaugh
62576e24a0
[core] Revert use of optional<EdgeInsets>, because EdgeInsets has a natural "empty" state
2017-04-11 14:50:22 -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
bc7f6da135
[core] Added LatLngBounds::{valid,constrain}
2017-04-11 12:51:09 +03:00