Skip to content

Commit

Permalink
feat(maps-service): expose a GoogleMapsAPI service (#64)
Browse files Browse the repository at this point in the history
* feat(maps-service): move to a google-maps api service

* fix(error): fix setZoom of undefined for #61

* chore(type): restore typing on options

* chore(build): don't forget to build

* fix(addressMarker): address marker shouldn't have lat lng
  • Loading branch information
tomtomau authored and Vheissu committed Apr 17, 2017
1 parent 2c2585d commit 91fcf3e
Show file tree
Hide file tree
Showing 48 changed files with 496 additions and 280 deletions.
6 changes: 6 additions & 0 deletions dist/amd/google-maps-api.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export declare class GoogleMapsAPI {
_scriptPromise: any;
private config;
constructor(config: any);
getMapsInstance(): any;
}
53 changes: 53 additions & 0 deletions dist/amd/google-maps-api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/amd/google-maps-api.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions dist/amd/google-maps.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { TaskQueue } from 'aurelia-task-queue';
import { BindingEngine } from 'aurelia-binding';
import { EventAggregator } from 'aurelia-event-aggregator';
import { Configure } from './configure';
import { GoogleMapsAPI } from './google-maps-api';
export interface BaseMarker {
icon?: string;
label?: string;
Expand Down Expand Up @@ -29,6 +30,7 @@ export declare class GoogleMaps {
private config;
private bindingEngine;
private eventAggregator;
private googleMapsApi;
private validMarkers;
private _geocoder;
address: any;
Expand All @@ -48,7 +50,7 @@ export declare class GoogleMaps {
_mapPromise: Promise<any> | any;
_mapResolve: Promise<any> | any;
_locationByAddressMarkers: any;
constructor(element: Element, taskQueue: TaskQueue, config: Configure, bindingEngine: BindingEngine, eventAggregator: EventAggregator);
constructor(element: Element, taskQueue: TaskQueue, config: Configure, bindingEngine: BindingEngine, eventAggregator: EventAggregator, googleMapsApi: GoogleMapsAPI);
clearMarkers(): void;
attached(): void;
sendBoundsEvent(): void;
Expand All @@ -59,7 +61,6 @@ export declare class GoogleMaps {
private geocode(address);
private readonly geocoder;
getCurrentPosition(): any;
loadApiScript(): any;
setOptions(options: any): void;
createMarker(options: any): any;
getCenter(): void;
Expand Down
53 changes: 13 additions & 40 deletions dist/amd/google-maps.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/amd/google-maps.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/amd/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { FrameworkConfiguration } from 'aurelia-framework';
import { Configure } from './configure';
import { GoogleMaps, Marker } from './google-maps';
import { GoogleMapsAPI } from './google-maps-api';
export declare function configure(aurelia: FrameworkConfiguration, configCallback?: (config: Configure) => Promise<any>): void;
export { Configure };
export { GoogleMaps };
export { GoogleMapsAPI };
export { Marker };
3 changes: 2 additions & 1 deletion dist/amd/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/amd/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions dist/commonjs/google-maps-api.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export declare class GoogleMapsAPI {
_scriptPromise: any;
private config;
constructor(config: any);
getMapsInstance(): any;
}
53 changes: 53 additions & 0 deletions dist/commonjs/google-maps-api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/commonjs/google-maps-api.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 91fcf3e

Please sign in to comment.