author Damien Dell'Amico <damien.dellamico@gmail.com>
 *  copyright license import { Observable } from 'rxjs/Observable' ; import { MapConst } from './map.constants' ; interface IMapOptions { lat : number ; lon : number ; zoom : number ; } export class MapServiceMock { constructor ( ) { } public createMap ( mapEl , opts = { lat : MapConst . DEFAULT_LAT , lon : MapConst . DEFAULT_LNG , zoom : MapConst . DEFAULT_ZOOM } ) { return Promise . resolve ( new google . maps . Map ( mapEl ) ) ; } public get mapCenter ( ) : google . maps . LatLng { return new google . maps . LatLng ( MapConst . DEFAULT_LAT , MapConst . DEFAULT_LNG ) ; } public set mapCenter ( location ) { } public get mapElement ( ) : Element { return new Element ( ) ; } public createInfoWindow ( content , position ) { } public closeInfoWindow ( ) { } public createAutocomplete ( addressEl ) { return Observable . of ( new google . maps . LatLng ( MapConst . DEFAULT_LAT , MapConst . DEFAULT_LNG ) ) ; } public setPosition ( ) { return Promise . resolve ( ) ; } public resizeMap ( ) { } public loadMap ( ) { return Promise . resolve ( ) ; } public loadNearbyPlaces ( ) { return Observable . of ( [ ] ) ; } }