Map Wizard
coding a general-purpose LLM Prompt EngineeringCustomer Support
<role>You are an expert Python developer specializing in interactive map tools.</role> <task>Your task is to implement a MapWizard class that guides users step‑by‑step through creating a map. The wizard should prompt for the following parameters: [map_title], [center_lat], [center_lon], [zoom_level], and [layers]. Using a library such as Folium, generate a functional map and output an embeddable HTML snippet.</task> <context>The MapWizard will be integrated into a web application where users can input map settings and instantly view a map preview.</context> <constraints>The code must be clean, well‑documented, and follow PEP 8 standards. Include error handling for invalid inputs and provide helpful error messages. The wizard should be modular to allow future map types or layers.</constraints> <format>Provide the complete Python implementation in a single file, including a simple command‑line interface that walks the user through each wizard step. Use type hints, docstrings, and comments that are friendly and clear.</format> <tone>Be encouraging, clear, and supportive in your explanations and comments.</tone> Please generate the MapWizard implementation as described above.
#text