[core] Add Filter accessors
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/style/layer.hpp>
|
||||
#include <mbgl/style/filter.hpp>
|
||||
#include <mbgl/style/property_value.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/style/layer.hpp>
|
||||
#include <mbgl/style/filter.hpp>
|
||||
#include <mbgl/style/property_value.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
@@ -18,6 +19,9 @@ public:
|
||||
const std::string& getSourceID() const;
|
||||
const std::string& getSourceLayer() const;
|
||||
|
||||
void setFilter(const Filter&);
|
||||
const Filter& getFilter() const;
|
||||
|
||||
// Paint properties
|
||||
|
||||
PropertyValue<float> getCircleRadius() const;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/style/layer.hpp>
|
||||
#include <mbgl/style/filter.hpp>
|
||||
#include <mbgl/style/property_value.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
@@ -18,6 +19,9 @@ public:
|
||||
const std::string& getSourceID() const;
|
||||
const std::string& getSourceLayer() const;
|
||||
|
||||
void setFilter(const Filter&);
|
||||
const Filter& getFilter() const;
|
||||
|
||||
// Paint properties
|
||||
|
||||
PropertyValue<bool> getFillAntialias() const;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/style/layer.hpp>
|
||||
#include <mbgl/style/filter.hpp>
|
||||
#include <mbgl/style/property_value.hpp>
|
||||
|
||||
#include <vector>
|
||||
@@ -20,6 +21,9 @@ public:
|
||||
const std::string& getSourceID() const;
|
||||
const std::string& getSourceLayer() const;
|
||||
|
||||
void setFilter(const Filter&);
|
||||
const Filter& getFilter() const;
|
||||
|
||||
// Layout properties
|
||||
|
||||
PropertyValue<LineCapType> getLineCap() const;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/style/layer.hpp>
|
||||
#include <mbgl/style/filter.hpp>
|
||||
#include <mbgl/style/property_value.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/style/layer.hpp>
|
||||
#include <mbgl/style/filter.hpp>
|
||||
#include <mbgl/style/property_value.hpp>
|
||||
|
||||
#include <vector>
|
||||
@@ -20,6 +21,9 @@ public:
|
||||
const std::string& getSourceID() const;
|
||||
const std::string& getSourceLayer() const;
|
||||
|
||||
void setFilter(const Filter&);
|
||||
const Filter& getFilter() const;
|
||||
|
||||
// Layout properties
|
||||
|
||||
PropertyValue<SymbolPlacementType> getSymbolPlacement() const;
|
||||
|
||||
@@ -77,6 +77,7 @@ const layerHpp = ejs.compile(`<%
|
||||
#pragma once
|
||||
|
||||
#include <mbgl/style/layer.hpp>
|
||||
#include <mbgl/style/filter.hpp>
|
||||
#include <mbgl/style/property_value.hpp>
|
||||
|
||||
<% if (type === 'line' || type === 'symbol') { -%>
|
||||
@@ -103,6 +104,9 @@ public:
|
||||
const std::string& getSourceID() const;
|
||||
const std::string& getSourceLayer() const;
|
||||
|
||||
void setFilter(const Filter&);
|
||||
const Filter& getFilter() const;
|
||||
|
||||
<% } -%>
|
||||
<% if (layoutProperties.length) { -%>
|
||||
// Layout properties
|
||||
@@ -191,6 +195,16 @@ const std::string& <%- camelize(type) %>Layer::getSourceID() const {
|
||||
const std::string& <%- camelize(type) %>Layer::getSourceLayer() const {
|
||||
return impl->sourceLayer;
|
||||
}
|
||||
|
||||
// Filter
|
||||
|
||||
void <%- camelize(type) %>Layer::setFilter(const Filter& filter) {
|
||||
impl->filter = filter;
|
||||
}
|
||||
|
||||
const Filter& <%- camelize(type) %>Layer::getFilter() const {
|
||||
return impl->filter;
|
||||
}
|
||||
<% } -%>
|
||||
|
||||
// Layout properties
|
||||
|
||||
@@ -37,6 +37,16 @@ const std::string& CircleLayer::getSourceLayer() const {
|
||||
return impl->sourceLayer;
|
||||
}
|
||||
|
||||
// Filter
|
||||
|
||||
void CircleLayer::setFilter(const Filter& filter) {
|
||||
impl->filter = filter;
|
||||
}
|
||||
|
||||
const Filter& CircleLayer::getFilter() const {
|
||||
return impl->filter;
|
||||
}
|
||||
|
||||
// Layout properties
|
||||
|
||||
|
||||
|
||||
@@ -37,6 +37,16 @@ const std::string& FillLayer::getSourceLayer() const {
|
||||
return impl->sourceLayer;
|
||||
}
|
||||
|
||||
// Filter
|
||||
|
||||
void FillLayer::setFilter(const Filter& filter) {
|
||||
impl->filter = filter;
|
||||
}
|
||||
|
||||
const Filter& FillLayer::getFilter() const {
|
||||
return impl->filter;
|
||||
}
|
||||
|
||||
// Layout properties
|
||||
|
||||
|
||||
|
||||
@@ -37,6 +37,16 @@ const std::string& LineLayer::getSourceLayer() const {
|
||||
return impl->sourceLayer;
|
||||
}
|
||||
|
||||
// Filter
|
||||
|
||||
void LineLayer::setFilter(const Filter& filter) {
|
||||
impl->filter = filter;
|
||||
}
|
||||
|
||||
const Filter& LineLayer::getFilter() const {
|
||||
return impl->filter;
|
||||
}
|
||||
|
||||
// Layout properties
|
||||
|
||||
PropertyValue<LineCapType> LineLayer::getLineCap() const {
|
||||
|
||||
@@ -37,6 +37,16 @@ const std::string& SymbolLayer::getSourceLayer() const {
|
||||
return impl->sourceLayer;
|
||||
}
|
||||
|
||||
// Filter
|
||||
|
||||
void SymbolLayer::setFilter(const Filter& filter) {
|
||||
impl->filter = filter;
|
||||
}
|
||||
|
||||
const Filter& SymbolLayer::getFilter() const {
|
||||
return impl->filter;
|
||||
}
|
||||
|
||||
// Layout properties
|
||||
|
||||
PropertyValue<SymbolPlacementType> SymbolLayer::getSymbolPlacement() const {
|
||||
|
||||
Reference in New Issue
Block a user