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

The following examples show how to use com.mapbox.mapboxsdk.style.layers.PropertyValue#isValue() . 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 getTextField(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.textField(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.textField((String) 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 getFillOutlineColor(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.fillOutlineColor(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.fillOutlineColor(pv.getColorInt());
    }
    return null;
}
 
Example 3
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 4
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 5
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 6
Source File: AirMapFillLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getFillTranslate(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.fillTranslate(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.fillTranslate((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 getTextPadding(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.textPadding(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.textPadding((Float) pv.getValue());
    }
    return null;
}
 
Example 8
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 9
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 10
Source File: AirMapLineLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getLinePattern(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.linePattern(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.linePattern((String) pv.getValue());
    }
    return null;
}
 
Example 11
Source File: AirMapLineLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getLineOpacity(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.lineOpacity(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.lineOpacity((Float) 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 getIconOffset(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.iconOffset(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.iconOffset((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 getIconOpacity(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.iconOpacity(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.iconOpacity((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 getLineTranslate(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.lineTranslate(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.lineTranslate((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 getIconPadding(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.iconPadding(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.iconPadding((Float) 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 getAvoidEdges(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.symbolAvoidEdges(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.symbolAvoidEdges((Boolean) 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 getIconImage(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.iconImage(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.iconImage((String) pv.getValue());
    }
    return null;
}
 
Example 18
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 19
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getIconAllowOverlap(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.iconAllowOverlap(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.iconAllowOverlap((Boolean) pv.getValue());
    }
    return null;
}
 
Example 20
Source File: AirMapSymbolLayerStyle.java    From AirMapSDK-Android with Apache License 2.0 5 votes vote down vote up
private PropertyValue getSymbolSpacing(PropertyValue pv) {
    if (pv.isExpression()) {
        return PropertyFactory.symbolSpacing(pv.getExpression());
    } else if (pv.isValue()) {
        return PropertyFactory.symbolSpacing((Float) pv.getValue());
    }
    return null;
}