Maps

Show maps in the app

FlutterMap(
          mapController: mapController,
          options: MapOptions(
            center: LatLng(51.509364, -0.128928),
            zoom: 9.2,
          ),
          children: [
            TileLayer(
              urlTemplate:
                  'http://a.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',
              userAgentPackageName: 'com.example.app',
            ),
          ],
        ),

These are a list of URLs that can be used as the urlTemplate property in the MapTileLayer widget to display different types of maps.

These URLs can be used to display maps from various sources, including Bing, Esri, Google, OpenStreetMap, and Thunderforest. Each one provides a different style of map, such as satellite, terrain, or street map.

It's important to note that when using these URLs, you should check the licenses associated with each map provider and make sure you are in compliance with their terms of use. These URLs have been sourced from various websites such as "https://mappinggis.com/2018/03/como-anadir-mapas-base-en-qgis-3-0-openstreetmap-google-carto-stamen" and "https://sites.google.com/a/blocoware.com/speedohelp/home/map-sources" and it is recommended to verify the information with the official sources.

Last updated