/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ol3cesium.client.ol.layer;

/**
 * Render mode for vector tiles
 * 'image': Vector tiles are rendered as images. Great performance, but point 
 * symbols and texts are always rotated with the view and pixels are scaled during zoom animations.
 * 'hybrid': Polygon and line elements are rendered as images, so pixels are scaled during zoom animations. 
 * Point symbols and texts are accurately rendered as vectors and can stay upright on rotated views.
 * 'vector': Vector tiles are rendered as vectors. Most accurate rendering even during animations, 
 * but slower performance than the other options.
 * @author iserge
 */
public enum VectorTileLayerRenderType {
    IMAGE("image"), HYBRID("hybrid"), VECTOR("vector"), UNKNOWN("unknown");
    public final String _value;
    
    private VectorTileLayerRenderType(String value) {
        _value = value;
    }
    
    public static VectorTileLayerRenderType fromString(String string) {
        if (IMAGE.toString().equalsIgnoreCase(string)) {
            return IMAGE;
        }
        else if (HYBRID.toString().equalsIgnoreCase(string)) {
            return HYBRID;
        }
        else if (VECTOR.toString().equalsIgnoreCase(string)) {
            return VECTOR;
        } else {
            return UNKNOWN;
        }
    }
    
    @Override
    public String toString() {
        return _value;
    }
}
Add vector render type with OpenLayers 3.16.0
Add vector render type with OpenLayers 3.16.0