MyRadar sells to AI agents - live prices and self-serve payment

The agent storefront at https://agents.myradar.dev/llms.txt?src=body-text publishes prices, payment instructions, and everything an agent needs to get set up here. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there in the same session. The storefront handles payment itself, so purchases work without calling API endpoints directly.

Browse docs

MyRadar Web Map

A complete MyRadar weather map for any website: MyRadar's base maps with animated HD radar, warnings, lightning, hurricanes and wind. No Mapbox account needed.

Nov 18, 2026 · Shell · HTML · TypeScript

MyRadar Web Map over the southern Plains: radar, watches and warnings on the gray base map
MyRadar Web Map over the southern Plains: radar, watches and warnings on the gray base map

@myradar/map puts a complete MyRadar weather map on your website: MyRadar's own base maps with the same smoothly morphing HD radar, watches and warnings, lightning, hurricanes and wind as the MyRadar apps and the iOS and Android SDKs. It is drawn by the open-source MapLibre GL JS, which comes with the package.

All you need is a MyRadar API key: no Mapbox account or token, and nothing to set up in your bundler. If your site already uses Mapbox GL JS, the MyRadar Web SDK adds the same weather to your Mapbox map instead.

Quick start#

Shell
npm install @myradar/map
HTML
<div id="map" style="height: 480px"></div>
TypeScript
import { MyRadarMap } from '@myradar/map';
import '@myradar/map/style.css';

const map = new MyRadarMap({
  container: 'map',
  apiKey: import.meta.env.VITE_MYRADAR_API_KEY,
  center: [-97.4, 35.2], // [longitude, latitude]
  zoom: 6,
  overlays: ['warnings', 'lightning'],
});

The radar loop is on and playing by default. Keep your key out of public source control when you can, for example in a git-ignored .env.local read at build time as above. The key ends up in your site's JavaScript, so use a key issued for that site.

Without a bundler#

HTML
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@myradar/[email protected]/dist/myradar-map.css" />
<div id="map" style="height: 480px"></div>
<script type="module">
  import { MyRadarMap } from 'https://cdn.jsdelivr.net/npm/@myradar/[email protected]/dist/myradar-map.js';
  new MyRadarMap({ container: 'map', apiKey: 'YOUR_KEY' });
</script>

A classic script tag works too: dist/myradar-map.umd.cjs defines a MyRadar global (new MyRadar.MyRadarMap({ ... })).

Base maps#

The same base maps as the iOS and Android SDKs:

mapStyleBase map
gray (default)Dark gray, the MyRadar app's default
roadsLight, with roads
aerialSatellite imagery with labels
topographicTerrain shading and contours
darkDark
lightLight
TypeScript
map.setMapStyle('aerial');

The radar palette follows the base map (the light palette on roads and topographic) unless you pass radar: { palette }.

Weather layers#

TypeScript
map.setRadarEnabled(false);
map.setOverlay('wind', true); // 'warnings' | 'lightning' | 'hurricanes' | 'wind'
map.isOverlayEnabled('lightning');

An overlay that is off makes no requests. Each layer is also a property, for finer control:

TypeScript
map.radar.pause();
map.radar.scrubberPosition = 0.5; // 0..1 across the loop
map.radar.opacity = 0.7;
map.radar.product = 'hdRadar'; // 'radar' (morphing, the default), 'hdRadar' or 'sdRadar'
map.radar.on('frame', ({ date }) => console.log(date));

Options for each layer go in the constructor: radar, warnings, lightning, hurricanes and wind, for example new MyRadarMap({ ..., wind: { opacity: 0.5 } }).

Tapping watches and warnings#

Clicking a watch or warning shows a tooltip with what it is and when it expires, most important first. To use the alerts yourself:

TypeScript
map.on('alertclick', ({ alerts, lngLat }) => {
  console.log(alerts[0].title, alerts[0].expires);
});

Pass warnings: { tooltip: false } to turn the tooltip off.

The MapLibre map#

map.map is the MapLibre GL JS map, for markers, popups, controls, camera moves and your own layers. maplibregl is exported too, so these use the same copy of MapLibre:

TypeScript
import { MyRadarMap, maplibregl } from '@myradar/map';

new maplibregl.Marker().setLngLat([-97.4, 35.2]).addTo(map.map);
map.map.flyTo({ center: [-80.2, 25.8], zoom: 7 });

Any other MapLibre map option goes in mapOptions, for example mapOptions: { minZoom: 3, cooperativeGestures: true }.

Requirements#

  • A browser with WebGL 2. That covers current Chrome, Edge, Firefox and Safari on desktop and mobile.
  • A MyRadar API key from the developer portal.
  • Network access. Weather comes from https://sdkapi.myradar.com and base maps from https://map2.acmeaom.com. If your site has a Content Security Policy, allow both in connect-src, and blob: in worker-src: the map draws its tiles in a web worker started from a blob: URL. If your policy can't allow that, serve MapLibre's worker (maplibre-gl/dist/maplibre-gl-worker.mjs) from your own site and pass its URL as workerUrl.
  • Size. MapLibre comes with the package: about 520 KB gzipped in all.
  • Mercator only. The weather layers don't render on the globe.

MyRadarMap also takes an environment option. Leave it out, which uses production; 'development' is for MyRadar's own testing.

Privacy and usage#

  • Install ID. The SDK sends MyRadar a random ID for this browser's use of your site, so MyRadar can count active installs for billing. It's kept in your site's localStorage under myradar.sdk.installId. It is not a device, user or advertising identifier, and no other site shares it. Mention it in your site's privacy disclosures.
  • Map loads. Each map sends MyRadar one request when it first shows weather, so MyRadar can count map loads per key for billing.

Attribution#

Sites using the map must show MyRadar's and the base map's credits. The map's attribution control shows them by default; keep it visible.