Control library · ships as a module
One map control, any renderer
Write a map once as geographic data. Swap Google Maps for OpenStreetMap or Apple Maps by installing a different renderer — the content never changes.
What this package is
Maps is the contract, not a map. It carries MapControl and the four records it composes β MapOptions, LatLng, MapMarker, MapCircle β so a layout area can describe a map without naming a provider.
π¨ It ships NO renderer
Installing Maps alone gives you a control nobody draws. Pair it with exactly one renderer view pack:
| Renderer | Package | Needs a key? |
|---|---|---|
| OpenStreetMap / Leaflet | OpenStreetMap |
no |
| Google Maps | GoogleMaps |
yes β GoogleMaps:ApiKey |
| Apple MapKit JS | AppleMaps |
yes β a MapKit token |
A deployment that installs two renderers has two things claiming the same control; install one.