summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java34
1 files changed, 2 insertions, 32 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java
index 0cbbc17d98..fbdc52f9e2 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/SymbolLayer.java
@@ -387,41 +387,11 @@ public class SymbolLayer extends Layer {
/**
* Get the TextField property
*
- * @return property wrapper value around String
- */
- @NonNull
- @SuppressWarnings("unchecked")
- public PropertyValue<String> getTextField() {
- checkThread();
-
- PropertyValue propertyValue = new PropertyValue<>("text-field", nativeGetTextField());
- if (propertyValue.isExpression()) {
- return (PropertyValue<String>) propertyValue;
- } else {
- String text = null;
-
- Formatted formatted = (Formatted) nativeGetTextField();
- if (formatted != null) {
- StringBuilder builder = new StringBuilder();
- for (FormattedSection section : formatted.getFormattedSections()) {
- builder.append(section.getText());
- }
- text = builder.toString();
- }
-
- return (PropertyValue<String>) new PropertyValue("text-field", text);
- }
- }
-
- /**
- * Get the TextField property as {@link Formatted} object
- *
- * @return property wrapper value around String
- * @see Expression#format(Expression.FormatEntry...)
+ * @return property wrapper value around Formatted
*/
@NonNull
@SuppressWarnings("unchecked")
- public PropertyValue<Formatted> getFormattedTextField() {
+ public PropertyValue<Formatted> getTextField() {
checkThread();
return (PropertyValue<Formatted>) new PropertyValue("text-field", nativeGetTextField());
}