Track widget in 4.19 broken

464
3
Jump to solution
04-22-2021 05:19 AM
ChristopheSuter
New Contributor III

The track and locate widget seem to be broken at 4.19. in other spatial references.

Sample code below ...

https://codepen.io/christophesuter/pen/gOgQyvo?editors=1000

 

0 Kudos
1 Solution

Accepted Solutions
AnneFitz
Esri Contributor

We're working on this for version 4.20. Here's a temporary fix in the meantime: https://codepen.io/annefitz/pen/jOyXOzL?editors=1010

require(["esri/tasks/support/ProjectParameters"], function(ProjectParameters) {        
  Object.defineProperty(ProjectParameters.prototype, "outSR", {
    set(value) {
      this.outSpatialReference = value;
    },
  });
});

 

View solution in original post

3 Replies
AnneFitz
Esri Contributor

Thank you for reporting! We'll take a look.

AnneFitz
Esri Contributor

We're working on this for version 4.20. Here's a temporary fix in the meantime: https://codepen.io/annefitz/pen/jOyXOzL?editors=1010

require(["esri/tasks/support/ProjectParameters"], function(ProjectParameters) {        
  Object.defineProperty(ProjectParameters.prototype, "outSR", {
    set(value) {
      this.outSpatialReference = value;
    },
  });
});

 

ChristopheSuter
New Contributor III

Works ! Thanks..

0 Kudos