toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (center != null) {
buffer.writeAll(['"center":', jsonEncode(center), ','], '');
}
if (fitToGeometry != null) {
buffer.writeAll(['"fitToGeometry":', jsonEncode(fitToGeometry), ','], '');
}
if (insetOptions != null) {
buffer.writeAll(['"insetOptions":', insetOptions?.toJSON(), ','], '');
}
if (insets != null) {
buffer.writeAll(['"insets":', insets?.toJSON(), ','], '');
}
if (maxZoom != null) {
buffer.writeAll(['"maxZoom":', maxZoom, ','], '');
}
if (padding != null) {
buffer.write('"padding":[');
for (var item in padding!) {
buffer.writeAll([jsonEncode(item), ','], '');
}
buffer.write('],');
}
if (projection != null) {
buffer.writeAll(['"projection":', projection?.toJSON(), ','], '');
}
if (zoom != null) {
buffer.writeAll(['"zoom":', zoom, ','], '');
}
}