mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
14 lines
566 B
JavaScript
14 lines
566 B
JavaScript
/**
|
|
* Create a GeoJSON data source instance given an options object
|
|
* @class GeoJSONSource
|
|
* @param {Object} [options] optional options
|
|
* @param {Object|string} options.data A GeoJSON data object or URL to it.
|
|
* The latter is preferable in case of large GeoJSON files.
|
|
* @param {number} [options.maxzoom=14] Maximum zoom to preserve detail at.
|
|
* @param {number} [options.buffer] Tile buffer on each side.
|
|
* @param {number} [options.tolerance] Simplification tolerance (higher means simpler).
|
|
*/
|
|
function GeoJSONSource(options) {
|
|
this.options = options;
|
|
}
|