Skip to main content

@mapcairn/core/contracts

The @mapcairn/core/contracts entry point of @mapcairn/core.

Checked against version 0.2.0. Import from @mapcairn/core/contracts.

Functions​

Constants​

  • CONTRACT_AREA: The area every query in the contract asks about: a box around Cape Town.
  • CONTRACT_IDENTIFY_LAYER: A raster tile layer whose identify block asks its own origin, with the geojson decoder and an id and a title field.
  • CONTRACT_LAYER: The feed layer every layer source is checked with: the geojson decoder, an id and a title field, and an on-demand detail on its own origin.
  • CONTRACT_OTHER_IDENTIFY_LAYER: A second identifiable layer on a different URL, so the contract can hold one layer's answer while another layer is answered.
  • CONTRACT_SELECTION_LIMIT: The limit the contract asks FeatureSelectionSubject factories for.
  • DATA_SERVICE_NAMES: The Services entries that are plain data a host supplies, not ports: they have one shape and no second implementation, so they have no fake and no contract…
  • HOST_SUPPLIED_PORT_NAMES: The optional ports that createServices() leaves out, because the data they hold belongs to the host that supplies them and an inert one would be dead code in…
  • OPTIONAL_PORT_NAMES: The ports a host may leave out.
  • PORT_NAMES: Every key of Services, kept by hand.
  • PORT_REGISTRY: Maps every port to its fake and its contract suite.

Types​