Skip to content

Main content

Weather Map Source Code

Browse the implementation files for Weather Map.
tool.ts typescript
import WeatherMap from './WeatherMap.svelte';
import { mapNavigation } from '../navigation';

export const Tool: TypeTool = {
	name: 'Weather Map',
	slug: 'map/weather',
	parentSlug: 'map',
	intro:
		'Select any location on a map to inspect its current temperature, conditions, wind, and precipitation.',
	tool: () => '',
	i: [],
	o: [
		{
			label: 'Weather map',
			placeholder: 'Weather map',
			render: 'custom',
			renderas: WeatherMap,
			type: 'text'
		}
	],
	subnav: mapNavigation,
	alternative: [{ title: 'Weather forecast', url: '/weather' }],
	cite: [
		{
			title: 'Open-Meteo Weather Forecast API',
			url: 'https://open-meteo.com/en/docs'
		},
		{
			title: 'Open-Meteo data license',
			url: 'https://open-meteo.com/en/licence'
		},
		{
			title: 'MapLibre GL JS',
			url: 'https://maplibre.org/maplibre-gl-js/docs/'
		},
		{ title: 'OpenFreeMap', url: 'https://openfreemap.org/' },
		{
			title: 'OpenStreetMap contributors',
			url: 'https://www.openstreetmap.org/copyright'
		}
	]
};

export default Tool;

Description

Browse the implementation files for Weather Map.

References

  1. Tool.io on GitHub
  2. Tool.io TypeScript tools library

Similar or alternative tools