NeshanMapConfig constructor
const
NeshanMapConfig({})
Creates a viewport/style configuration for a NeshanMap.
initialCenter — Initial center coordinate (default: Tehran, Iran).
initialZoom — Initial zoom level (default: 12.0).
mapType — Map style to display (default: NeshanMapType.neshanVector).
minZoom — Minimum allowed zoom level (default: 2.0).
maxZoom — Maximum allowed zoom level (default: 21.0).
showPoi — Whether to render points of interest (default: true).
showTraffic — Whether to render the traffic layer (default: false).
showCurrentLocationButton — Whether to show the current-location FAB
(default: true).
Implementation
const NeshanMapConfig({
this.initialCenter = const LatLng(35.6892, 51.3890),
this.initialZoom = 12.0,
this.mapType = NeshanMapType.neshanVector,
this.minZoom = 2.0,
this.maxZoom = 21.0,
this.showPoi = true,
this.showTraffic = false,
this.showCurrentLocationButton = true,
});