Java Code Examples for com.mapbox.mapboxsdk.style.layers.PropertyValue#isExpression()

The following examples show how to use com.mapbox.mapboxsdk.style.layers.PropertyValue#isExpression() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getIconOffset(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.iconOffset(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.iconOffset((Float[]) pv.getValue());
    }
    return null;
}
 
Example 2
Source File: AirMapFillLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getFillAntialias(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.fillAntialias(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.fillAntialias((Boolean) pv.getValue());
    }
    return null;
}
 
Example 3
Source File: AirMapFillLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getFillOpacity(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.fillOpacity(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.fillOpacity((Float) pv.getValue());
    }
    return null;
}
 
Example 4
Source File: AirMapFillLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getFillColor(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.fillColor(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.fillColor(pv.getColorInt());
    }
    return null;
}
 
Example 5
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getTextOpacity(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.textOpacity(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.textOpacity((Float) pv.getValue());
    }
    return null;
}
 
Example 6
Source File: AirMapLineLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getLineWidth(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.lineWidth(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.lineWidth((Float) pv.getValue());
    }
    return null;
}
 
Example 7
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getTextColor(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.textColor(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.textColor(pv.getColorInt());
    }
    return null;
}
 
Example 8
Source File: AirMapLineLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getLineColor(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.lineColor(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.lineColor(pv.getColorInt());
    }
    return null;
}
 
Example 9
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getTextFont(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.textFont(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.textFont((String[]) pv.getValue());
    }
    return null;
}
 
Example 10
Source File: AirMapFillLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getFillTranslateAnchor(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.fillTranslateAnchor(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.fillTranslateAnchor((String) pv.getValue());
    }
    return null;
}
 
Example 11
Source File: AirMapFillLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getFillPattern(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.fillPattern(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.fillPattern((String) pv.getValue());
    }
    return null;
}
 
Example 12
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getIconOpacity(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.iconOpacity(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.iconOpacity((Float) pv.getValue());
    }
    return null;
}
 
Example 13
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getIconSize(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.iconSize(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.iconSize((Float) pv.getValue());
    }
    return null;
}
 
Example 14
Source File: AirMapLineLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getLineGapWidth(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.lineGapWidth(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.lineGapWidth((Float) pv.getValue());
    }
    return null;
}
 
Example 15
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getAvoidEdges(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.symbolAvoidEdges(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.symbolAvoidEdges((Boolean) pv.getValue());
    }
    return null;
}
 
Example 16
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getIconImage(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.iconImage(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.iconImage((String) pv.getValue());
    }
    return null;
}
 
Example 17
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getIconKeepUpright(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.iconKeepUpright(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.iconKeepUpright((Boolean) pv.getValue());
    }
    return null;
}
 
Example 18
Source File: AirMapLineLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getLineTranslateAnchor(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.lineTranslateAnchor(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.lineTranslateAnchor((String) pv.getValue());
    }
    return null;
}
 
Example 19
Source File: AirMapFillLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getFillOutlineColor(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.fillOutlineColor(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.fillOutlineColor(pv.getColorInt());
    }
    return null;
}
 
Example 20
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getSymbolPlacement(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.symbolPlacement(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.symbolPlacement((String) pv.getValue());
    }
    return null;
}