John Firebaugh
e802aedb8c
[core, node, android] Remove used "base" parameter from setStyleJSON
2016-06-02 16:33:56 -07:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00
John Firebaugh
cadc617c76
[core] Introduce PropertyValue<T>
...
PropertyValue<T> represents the three possible types of style property value: undefined, constant, or function.
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
Konstantin Käfer
7272d7c84c
[core] move *Observers to their own files
2016-05-23 18:04:31 +02:00
Konstantin Käfer
002393bdea
[core] remove MockView and View dependency in Transform
2016-05-18 12:07:21 +02:00
Bruno de Oliveira Abinader
c13dd32242
[core] Added Viewport mode
...
Satisfies embedding platforms that requires the viewport coordinate
systems to be set according to its standards e.g. viewport mirrored
vertically.
2016-05-11 15:48:51 +03:00
Konstantin Käfer
ec70125e41
[core] move TileData and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
John Firebaugh
59a7fbf8e4
[core] Implement has/!has filters ( #4952 )
2016-05-05 14:30:37 -07:00
John Firebaugh
a64fe5062f
[core] Simplify FilterEvaluator and fix crash
...
Previous implementation was assigning a temporary to FilterEvaluator<T>::extractor.
2016-05-04 09:56:34 +03:00
Dane Springmeyer
c82b02c508
[core] port to protozero ( #4906 )
2016-05-03 13:57:17 -07:00
John Firebaugh
da78422c5c
[core] Prepare Filter for public API ( #4900 )
2016-04-28 16:33:09 -07:00
John Firebaugh
c4089b60bc
[core] Extract Function::evaluation to a separate class ( #4811 )
...
This allows the Function<Faded<T>> partial specialization to be eliminated, giving all property functions a consistent storage type.
2016-04-25 09:51:47 -07:00
John Firebaugh
5939dd5b41
[core] Use the proper type for font stacks
2016-04-22 15:53:18 -07:00
John Firebaugh
0c5d805bf9
[core] FontStack ⇢ GlyphSet ( #4803 )
...
A font stack is an array of font names. This is not that.
2016-04-22 13:28:03 -07:00
John Firebaugh
1ee0055710
[core] Eliminate MapData
2016-04-15 09:56:18 -07:00
John Firebaugh
ed489e7649
[core] Remove MapData dependency from Style
2016-04-15 09:56:18 -07:00
John Firebaugh
6e78eabfff
[core] Clean up ThreadContext vestiges
2016-04-15 09:56:18 -07:00
Konstantin Käfer
db5ac4785f
[test] rearrange test files so they're not in the fixtures folder
2016-03-22 11:56:01 -07:00
Bruno de Oliveira Abinader
cd1a06c2dc
[core] Get rid of MapData::{get,set}animationTime
2016-03-18 01:27:48 +02:00
Bruno de Oliveira Abinader
01edd4503c
[core] Move class handling to Style
2016-03-18 01:26:22 +02:00
John Firebaugh
7b39ce9521
[core] Remove ThreadContext::getFileSource; instead thread FileSource through
2016-02-18 15:15:24 -08:00
Bruno de Oliveira Abinader
bfafc360a7
[gl] Moved TexturePool to gl namespace
2016-02-18 13:27:35 +02:00
John Firebaugh
c2ab5b34a7
[tests] Fix build
2016-02-11 18:01:53 -08:00
Young Hahn
43c44eccdc
Allow using tileSize: 512 as a switch to trade retina support for 512px raster tiles
2016-02-11 11:28:35 -08:00
John Firebaugh
e9302c797f
[all] Don't interpret 404s on non-tile resources as "no content"
2016-02-10 15:40:20 -08:00
John Firebaugh
025375ad0b
[core] Cache with mapbox:// tile URLs
2016-02-10 15:40:20 -08:00
John Firebaugh
f3d4107d19
[core] Add a method for statically evaluating font stacks used by a style
2016-02-10 15:40:20 -08:00
John Firebaugh
19aa090bdc
[tests] Don't call the callback for cancelled responses
...
StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback".
Fixes #3784
2016-02-04 13:18:14 -08:00
John Firebaugh
b97dcbc125
[tests] Reorganize tests to match src structure
2016-02-02 11:31:13 -08:00
John Firebaugh
716997b99e
[tests] Refactor and make MockFileSource more general
...
Now it works more like StubStyleObserver: you can assign std::functions to specific slots based on resource type.
Rewrite resource loading tests in that style, making them less like integration tests of Style and more like unit tests of Source, GlyphStore, and SpriteStore.
2016-02-01 15:29:42 -08:00
Konstantin Käfer
a88e58ef3a
[core] use stale glyphs
...
Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
2016-01-15 17:04:08 +01:00
Konstantin Käfer
cef05b9017
[core] move invariant Source ID from SourceInfo to Source
2016-01-13 13:04:59 -08:00
Thiago Marcos P. Santos
d7fdcc73bf
[core] Get rid of ::unref() for Timer and AsyncTask
...
Not need, legacy from libuv. The RunLoop keep the main
loop running until is explicitly no longer needed.
2016-01-09 01:26:29 +02:00
John Firebaugh
845699e698
[tests] Simplify MockFileSource
2015-12-24 08:17:42 -08:00
John Firebaugh
338f94e7ed
[tests] Rewrite {Sprite,Glyph}Store tests in the style of ResourceLoading
2015-12-24 08:17:42 -08:00
John Firebaugh
16de579d7c
[core] Rationalize error handling for resource loading
...
* Standardize on std::exception_ptr as the error representation
(fixes #2854 ).
* Don't format textual strings at the error source; pass on the
constituent data via observer method parameters instead.
* Use the null object pattern to simplify observer notification code.
* Further refactoring for ResourceLoading tests.
2015-12-23 12:50:42 -08:00
Bruno de Oliveira Abinader
2e69d95c6b
[tests] Moved lazy source loading tests to ResourceLoading
2015-12-23 10:54:05 -04:00
John Firebaugh
7c22792bdf
[tests] Rewrite resource loading test
...
Make it more readable and easier to debug.
2015-12-22 18:00:30 -08:00
Bruno de Oliveira Abinader
3e00ab1582
[core] Add more tests to on-demand source load
2015-12-17 18:15:06 -08:00
Bruno de Oliveira Abinader
9d3fe01991
[core] Tests for style with unused sources
2015-12-17 16:53:37 -08:00
Bruno de Oliveira Abinader
93725e062a
[core] Load sources only if there is at least one visible layer
2015-12-17 16:53:37 -08:00
John Firebaugh
e04c5f6506
[core] Replace StyleLayerType with RTTI
2015-12-07 18:22:33 -08:00
John Firebaugh
0a0007e0ac
[core] More efficient layer cloning
2015-12-07 11:19:08 -08:00
Konstantin Käfer
478472e501
[core] add std::move to constructors
2015-12-03 15:38:36 +01:00
Konstantin Käfer
d5fb535058
[core] add namespace comment to closing brace
2015-12-03 15:38:36 +01:00
Thiago Marcos P. Santos
cb06526b10
[tests] Remove libuv dependency from the tests
2015-12-01 11:49:02 +02:00
John Firebaugh
1d33790dc0
[core] Fix image type of Map::renderStill
...
It's a premultiplied image. This implies that we were misusing encodePNG
in most cases, as we were passing premultiplied pixels which were then
interpreted as unmultiplied. I changed encodePNG to accept premultipled
pixels, and unpremultiply in the implementations.
2015-11-25 15:57:37 -08:00
John Firebaugh
0c1e378bc9
[core] Rewrite image handling
...
* Consolidate Image and StillImage
* Typecheck unassociated vs premultiplied images
* Rewrite default platform image decoding implementation
2015-11-25 15:57:36 -08:00