map_resolve_event_location
当事件的坐标尚未存储在数据库中时,启用自动尝试确定事件位置的功能
boolean map_resolve_event_location;
Example
scheduler.config.map_resolve_event_location = false;
...
scheduler.init('scheduler_here',new Date(2013,05,11),"week");
Default value:
true
Details
resolve_event_location 选项也可以在 map_settings 配置对象中设置。
- 启用(true)时,如果事件在数据库中缺少 'lat' 和 'lng' 值,scheduler 会在加载事件时尝试根据 'event_location' 字段确定坐标。如果成功识别位置,坐标将被保存回数据库。如果失败,scheduler 会触发 onLocationError 事件。
- 该设置在迁移过程中尤其有用,但通常不建议在生产环境中使用。
返回顶部