The map
[madeira_weather_map] shows Madeira in the sea, with its mountains in relief, Pico Ruivo, and Porto Santo in its corner. Each municipality is coloured by its town's weather and has a pin with the town's temperature. A switch on the map shows Temperature, Rain (the chance of rain) or Wind (its speed, with an arrow where it blows); layer="rain" opens on rain. The warmest, sunniest town's pin pulses. [madeira_weather_map map="porto-santo"] shows Porto Santo on its own. The attributes are in Shortcodes.
Choosing a town
Point at a town, tap it, or reach it with Tab: its tooltip shows its weather. With the default clickable="true", choosing a town scrolls to its card on the page and highlights it, when the page has one; if the town has a link (below), it opens the link instead.
On narrow screens the pins show the temperature alone, and the names come back in the tooltips.
Pins, tooltips and links
Under Madeira Weather, Maps, each map has its own settings, with the map itself as a preview:
- Pin size: the pins' text size in pixels.
- Tooltips: on by default. Choose what they show: temperature, feels like, condition, humidity, wind speed and direction, UV index, chance of rain.
- For each town:
- Name on the pin.
- Move the pin right and down, in the map's units; negative values move it left or up. A label moved on the 2.x map keeps that nudge on its pin.
- Link: a page to open when the town is chosen. Open the link in a new tab if you like.
Reset this map puts that map's settings back as the plugin came.
How a region finds its town
Each region of the map is tied to a town by name. If you rename a town under Locations (for example "Funchal" to "Funchal (centre)"), its region keeps the old name and shows no weather. Keep the ten municipality names for the towns the map shows; add other towns under any name, for the cards and the forecast.
Colours
The sea, the land and the map's text come from the look (Looks and the theme editor). On the temperature layer, each municipality takes its town's temperature level colour (Temperature levels).