John Firebaugh
f9ebe54a63
[core] Merge Sprite into SpriteStore
2015-11-12 13:03:14 -08:00
John Firebaugh
1e350b7ea4
[core] Reorganize sprite related files
2015-11-12 13:03:14 -08:00
John Firebaugh
ddc4251074
[core] Polymorphic bucket creation
2015-10-30 11:19:28 -07:00
John Firebaugh
540c6eca15
[core] Eliminate StyleBucket
2015-10-30 11:19:28 -07:00
John Firebaugh
8c3b3cb792
[core] Use current copy of style layers when reparsing tiles
...
This fixes adding shape annotations after VectorTileData objects have
been created for annotations already, and will also be necessary for
the dynamic Style API.
2015-10-30 11:17:01 -07:00
John Firebaugh
f745f271e3
[core] When reparsing a tile, replace all existing buckets
...
A tile may go from having particular layers, to not having them.
(Annotation tiles in particular.)
2015-10-30 11:17:01 -07:00
Konstantin Käfer
75dec6ffac
[core] always reparse with the freshest possible placement config
...
Fixes an issue where updates to stale tiles would remove labels altogether until the map was rotated.
2015-10-26 16:44:55 +01:00
Konstantin Käfer
c0c554e36f
[core] reparse tiles when new data arrives
...
We're now reparsing tiles when they expire. We're also swapping out buckets atomically to avoid flickering data; i.e. we're displaying the old data as long as we don't have a new parsed bucket for that layer yet. The parsed buckets now live in the *TileData objects rather than in the TileWorker; only partially parsed == pending buckets will remain in the TileWorker. Once they're parsed, they're moved to the *TileData object.
2015-10-26 15:54:27 +01:00
John Firebaugh
0665b64590
[core] Introduce StyleCalculationParameters
...
This makes subsequent changes to the the parameter list less intrusive.
2015-10-23 13:56:55 -07:00
John Firebaugh
1f4144c65a
[core] Remove StyleLayer::isBackground()
2015-10-22 17:53:16 -07:00
John Firebaugh
3afc8b4a29
[core] Introduce StyleLayer subclasses
2015-10-22 09:34:40 -07:00
Vladimir Agafonkin
453fd4c0b0
fix layer minZoom being ignored if not less than source maxZoom
...
This condition led to layers with high minzoom like oneway street
arrows (z15) get parsed and placed regardless of minzoom (e.g. z11+),
wasting a lot of worker CPU time.
It became unnecessary after we added reparsing tiles when overscaling,
and even before that it should have probably been <= rather than <.
2015-10-06 14:25:00 +03:00
Konstantin Käfer
3d834b5c40
give every bucket its own set of buffers
...
This allows changing individual buckets without having leftover data
2015-10-02 15:05:19 +02:00
Ansis Brammanis
99c5976498
port minor collision code cleanup, fix #1705
...
https://github.com/mapbox/mapbox-gl-js/pull/1261
2015-08-24 18:41:51 -04:00
Ansis Brammanis
bc92c2de39
fix symbol collision detection in perspective view
2015-08-24 18:41:50 -04:00
Ansis Brammanis
231e83b450
reverse label priority order
2015-08-20 11:59:08 -07:00
Ansis Brammanis
60e9712916
remove text-max-size and icon-max-size
...
port https://github.com/mapbox/mapbox-gl-js/pull/1419
2015-08-20 11:59:08 -07:00
Bruno de Oliveira Abinader
98534631e0
Add circle render type
...
As specified in:
https://github.com/mapbox/mapbox-gl-style-spec/blob/v8-circle/reference/v8.json
Part of #1740 .
2015-08-20 11:59:07 -07:00
Tom MacWright
d1100f34de
Rename some style properties
...
symbol-min-distance ⇢ symbol-spacing
background-image ⇢ background-pattern
line-image ⇢ line-pattern
fill-image ⇢ fill-pattern
2015-08-20 11:58:57 -07:00
Thiago Marcos P. Santos
c6e58515fc
Keep updating until all the tiles are State::parsed
...
This is needed because of a race that can occur now that we
requests Glyphs from the Map Thread:
The glyph might arrive at the moment a tile is being parsed
and they won't be notified again of any new data, remaining
forever at the partial state.
2015-07-16 19:38:38 +03:00
Thiago Marcos P. Santos
00308be140
Make one arg ctors explicit
2015-07-11 12:42:45 +03:00
Konstantin Käfer
afaf74e41a
use SpriteStore from the SpriteAtlas
2015-07-08 19:46:00 +02:00
John Firebaugh
108792420c
Check for matching source when parsing tiles ( fixes #1698 )
2015-07-02 15:56:02 -07:00
John Firebaugh
c0af683f2e
Reapply style layer copy technique
2015-07-01 16:12:12 -07:00
John Firebaugh
d596d9dc38
Clean up bucket creation loop
2015-07-01 15:21:09 -07:00
John Firebaugh
24f50fdd4f
Remove indirection
2015-07-01 15:21:09 -07:00
Konstantin Käfer
9e0b241dde
reset partialParse when starting a new parsing run
2015-07-01 15:21:09 -07:00
John Firebaugh
4676553a3e
Merge TileParser into TileWorker
2015-07-01 15:21:09 -07:00
John Firebaugh
29a2cd908f
Introduce TileWorker
2015-07-01 15:21:08 -07:00