The SrsChangeService provides methods for successful switching of SRS on a MapWidget. Inject this service via map-widget.SrsChangeService.

Note: this service is used by the sdi extension to provide the SRS toggle UI.

interface SrsChangeService {
    changeSRSOfDefaultMapWidgetTo(srs: any): Promise<MapWidget>;
    changeSRSOfMapWidgetTo(mapWidget: MapWidget, srs: any): Promise<MapWidget>;
    findTitleOfSRS(srs: any): string;
}

Methods

  • Changes srs of default map widget.

    Parameters

    • srs: any

      target srs

    Returns Promise<MapWidget>

    the changed map widget

  • Changes srs of given map widget.

    Parameters

    • mapWidget: MapWidget

      the MapWidget

    • srs: any

      target srs

    Returns Promise<MapWidget>

    the changed map widget

  • Resolves title of srs. An empty string is returned if no title can be resolved. title of srs or empty string if not found.

    Parameters

    • srs: any

    Returns string