summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/render_annotation_source.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/annotation/render_annotation_source.hpp')
-rw-r--r--src/mbgl/annotation/render_annotation_source.hpp5
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