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
John Firebaugh
54b7684baa
[core] Remove unused declaration
2017-05-05 08:57:30 -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
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
Bruno de Oliveira Abinader
1f8910de18
Make Source::getZoomRange return an optional range
2017-03-21 19:33:36 +02:00
Bruno de Oliveira Abinader
24198ebca8
[core] Expose Source::getZoomRange
2017-03-20 18:25:04 +02:00
Ivo van Dongen
0d10d2df1c
[core] query source features
2017-03-09 13:11:23 -08:00
Minh Nguyễn
7ff036cd01
[core] Removed map attribution API
...
Since client code can readily access the individual sources, Map doesn’t need to expose a dedicated API for iterating over them.
2016-09-26 15:42:57 -07:00
John Firebaugh
900568cfb0
[core] Runtime source API: private impls
2016-06-16 13:27:15 -07:00