Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created September 3, 2018 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/c78f42d5304cc952d37cbdbfbfb11e88 to your computer and use it in GitHub Desktop.
Save fitomad/c78f42d5304cc952d37cbdbfbfb11e88 to your computer and use it in GitHub Desktop.
function austriasAnnotationSelected(event)
{
// 1
let coordinate = new mapkit.Coordinate(this.spatial.latitude, this.spatial.longitude);
// 2
map.setCenterAnimated(coordinate, true);
// 3
element("information").style.visibility = "visible";
element("venueTitle").innerHTML = this.title;
element("venueDescription").innerHTML = this.description;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment