diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-06-01 13:53:09 -0700 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-06-01 15:38:01 -0700 |
commit | 2652a4a677b83656a7b5c9a1e477f1b2f9e8c76d (patch) | |
tree | d11117ac32017cdba3d479f64c824afbc867e014 /src/mbgl/annotation | |
parent | 5ff9d6e31ba391b3630fbfc0db1ca8da486e1b9f (diff) | |
download | qtlocation-mapboxgl-2652a4a677b83656a7b5c9a1e477f1b2f9e8c76d.tar.gz |
[core] Add templated RTTI for RenderSource classes
Diffstat (limited to 'src/mbgl/annotation')
-rw-r--r-- | src/mbgl/annotation/render_annotation_source.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/annotation/render_annotation_source.hpp b/src/mbgl/annotation/render_annotation_source.hpp index 539e73b57e..980d9d27e9 100644 --- a/src/mbgl/annotation/render_annotation_source.hpp +++ b/src/mbgl/annotation/render_annotation_source.hpp @@ -52,4 +52,9 @@ private: TilePyramid tilePyramid; }; +template <> +inline bool RenderSource::is<RenderAnnotationSource>() const { + return baseImpl->type == SourceType::Annotations; +} + } // namespace mbgl |