Bruno de Oliveira Abinader
dc2853533f
[core] Fixes point annotations misplaced on maximum scale
2016-03-10 03:36:45 +02:00
Bruno de Oliveira Abinader
b325df880b
[core] Simplify Screen to Geometry coordinate conversion
2016-03-01 20:58:54 +00:00
Bruno de Oliveira Abinader
9771b0e569
[core] Use GeometryTileFeature::defaultExtent by default
...
GeoJSONTile and AnnotationTile don't need to reimplement getExtent() if
they use the same default value. This also helps point and shape
annotations to avoid using raw values.
2016-03-01 20:58:54 +00:00
Bruno de Oliveira Abinader
4994b3dc57
[core] PrecisionPoint is now ScreenCoordinate
2016-03-01 20:58:54 +00:00
Bruno de Oliveira Abinader
f3fc87261c
[core] Coordinate is now GeometryCoordinate
...
Also introduced GeometryCoordinates (vector of GeometryCoordinate
items), to better cope with GeometryCollection.
2016-03-01 20:58:54 +00:00
Gabriel Miklós
d742c2d3eb
[core] Add support for updating point annotations
2016-02-12 16:47:24 -08:00
John Firebaugh
62bbf2627a
[core] Organize files that were in map folder better
...
Fixes #996
2016-02-11 17:30:35 -08:00
Konstantin Käfer
5726d2b357
[core] use std::move() to prevent copies
2016-02-11 12:17:33 +01:00
John Firebaugh
37c27f3a8f
[core] Improve LatLngBounds API
...
* Use "named constructors": empty, world, hull
* Make the two-argument constructor lenient (i.e., it is a hull operation)
* Add various accessors
* Enforce a single empty representation
2016-02-02 23:04:18 -08:00
John Firebaugh
032c8fba3c
[core] Remove unused
2016-02-02 20:20:47 -08:00
Ansis Brammanis
4e0d1070f6
[core] support tiles with non-4096 extents
...
Convert all geometries to the maximum extent supported by our buffers
and then use that constant extent everywhere else.
2016-02-02 14:49:03 -08:00
Ansis Brammanis
9dcaab1933
[core] bump sprite atlas to 1024x1024
2016-01-26 13:27:16 -08:00
John Firebaugh
1c21d0fd4c
[core] Use better types for modified / expires / etag
2016-01-21 11:22:11 -08:00
Ansis Brammanis
d34f8eb674
[core][ios][osx][android] make SpriteImage accept PremultipliedImage
...
the SpriteImage constructor signature changes from
SpriteImage(
uint16_t width, uint16_t height, float pixelRatio,
std::string&& data, bool sdf = false);
to
SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
2016-01-19 18:23:21 -08:00
John Firebaugh
9b62661b07
[core] Use experimental optional instead of mapbox::util::optional
2016-01-19 17:56:48 -08:00
John Firebaugh
4328e6fd0d
[core] tileSize is a source property, not a TileJSON property
2016-01-15 11:48:47 -08:00
Konstantin Käfer
e8705d535d
[core] move SourceInfo parsing to StyleParser
2016-01-13 13:04:59 -08:00
Konstantin Käfer
cef05b9017
[core] move invariant Source ID from SourceInfo to Source
2016-01-13 13:04:59 -08:00
Konstantin Käfer
f00a6a997b
[core] move invariant SourceType from SourceInfo to Source
2016-01-13 13:04:59 -08:00
Romain Quidet
af45d87e54
2210: Sprites can be removed / updated correctly
2015-12-15 16:36:17 -08:00
Vladimir Agafonkin
bd56c8634b
[core] update annotation simplification [skip ci]
...
This matches VT default
https://github.com/mapbox/tilelive-bridge/commit/6bd5b3cc68e86990cc9cf2b
fde5e956373cb5b0c
2015-12-10 13:16:40 -08:00
Vladimir Agafonkin
b44331245a
[core] update geojson-vt options
...
- fix the code to use the same simplification tolerance
- remove outdated indexMaxZoom/Points values and rely on default
- bump buffer 2x to fix bleeding linecaps on thick lines
2015-12-10 12:59:49 -08:00
Konstantin Käfer
da7b6bb8b9
[core] upgrade to GeoJSON VT 3.0.0
2015-12-10 12:54:58 -08:00
John Firebaugh
e04c5f6506
[core] Replace StyleLayerType with RTTI
2015-12-07 18:22:33 -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
John Firebaugh
8afa14fa78
[core] Map::setSprite ⇢ Map::addAnnotationIcon
...
Fixes #3084
2015-12-01 15:10:28 -08:00
John Firebaugh
bafbf6c04b
[core] Don't share util::ptr<StyleLayer> across threads
2015-12-01 11:16:57 -08:00
Adam Hunter
e1091db45e
[core] Use a separate atlas and store for annotation sprites
...
Fixes #1488
2015-12-01 09:15:05 -08:00
John Firebaugh
40ebf5d0d0
[core] Introduce StyleUpdateParameters
2015-12-01 09:07:03 -08:00
John Firebaugh
f27c28b6c4
Partially revert "[core] Source should receive a ref to MapData just once"
...
This partially reverts commit d55aa7929c .
2015-12-01 09:07:03 -08:00
Bruno de Oliveira Abinader
d55aa7929c
[core] Source should receive a ref to MapData just once
2015-11-27 17:47:02 +02:00
Bruno de Oliveira Abinader
591e0dde2f
[core] Added modified, expires information to TileData
2015-11-27 17:47:02 +02:00
John Firebaugh
d08861daf4
[core] Force style-sourced annotations to be visible
2015-11-19 19:50:29 -08:00
Bruno de Oliveira Abinader
cb9b397985
[core] Fix LatLngBounds default coordinates
...
LatLngBounds southwest and northeast coordinate points were inverted, so
they could be extended via LatLngBounds::extend(). However, this looks
confusing and error-prone.
A static LatLngBounds::getExtendable() is added to address cases when we
want to extend LatLngBounds.
2015-11-18 09:37:27 +02:00
John Firebaugh
7137239cbd
[core] Use std::unique_ptr for FileSource request
2015-11-16 12:25:47 -08:00
John Firebaugh
1e350b7ea4
[core] Reorganize sprite related files
2015-11-12 13:03:14 -08:00
Bruno de Oliveira Abinader
e2052ea3e4
[core] Added PrecisionPoint to represent pixel points
2015-11-11 16:59:49 +02:00
John Firebaugh
54e08b1f83
[core] Eliminate use of ClassProperties for paint
2015-11-10 11:33:17 -08:00
John Firebaugh
a562567589
[core] Eliminate use of ClassProperties for layout
2015-11-10 11:33:17 -08:00
John Firebaugh
728a9858ea
[core] Push layouts and paints to subclasses
2015-11-10 11:33:17 -08:00
John Firebaugh
7de4ce5bcb
[core] Simplify Function
2015-11-06 10:38:47 -08:00
Mike Morris
79a5a96037
[core] mason geojsonvt-2.1.6.3
...
- [osx] set -fvisibility-inlines-hidden in gyp/common.gypi to silence
mismatched visibility linker warnings
- [linux] set cxx_host in GYP_FLAGS to set -fabi-version=0 on gcc builds
to use clang-built mason binaries
- [ios] update symbol visibility for iOS tests
- [ios] link libgeojsonvt.a in iOS tests xcodeproj
- add libgeojsonvt.a to General -> Linked Frameworks and Libraries
- add mason_packages (recursive) to Build Settings -> Library Search Path
- [ios] add libuv and geojsonvt first in iOS libtool smush to ensure symbols
are found by later compilation units where they are undefined
2015-11-02 18:41:34 -05:00
John Firebaugh
a7219a77aa
[core] Don't crash when removing a shape annotation whose layer was never created
2015-10-30 14:36:07 -07:00
John Firebaugh
540c6eca15
[core] Eliminate StyleBucket
2015-10-30 11:19:28 -07:00
John Firebaugh
7669e02062
[core] Monitor annotation tiles, rather than completely invalidating them
...
Fixes #1688
2015-10-30 11:17:01 -07:00
John Firebaugh
e2dc956eb6
[core] Merge LiveTileData into VectorTileData
...
To encapsulate the differences, this introduces an abstract
GeometryTileMonitor class, with concrete VectorTileMonitor and
AnnotationTileMonitor implementations, and makes pbf parsing for
VectorTile data happen lazily in getLayer, since we want that to
happen on the worker thread, rather than when VectorTile is created.
Fixes #2792
2015-10-29 12:05:40 -07:00
John Firebaugh
d20bcb0795
[core] Workaround for #2808
2015-10-28 15:54:36 -07:00
John Firebaugh
bb6241844a
[core] Extract PaintPropertiesMap
2015-10-26 12:00:11 -07:00
John Firebaugh
7a03d734fd
[core] Respect source layer z-order for style-sourced annotations
2015-10-23 13:27:14 -07:00