GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Registers several basemap definitions at once, keyed by basemap id.

      A convenience wrapper over registerBaseLayer — this is the call the profile loader makes with the whole basemaps block of a profile.

      ⚠️ Not transactional: entries are registered in iteration order, and one malformed definition does not roll back those already accepted. A non-object argument logs a warning and registers nothing.

      Parameters

      Returns void

      registerBaseLayers({
      street: {
      type: "raster",
      name: "Plan",
      url: "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
      attribution: "© OpenStreetMap",
      },
      satellite: { type: "raster", name: "Satellite", url: "https://…/{z}/{x}/{y}.jpg" },
      });