airport-one-widgets 0.4.41 → 0.4.42
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 +6 -6
- package/dist/airport-one-widgets.iife.js +21 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -343,15 +343,15 @@ Demo: `/demo/destination-catalog.html` (`npm run dev`) renders sample ATW data t
|
|
|
343
343
|
|
|
344
344
|
## Branded Route Map
|
|
345
345
|
|
|
346
|
-
`fma-route-map
|
|
346
|
+
`fma-branded-route-map` (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}/branded-route-map`: 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
|
-
<fma-route-map
|
|
349
|
+
<fma-branded-route-map
|
|
350
350
|
data-widget-instance-id="YOUR-INSTANCE-ID"
|
|
351
|
-
></fma-route-map
|
|
351
|
+
></fma-branded-route-map>
|
|
352
352
|
```
|
|
353
353
|
|
|
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
|
|
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/branded-route-map/{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
|
|
|
@@ -372,9 +372,9 @@ Attributes (each overrides the saved instance):
|
|
|
372
372
|
|
|
373
373
|
Below 560 px of container width the city card becomes a bottom sheet, labels hide until zoomed in, and an A–Z list of cities appears under the map. Segment events (under `consent-analytics`): `map_view`, `map_route_click`, `map_filter`, `map_zoom`, `map_view_switch`, plus the shared `Widget V2 Mount` / `Widget V2 Public Config`.
|
|
374
374
|
|
|
375
|
-
CSS parts: `route-map-
|
|
375
|
+
CSS parts: `branded-route-map-container`, `branded-route-map-header`, `branded-route-map-filters`, `branded-route-map-map`, `branded-route-map-legend`, `branded-route-map-city-card`, `branded-route-map-destination-list` and `branded-route-map-footer`.
|
|
376
376
|
|
|
377
|
-
Demo: `/demo/route-map
|
|
377
|
+
Demo: `/demo/branded-route-map.html` (`npm run dev`) renders sample ATW, CID, SDF and SFB data from the mockup, plus SMF (insets) and CVG and SJC (edge markers on North America, routes to Europe and Asia on the world view), with controls for every setting, placement width and page background. The dev server serves the geometry layers itself under `/demo-geo`.
|
|
378
378
|
|
|
379
379
|
## Carfare Search
|
|
380
380
|
|