跳转到主要内容

map_info_content

Description

定义地图视图中信息窗口内显示的内容

map_info_content: (event: any) => void

Parameters

  • event - (required) object - 事件对象

Example

scheduler.templates.map_info_content = function(event){
const formatDate = scheduler.templates.tooltip_date_format;
return `<div><b>Event's text:</b> ${event.text}
<div><b>Location:</b> ${event.event_location}</div>
<div><b>Starts:</b> ${formatDate(event.start_date)}</div>
<div><b>Ends:</b> ${formatDate(event.end_date)}</div>
</div>`;
};

Details

该模板设置在地图视图中点击事件标记时弹出的 InfoWindow 窗口的内容。

它取代了旧版本 Scheduler 7.1 中移除的 scheduler.templates.marker_textscheduler.templates.marker_date 模板。

Change log

  • v7.1 版本新增
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.