MapController.cyclOSMLayer constructor

MapController.cyclOSMLayer({
  1. UserTrackingOption? initMapWithUserPosition,
  2. GeoPoint? initPosition,
  3. BoundingBox? areaLimit = const BoundingBox.world(),
})

Implementation

MapController.cyclOSMLayer({
  super.initMapWithUserPosition,
  super.initPosition,
  super.areaLimit = const BoundingBox.world(),
})  : assert(
        (initMapWithUserPosition != null) || initPosition != null,
      ),
      super(
        customTile: CustomTile(
          urlsServers: [
            TileURLs(
              url: "https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/",
              subdomains: [
                "a",
                "b",
                "c",
              ],
            ),
          ],
          tileExtension: ".png",
          sourceName: "cycleMapnik",
          tileSize: 256,
        ),
      );