Search in sources :

Example 51 with MapEx

use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.

the class GriddedElevationModelLayer method toMap.

@Override
public MapEx toMap() {
    final MapEx map = super.toMap();
    map.remove("querySupported");
    map.remove("selectSupported");
    map.remove("editable");
    map.remove("readOnly");
    addToMap(map, "url", this.url);
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx)

Example 52 with MapEx

use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.

the class TiledMultipleGriddedElevationModelLayerRenderer method toMap.

@Override
public MapEx toMap() {
    final MapEx map = super.toMap();
    final List<RasterizerGriddedElevationModelLayerRenderer> renderers = getRenderers();
    if (!renderers.isEmpty()) {
        final List<Map<String, Object>> rendererMaps = new ArrayList<>();
        for (final RasterizerGriddedElevationModelLayerRenderer renderer : renderers) {
            rendererMaps.add(renderer.toMap());
        }
        addToMap(map, "styles", rendererMaps);
    }
    addToMap(map, "minZ", this.minZ);
    addToMap(map, "maxZ", this.maxZ);
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx) ArrayList(java.util.ArrayList) Map(java.util.Map)

Example 53 with MapEx

use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.

the class BoundingBoxRecordLayer method toMap.

@Override
public MapEx toMap() {
    final MapEx map = super.toMap();
    map.remove("style");
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx)

Example 54 with MapEx

use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.

the class FileRecordLayer method toMap.

@Override
public MapEx toMap() {
    final MapEx map = super.toMap();
    addToMap(map, "url", this.url);
    return map;
}
Also used : MapEx(com.revolsys.collection.map.MapEx)

Example 55 with MapEx

use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.

the class RecordDefinitionSqlFilter method toMap.

@Override
public MapEx toMap() {
    final MapEx map = new LinkedHashMapEx();
    addTypeToMap(map, "sqlFilter");
    map.put("query", this.query);
    return map;
}
Also used : LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx) MapEx(com.revolsys.collection.map.MapEx) LinkedHashMapEx(com.revolsys.collection.map.LinkedHashMapEx)

Aggregations

MapEx (com.revolsys.collection.map.MapEx)144 LinkedHashMapEx (com.revolsys.collection.map.LinkedHashMapEx)48 ArrayList (java.util.ArrayList)17 Resource (com.revolsys.spring.resource.Resource)9 GeometryFactory (com.revolsys.geometry.model.GeometryFactory)7 Map (java.util.Map)7 HashMap (java.util.HashMap)6 PathName (com.revolsys.io.PathName)5 UrlResource (com.revolsys.spring.resource.UrlResource)5 DataType (com.revolsys.datatype.DataType)4 FieldDefinition (com.revolsys.record.schema.FieldDefinition)4 PathResource (com.revolsys.spring.resource.PathResource)4 Color (java.awt.Color)4 LinkedHashMap (java.util.LinkedHashMap)4 List (java.util.List)4 TreeMap (java.util.TreeMap)4 NamedLinkedHashMapEx (com.revolsys.collection.map.NamedLinkedHashMapEx)3 Geometry (com.revolsys.geometry.model.Geometry)3 LineString (com.revolsys.geometry.model.LineString)3 Record (com.revolsys.record.Record)3