import { MapControlBase } from '../../../widgets';

/**
 * 实体地图部件基类
 *
 * @export
 * @class AppMapBase
 * @extends {MapControlBase}
 */
export class AppMapBase extends MapControlBase {
  /**
   * 绘制地图
   *
   * @returns {*}
   * @memberof AppMapBase
   */
  render() {
    if (!this.controlIsLoaded) {
      return null;
    }
    let mapClassName = {
      'app-map': true,
      'map-container': true,
      ...this.renderOptions.controlClassNames,
    };
    return (
      <div class={mapClassName}>
        <div ref='map' class='map'></div>
      </div>
    );
  }
}
