Skip to content

Commit

Permalink
Update style spec links (#2383)
Browse files Browse the repository at this point in the history
  • Loading branch information
wipfli authored Apr 12, 2023
1 parent 9f713cd commit e50a264
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion src/source/geojson_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export type SetClusterOptions = {

/**
* A source containing GeoJSON.
* (See the [Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-geojson) for detailed documentation of options.)
* (See the [Style Specification](https://maplibre.org/maplibre-style-spec/#sources-geojson) for detailed documentation of options.)
*
* @example
* map.addSource('some id', {
Expand Down
2 changes: 1 addition & 1 deletion src/source/image_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type Coordinates = [[number, number], [number, number], [number, number],

/**
* A data source containing an image.
* (See the [Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-image) for detailed documentation of options.)
* (See the [Style Specification](https://maplibre.org/maplibre-style-spec/#sources-image) for detailed documentation of options.)
*
* @example
* // add to map
Expand Down
2 changes: 1 addition & 1 deletion src/source/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const sourceTypes = {
*
* @param id
* @param {Object} source A source definition object compliant with
* [`maplibre-gl-style-spec`](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources) or, for a third-party source type,
* [`maplibre-gl-style-spec`](https://maplibre.org/maplibre-style-spec/#sources) or, for a third-party source type,
* with that type's requirements.
* @param {Dispatcher} dispatcher
* @returns {Source}
Expand Down
2 changes: 1 addition & 1 deletion src/source/vector_tile_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type {VectorSourceSpecification, PromoteIdSpecification} from '@maplibre/

/**
* A source containing vector tiles in [Mapbox Vector Tile format](https://docs.mapbox.com/vector-tiles/reference/).
* (See the [Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/) for detailed documentation of options.)
* (See the [Style Specification](https://maplibre.org/maplibre-style-spec/) for detailed documentation of options.)
*
* @example
* map.addSource('some id', {
Expand Down
2 changes: 1 addition & 1 deletion src/source/video_source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type {VideoSourceSpecification} from '@maplibre/maplibre-gl-style-spec';

/**
* A data source containing video.
* (See the [Style Specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources-video) for detailed documentation of options.)
* (See the [Style Specification](https://maplibre.org/maplibre-style-spec/#sources-video) for detailed documentation of options.)
*
* @example
* // add to map
Expand Down
4 changes: 2 additions & 2 deletions src/ui/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,13 @@ export type MapLibreZoomEvent = {
* `dataType`s are:
*
* - `'source'`: The non-tile data associated with any source
* - `'style'`: The [style](https://maplibre.org/maplibre-gl-js-docs/style-spec/) used by the map
* - `'style'`: The [style](https://maplibre.org/maplibre-style-spec/) used by the map
*
* @typedef {Object} MapDataEvent
* @property {string} type The event type.
* @property {string} dataType The type of data that has changed. One of `'source'`, `'style'`.
* @property {boolean} [isSourceLoaded] True if the event has a `dataType` of `source` and the source has no outstanding network requests.
* @property {Object} [source] The [style spec representation of the source](https://maplibre.org/maplibre-gl-js-docs/style-spec/#sources) if the event has a `dataType` of `source`.
* @property {Object} [source] The [style spec representation of the source](https://maplibre.org/maplibre-style-spec/#sources) if the event has a `dataType` of `source`.
* @property {string} [sourceDataType] Included if the event has a `dataType` of `source` and the event signals
* that internal data has been received or changed. Possible values are `metadata`, `content` and `visibility`.
* @property {Object} [tile] The tile being loaded or changed, if the event has a `dataType` of `source` and
Expand Down
72 changes: 36 additions & 36 deletions src/ui/map.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ These integration tests verify the correctness and consistency of [maplibre-gl-j

## Organization

Tests are contained in a directory tree, generally organized by [style specification](https://maplibre.org/maplibre-gl-js-docs/style-spec/)
Tests are contained in a directory tree, generally organized by [style specification](https://maplibre.org/maplibre-style-spec/)
property: `background-color`, `line-width`, etc., with a second level of directories below that for individual tests. For example, the test for specifying a literal `circle-radius` value lives in [`test/integration/render/tests/circle-radius/literal/`](./render/tests/circle-radius/literal).

Within a leaf directory is a `style.json` file (e.g. [`circle-radius/literal/style.json`](./render/tests/circle-radius/literal/style.json)), which contains the minimal style needed for the given test case. The style can specify the map size, center, bearing, and pitch, and additional test metadata (e.g. output image dimensions).
Expand Down

0 comments on commit e50a264

Please sign in to comment.