use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.
the class GeometryStyleRenderer method toMap.
@Override
public MapEx toMap() {
final MapEx map = super.toMap();
if (this.style != null) {
final Map<String, Object> styleMap = this.style.toMap();
map.putAll(styleMap);
}
return map;
}
use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.
the class MarkerStyle method toMap.
@Override
public MapEx toMap() {
final boolean geometryStyle = this instanceof GeometryStyle;
final MapEx map = new LinkedHashMapEx();
for (final String name : PROPERTY_NAMES) {
if (geometryStyle || name.startsWith("marker")) {
final Object value = Property.get(this, name);
boolean defaultEqual = false;
if (DEFAULT_VALUES.containsKey(name)) {
final Object defaultValue = DEFAULT_VALUES.get(name);
defaultEqual = DataType.equal(defaultValue, value);
}
if (!defaultEqual) {
addToMap(map, name, value);
}
}
}
return map;
}
use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.
the class WebMercatorTileCacheLayer method toMap.
@Override
public MapEx toMap() {
final MapEx map = super.toMap();
map.put("type", "openStreetMap");
addToMap(map, "url", this.url);
return map;
}
use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.
the class GridLayerRenderer method toMap.
@Override
public MapEx toMap() {
final MapEx map = super.toMap();
addToMap(map, "geometryStyle", this.geometryStyle);
addToMap(map, "textStyle", this.textStyle);
return map;
}
use of com.revolsys.collection.map.MapEx in project com.revolsys.open by revolsys.
the class GeoreferencedImageLayer method toMap.
@Override
public MapEx toMap() {
final MapEx map = super.toMap();
map.remove("querySupported");
map.remove("selectSupported");
map.remove("editable");
map.remove("showOriginalImage");
map.remove("imageSettings");
addToMap(map, "url", this.url);
addToMap(map, "opacity", this.opacity, 1);
return map;
}
Aggregations