I am using angular2-google-map
I want to shift the center to map to left.
the html
<sebm-google-map [latitude]="center.lat" [longitude]="center.long">
<sebm-google-map-marker *ngFor="let h of mapData?.list" [latitude]="h.lat" [longitude]="h.lang">
<sebm-google-map-info-window [maxWidth]="300">
<strong>{{h.info}}</strong>
</sebm-google-map-info-window>
</sebm-google-map-marker>
</sebm-google-map>
Component.ts file
@Component({
selector: 'google-map',
templateUrl: './google-map.component.html',
providers: [MapDataService]
})
export class googleMapComponent implements OnInit, OnChanges {
center:any;
@Input() mapData: Array<Object>;
public constructor(private mapService: MapDataService) {
this.center = {};
this.center['lat'] = 28.457523;
this.center['long'] = 77.026344;
}
}
Thanks
Note: Image are taken from This question which has the same issues(but in simple google map)