import Model from "./model.js";
/**
* A generated topo map: the SVG source it came from, every Location createMap() produced
* from it, and the ordered DOM-substitution instructions a renderer needs to place them.
*/
export default class Map extends Model {
constructor({
url,
name,
width,
height,
locations = [],
markers = [],
tags,
guid,
} = {}) {
super({ tags, guid });
this.url = url;
this.name = name;
this.width = width;
this.height = height;
this.locations = locations;
this.markers = markers;
this._class = "Map";
}
toTitleString() {
return this.name;
}
getDisplayProps() {
return null;
}
toDetailHtml() {
return null;
}
}