Skip to content

Instantly share code, notes, and snippets.

@gavinr
Created July 1, 2022 18:34
Show Gist options
  • Save gavinr/c934c9c66f584ee4dd1e312645201857 to your computer and use it in GitHub Desktop.
Save gavinr/c934c9c66f584ee4dd1e312645201857 to your computer and use it in GitHub Desktop.
for esri blog
view.watch("center", (center) => {
const { latitude, longitude } = center;
centerText = `Center: Lat: ${latitude.toFixed(4)} | Lon: ${longitude.toFixed(4)}`;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment