diff options
Diffstat (limited to 'src/mbgl/style/expression/within.cpp')
-rw-r--r-- | src/mbgl/style/expression/within.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mbgl/style/expression/within.cpp b/src/mbgl/style/expression/within.cpp index 3fd2bf8f92..c5ec53ba3a 100644 --- a/src/mbgl/style/expression/within.cpp +++ b/src/mbgl/style/expression/within.cpp @@ -265,9 +265,12 @@ ParseResult Within::parse(const Convertible& value, ParsingContext& ctx) { } Value valueConverter(const mapbox::geojson::rapidjson_value& v) { - if (v.IsDouble()) { + if (v.IsDouble() || v.IsInt() || v.IsUint() || v.IsInt64() || v.IsUint64()) { return v.GetDouble(); } + if (v.IsBool()) { + return v.GetBool(); + } if (v.IsString()) { return std::string(v.GetString()); } |