rmancao/leaflet-openweather ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple browser app with a Leaflet map and a few city markers. When I click a marker, it should call OpenWeather and show the current weather for that place, including temperature, description, humidity, wind speed, and a small weather icon.
I want the page to have a place where I can paste my OpenWeather API key, and then see the weather in both a popup on the map and an info area on the page. Please include basic loading and error messages too, so it feels polished when the request is still running or fails.
Keep it clean and safe, use the weather data directly from the API response, and don’t inject unsafe text into the page. If it helps, you can add simple caching so clicking the same city again does not keep reloading the same data right away. Look up the current Leaflet and OpenWeather docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit