import { Injectable } from '@angular/core' ; import { BaseImageryMap , ImageryCommunicatorService } from '@ansyn/imagery' ; @ Injectable ( { providedIn : 'root' } ) export class ImageryZoomerService { constructor ( protected imageryCommunicatorService ) { } getMap ( mapId ) { return this . imageryCommunicatorService . provide ( mapId ) . ActiveMap ; } one2one ( mapId ) { this . getMap ( mapId ) . one2one ( ) ; } zoomIn ( mapId ) { this . getMap ( mapId ) . zoomIn ( ) ; } zoomOut ( mapId ) { this . getMap ( mapId ) . zoomOut ( ) ; } }