airport-one-widgets 0.4.40 → 0.4.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -341,9 +341,9 @@ CSS parts: `destination-catalog-container`, `destination-catalog-header`, `desti
341
341
 
342
342
  Demo: `/demo/destination-catalog.html` (`npm run dev`) renders sample ATW data through `previewPayload` with controls for view, shows, pricing, and placement width.
343
343
 
344
- ## Route Map (Marketing)
344
+ ## Branded Route Map
345
345
 
346
- `fma-route-map-marketing` (AIR-1929) is the marketing version of the route map for an airport's own website: a static, branded map of where you can fly nonstop, with no basemap and no runtime map library. Data comes from `GET /v1/widget-instances/{id}/route-map-marketing`: filed nonstops (year-round, seasonal, new), the airport's coming soon list and charter categories from the portal's Managed routes settings, and the top one-stops. Like the route map it renders only for an active instance allowlisted for the embedding site, or from `previewPayload` in the portal builder.
346
+ `fma-route-map-marketing` (AIR-1929) is the branded route map for an airport's own website: a static, branded map of where you can fly nonstop, with no basemap and no runtime map library. Data comes from `GET /v1/widget-instances/{id}/route-map-marketing`: filed nonstops (year-round, seasonal, new) plus the airport's coming soon list and charter categories from the portal's Managed routes settings. Like the route map it renders only for an active instance allowlisted for the embedding site, or from `previewPayload` in the portal builder.
347
347
 
348
348
  ```html
349
349
  <fma-route-map-marketing
@@ -351,10 +351,12 @@ Demo: `/demo/destination-catalog.html` (`npm run dev`) renders sample ATW data t
351
351
  ></fma-route-map-marketing>
352
352
  ```
353
353
 
354
- The US states are inline SVG paths pre-projected to an Albers conic at build time (`scripts/build-route-map-marketing-geo.mjs`), so the map costs no network request. Only when a destination needs them does the widget fetch, once per page, `GET /v1/geo/route-map-marketing/{neighbours|alaska|hawaii|world}`: Canada, Mexico and the Caribbean drawn a step quieter than the US, and Alaska and Hawaii as inset boxes in the bottom-left corner.
354
+ The US states are inline SVG paths pre-projected to an Albers conic at build time (`scripts/build-branded-route-map-geo.mjs`), so the map costs no network request. Only when a destination needs them does the widget fetch, once per page, `GET /v1/geo/route-map-marketing/{neighbours|alaska|hawaii|world}`: Canada, Mexico and the Caribbean drawn a step quieter than the US, and Alaska and Hawaii as inset boxes in the bottom-left corner.
355
355
 
356
356
  On the North America view, destinations beyond the neighbouring countries (Europe, Asia) are edge markers pointing the way the route leaves the map. Those routes, or `initial-view="world"`, also load the `world` layer (about 105 KB gzipped): every country and the US states on an Equal Earth projection centred on the Americas. Once it loads, a North America / World switch beside the filters lets visitors move between the two views, and tapping an edge marker opens that city on the world view. The world view fits every nonstop and never zooms in past about 240° of longitude, so Europe or Asia shows beside North America even for a domestic-only airport. If a layer fails to load, its destinations fall back to edge markers and the switch stays hidden.
357
357
 
358
+ When two or more airlines fly the routes, an Airline button in the filter row opens a panel of them, A–Z with logos. Picking one narrows the map, the legend, the phone list and the group chips to that airline's routes; charters carry no airline, so they show only under All airlines. `map_filter` sends `airline:{code}` or `airline:all`.
359
+
358
360
  Attributes (each overrides the saved instance):
359
361
 
360
362
  | Attribute | Default | Purpose |