Skip to content

Commit

Permalink
chore(clang): fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
sebholstein committed Feb 21, 2016
1 parent f08761c commit 886bb7d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/directives/google-map-marker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export class SebmGoogleMapMarker implements OnDestroy,
if (!this._markerAddedToManger) {
this._markerManager.addMarker(this);
this._markerAddedToManger = true;
this._markerManager.createClickObserable(this)
.subscribe(() => { this.markerClick.next(null); });
this._markerManager.createClickObserable(this).subscribe(
() => { this.markerClick.next(null); });
return;
}
if (changes['latitude'] || changes['logitude']) {
Expand Down
12 changes: 6 additions & 6 deletions src/directives/google-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ export class SebmGoogleMap implements OnChanges,
}

private _handleMapZoomChange() {
this._mapsWrapper.subscribeToMapEvent<void>('zoom_changed')
.subscribe(() => { this._mapsWrapper.getZoom().then((z: number) => this._zoom = z); });
this._mapsWrapper.subscribeToMapEvent<void>('zoom_changed').subscribe(() => {
this._mapsWrapper.getZoom().then((z: number) => this._zoom = z);
});
}

private _handleMapMouseEvents() {
Expand All @@ -174,14 +175,13 @@ export class SebmGoogleMap implements OnChanges,
type Event = {name: string, emitter: Emitter};

const events: Event[] = [
{name: 'click', emitter: this.mapClick},
{name: 'rightclick', emitter: this.mapRightClick},
{name: 'click', emitter: this.mapClick}, {name: 'rightclick', emitter: this.mapRightClick},
{name: 'dblclick', emitter: this.mapDblClick}
];

events.forEach((e: Event) => {
this._mapsWrapper.subscribeToMapEvent<{latLng: LatLng}>(e.name)
.subscribe((event: {latLng: LatLng}) => {
this._mapsWrapper.subscribeToMapEvent<{latLng: LatLng}>(e.name).subscribe(
(event: {latLng: LatLng}) => {
const value =
<MapMouseEvent>{coords: {lat: event.latLng.lat(), lng: event.latLng.lng()}};
e.emitter.emit(value);
Expand Down
4 changes: 2 additions & 2 deletions src/services/marker-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export class MarkerManager {
}

updateMarkerPosition(marker: SebmGoogleMapMarker): Promise<void> {
return this._markers.get(marker)
.then((m: Marker) => m.setPosition({lat: marker.latitude, lng: marker.longitude}));
return this._markers.get(marker).then(
(m: Marker) => m.setPosition({lat: marker.latitude, lng: marker.longitude}));
}

updateTitle(marker: SebmGoogleMapMarker): Promise<void> {
Expand Down

0 comments on commit 886bb7d

Please sign in to comment.