Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 1
let coordinate = new mapkit.Coordinate(venue.spatial.latitude, venue.spatial.longitude);
// 2
let options = {
url : {
1 : "images/venues/" + venue.id + "@1x.png",
2 : "images/venues/" + venue.id + "@2x.png",
3 : "images/venues/" + venue.id + "@3x.png"
},
size : {
width : 50,
height : 50
},
accessibilityLabel : venue.title
};
// 3
var annotation = new mapkit.ImageAnnotation(coordinate, options);
// Clustering setup
annotation.clusteringIdentifier = "AustriasCollectionCluster";
annotation.collisionMode = mapkit.Annotation.CollisionMode.Circle;
annotation.displayPriority = mapkit.Annotation.DisplayPriority.High;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment