Skip to Content
APIPlaces LocationsClass: Banner

Class: Banner

Class that represents a banner in MapVX. Contains information about the image, tags, and banner behavior.

Constructors

Constructor

new Banner(rawBanner): Banner;

Creates a new banner instance from API response data

Parameters

rawBanner

BannerResponse

API response data containing banner information

Returns

Banner

Properties

description?

optional description: string;

A description of the banner.

Can contain html tags.


sameLink: boolean

Indicates if the banner should open in the same window or a new one


tags

tags: string[];

List of tags associated with the banner for filtering


url

url: string

URL of the banner image


urlAction

urlAction: string

Action URL to redirect to when clicking on the banner

Last updated on