Call setCoordinates on the point instance
This commit is contained in:
+2
-2
@@ -364,7 +364,7 @@ class Graticule {
|
|||||||
const coordinate = [flatCoordinates[0], lat];
|
const coordinate = [flatCoordinates[0], lat];
|
||||||
let point;
|
let point;
|
||||||
if (index in this.meridiansLabels_) {
|
if (index in this.meridiansLabels_) {
|
||||||
point = this.meridiansLabels_[index];
|
point = this.meridiansLabels_[index].geom;
|
||||||
point.setCoordinates(coordinate);
|
point.setCoordinates(coordinate);
|
||||||
} else {
|
} else {
|
||||||
point = new Point(coordinate);
|
point = new Point(coordinate);
|
||||||
@@ -414,7 +414,7 @@ class Graticule {
|
|||||||
const coordinate = [lon, flatCoordinates[1]];
|
const coordinate = [lon, flatCoordinates[1]];
|
||||||
let point;
|
let point;
|
||||||
if (index in this.parallelsLabels_) {
|
if (index in this.parallelsLabels_) {
|
||||||
point = this.parallelsLabels_[index];
|
point = this.parallelsLabels_[index].geom;
|
||||||
point.setCoordinates(coordinate);
|
point.setCoordinates(coordinate);
|
||||||
} else {
|
} else {
|
||||||
point = new Point(coordinate);
|
point = new Point(coordinate);
|
||||||
|
|||||||
Reference in New Issue
Block a user