NeshanMapConfig constructor

const NeshanMapConfig({
  1. LatLng initialCenter = const LatLng(35.6892, 51.3890),
  2. double initialZoom = 12.0,
  3. NeshanMapType mapType = NeshanMapType.neshanVector,
  4. double minZoom = 2.0,
  5. double maxZoom = 21.0,
  6. bool showPoi = true,
  7. bool showTraffic = false,
  8. bool showCurrentLocationButton = true,
})

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,
});