summaryrefslogtreecommitdiff
path: root/src/mbgl/style/function/identity_stops.cpp
diff options
context:
space:
mode:
authorLauren Budorick <lauren@mapbox.com>2017-08-23 15:03:15 -0700
committerLauren Budorick <lauren@mapbox.com>2017-08-28 12:42:51 -0700
commitbe18e6a9bdf0b5cad38c4bab6fa391cff49d6dfd (patch)
treee930ceb8436646e0d6747f2b3e805bd640f2a436 /src/mbgl/style/function/identity_stops.cpp
parentc6ab20e5c69c3705422e49c3511faf3e5ab79b05 (diff)
downloadqtlocation-mapboxgl-upstream/icon-anchor.tar.gz
Implement icon-anchor propertyupstream/icon-anchor
Diffstat (limited to 'src/mbgl/style/function/identity_stops.cpp')
-rw-r--r--src/mbgl/style/function/identity_stops.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/function/identity_stops.cpp b/src/mbgl/style/function/identity_stops.cpp
index 7815f4aca0..0ac6fda846 100644
--- a/src/mbgl/style/function/identity_stops.cpp
+++ b/src/mbgl/style/function/identity_stops.cpp
@@ -50,12 +50,12 @@ optional<TextJustifyType> IdentityStops<TextJustifyType>::evaluate(const Value&
}
template <>
-optional<TextAnchorType> IdentityStops<TextAnchorType>::evaluate(const Value& value) const {
+optional<SymbolAnchorType> IdentityStops<SymbolAnchorType>::evaluate(const Value& value) const {
if (!value.is<std::string>()) {
return {};
}
- return Enum<TextAnchorType>::toEnum(value.get<std::string>());
+ return Enum<SymbolAnchorType>::toEnum(value.get<std::string>());
}
template <>