kopia lustrzana https://github.com/robhawkes/vizicities
24 wiersze
534 B
JavaScript
Executable File
24 wiersze
534 B
JavaScript
Executable File
import GeoJSONWorkerLayer from './GeoJSONWorkerLayer';
|
|
import extend from 'lodash.assign';
|
|
|
|
class TopoJSONWorkerLayer extends GeoJSONWorkerLayer {
|
|
constructor(topojson, options) {
|
|
var defaults = {
|
|
topojson: true
|
|
};
|
|
|
|
options = extend({}, defaults, options);
|
|
|
|
super(topojson, options);
|
|
}
|
|
}
|
|
|
|
export default TopoJSONWorkerLayer;
|
|
|
|
var noNew = function(topojson, options) {
|
|
return new TopoJSONWorkerLayer(topojson, options);
|
|
};
|
|
|
|
// Initialise without requiring new keyword
|
|
export {noNew as topoJSONWorkerLayer};
|