Convert Map & Lightbox to vue components
This commit is contained in:
@@ -71,11 +71,7 @@
|
||||
relatedMarker() {
|
||||
//Find corresponding marker
|
||||
if(!this.options.longitude && !this.options.latitude && this.options.type == 'media') {
|
||||
return this.project.markers.find((marker) => {
|
||||
return (marker.medias || []).some((media) => {
|
||||
return media.id_media == this.options.id_media;
|
||||
});
|
||||
}) || null;
|
||||
return this.map.findMarkerByMediaId(this.options.id_media);
|
||||
}
|
||||
else if(
|
||||
['message', 'media'].includes(this.options.type)
|
||||
|
||||
Reference in New Issue
Block a user