Merge pull request #5732 from fredj/cleanup

Add missing curly braces in type annotations
This commit is contained in:
Frédéric Junod
2016-08-15 17:16:53 +02:00
committed by GitHub

View File

@@ -254,9 +254,9 @@ ol.format.EsriJSON.readPolygonGeometry_ = function(object) {
* @return {EsriJSONGeometry} EsriJSON geometry.
*/
ol.format.EsriJSON.writePointGeometry_ = function(geometry, opt_options) {
var coordinates = /** @type ol.geom.Point */ (geometry).getCoordinates();
var coordinates = /** @type {ol.geom.Point} */ (geometry).getCoordinates();
var esriJSON;
var layout = /** @type ol.geom.Point */ (geometry).getLayout();
var layout = /** @type {ol.geom.Point} */ (geometry).getLayout();
if (layout === ol.geom.GeometryLayout.XYZ) {
esriJSON = /** @type {EsriJSONPoint} */ ({
x: coordinates[0],