cesium
Version:
Cesium is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.
22 lines (19 loc) • 652 B
JavaScript
/*global define*/
define([
'../Core/defined',
'../Core/Ellipsoid',
'../Core/PolygonOutlineGeometry'
], function(
defined,
Ellipsoid,
PolygonOutlineGeometry) {
'use strict';
function createPolygonOutlineGeometry(polygonGeometry, offset) {
if (defined(offset)) {
polygonGeometry = PolygonOutlineGeometry.unpack(polygonGeometry, offset);
}
polygonGeometry._ellipsoid = Ellipsoid.clone(polygonGeometry._ellipsoid);
return PolygonOutlineGeometry.createGeometry(polygonGeometry);
}
return createPolygonOutlineGeometry;
});