$map['title'], 'description' => $map['description'], 'created_at' => $map['created_at'] ]; // Generate the template with map metadata $template = generateMapTemplate($mapId, $basemaps, $layers, $features, $initialExtent, $mapMetadata, $filters); // Add Return button to sidebar after layer list $homeButton = '
'; $template = str_replace('