Optional
properties: any// base usage
let point = toPoint(120, 30);
// override properties
// all properties are optional(可以不传)
let point = toPoint(120, 30, { name: 'test' });
let point = toPoint([120, 30], { name: 'test' });
// lon, lat = X, Y = lng, lat = x, y
let point = toPoint({lon: 120, lat: 30}, { name: 'test' });
Optional
properties: anyOptional
properties: anyGenerated using TypeDoc
the factory function to create a Point(the following ways are equivalent)