diff --git a/src/core.ts b/src/core.ts index 4fb727bbf..86843f416 100644 --- a/src/core.ts +++ b/src/core.ts @@ -1,7 +1,7 @@ import {Provider} from 'angular2/core'; -import {MapsAPILoader} from './services/maps_api_loader/maps_api_loader'; -import {LazyMapsAPILoader} from './services/maps_api_loader/lazy_maps_api_loader'; +import {MapsAPILoader} from './services/maps-api-loader/maps-api-loader'; +import {LazyMapsAPILoader} from './services/maps-api-loader/lazy-maps-api-loader'; // main module export * from './directives'; diff --git a/src/custom_typings/google_maps.d.ts b/src/custom-typings/google-maps.d.ts similarity index 100% rename from src/custom_typings/google_maps.d.ts rename to src/custom-typings/google-maps.d.ts diff --git a/src/directives-const.ts b/src/directives-const.ts new file mode 100644 index 000000000..df1220acb --- /dev/null +++ b/src/directives-const.ts @@ -0,0 +1,4 @@ +import {SebmGoogleMap} from './directives/google-map'; +import {SebmGoogleMapMarker} from './directives/google-map-marker'; + +export const ANGULAR2_GOOGLE_MAPS_DIRECTIVES: any[] = [SebmGoogleMap, SebmGoogleMapMarker]; diff --git a/src/directives.ts b/src/directives.ts index 4dfa9b459..ce0a8e158 100644 --- a/src/directives.ts +++ b/src/directives.ts @@ -1,3 +1,3 @@ -export {SebmGoogleMap} from './directives/google_map'; -export {SebmGoogleMapMarker} from './directives/google_map_marker'; -export {ANGULAR2_GOOGLE_MAPS_DIRECTIVES} from './directives_const'; +export {SebmGoogleMap} from './directives/google-map'; +export {SebmGoogleMapMarker} from './directives/google-map-marker'; +export {ANGULAR2_GOOGLE_MAPS_DIRECTIVES} from './directives-const'; diff --git a/src/directives/google_map_marker.ts b/src/directives/google-map-marker.ts similarity index 96% rename from src/directives/google_map_marker.ts rename to src/directives/google-map-marker.ts index b4b556c9f..b4b7eeba8 100644 --- a/src/directives/google_map_marker.ts +++ b/src/directives/google-map-marker.ts @@ -7,7 +7,7 @@ import { EventEmitter, Output } from 'angular2/core'; -import {MarkerManager} from '../services/marker_manager'; +import {MarkerManager} from '../services/marker-manager'; let markerId = 0; diff --git a/src/directives/google_map.ts b/src/directives/google-map.ts similarity index 95% rename from src/directives/google_map.ts rename to src/directives/google-map.ts index 7fef97ed8..aa174a239 100644 --- a/src/directives/google_map.ts +++ b/src/directives/google-map.ts @@ -1,6 +1,6 @@ import {Component, Input, Renderer, ElementRef, NgZone} from 'angular2/core'; -import {GoogleMapsAPIWrapper} from '../services/google_maps_api_wrapper'; -import {MarkerManager} from '../services/marker_manager'; +import {GoogleMapsAPIWrapper} from '../services/google-maps-api-wrapper'; +import {MarkerManager} from '../services/marker-manager'; /** * Todo: add docs diff --git a/src/directives_const.ts b/src/directives_const.ts deleted file mode 100644 index ee858427d..000000000 --- a/src/directives_const.ts +++ /dev/null @@ -1,4 +0,0 @@ -import {SebmGoogleMap} from './directives/google_map'; -import {SebmGoogleMapMarker} from './directives/google_map_marker'; - -export const ANGULAR2_GOOGLE_MAPS_DIRECTIVES: any[] = [SebmGoogleMap, SebmGoogleMapMarker]; diff --git a/src/services.ts b/src/services.ts index e9d1f633c..93e2d9c72 100644 --- a/src/services.ts +++ b/src/services.ts @@ -1,7 +1,7 @@ -export {MapsAPILoader} from './services/maps_api_loader/maps_api_loader'; -export {NoOpMapsAPILoader} from './services/maps_api_loader/noop_maps_api_loader'; +export {MapsAPILoader} from './services/maps-api-loader/maps-api-loader'; +export {NoOpMapsAPILoader} from './services/maps-api-loader/noop-maps-api-loader'; export { LazyMapsAPILoader, LazyMapsAPILoaderConfig, GoogleMapsScriptProtocol -} from './services/maps_api_loader/lazy_maps_api_loader'; +} from './services/maps-api-loader/lazy-maps-api-loader'; diff --git a/src/services/google_maps_api_wrapper.ts b/src/services/google-maps-api-wrapper.ts similarity index 97% rename from src/services/google_maps_api_wrapper.ts rename to src/services/google-maps-api-wrapper.ts index dd8586659..91e09d873 100644 --- a/src/services/google_maps_api_wrapper.ts +++ b/src/services/google-maps-api-wrapper.ts @@ -2,7 +2,7 @@ import {Injectable} from 'angular2/core'; import {Observer} from 'rxjs/Observer'; import {Observable} from 'rxjs/Observable'; -import {MapsAPILoader} from './maps_api_loader/maps_api_loader'; +import {MapsAPILoader} from './maps-api-loader/maps-api-loader'; /** * Wrapper class that handles the communication with the Google Maps Javascript diff --git a/src/services/maps_api_loader/lazy_maps_api_loader.ts b/src/services/maps-api-loader/lazy-maps-api-loader.ts similarity index 98% rename from src/services/maps_api_loader/lazy_maps_api_loader.ts rename to src/services/maps-api-loader/lazy-maps-api-loader.ts index 90df5d364..47964af38 100644 --- a/src/services/maps_api_loader/lazy_maps_api_loader.ts +++ b/src/services/maps-api-loader/lazy-maps-api-loader.ts @@ -1,5 +1,5 @@ import {Injectable, Optional} from 'angular2/core'; -import {MapsAPILoader} from './maps_api_loader'; +import {MapsAPILoader} from './maps-api-loader'; export enum GoogleMapsScriptProtocol { HTTP, diff --git a/src/services/maps_api_loader/maps_api_loader.ts b/src/services/maps-api-loader/maps-api-loader.ts similarity index 100% rename from src/services/maps_api_loader/maps_api_loader.ts rename to src/services/maps-api-loader/maps-api-loader.ts diff --git a/src/services/maps_api_loader/noop_maps_api_loader.ts b/src/services/maps-api-loader/noop-maps-api-loader.ts similarity index 91% rename from src/services/maps_api_loader/noop_maps_api_loader.ts rename to src/services/maps-api-loader/noop-maps-api-loader.ts index 72280d275..235115ef8 100644 --- a/src/services/maps_api_loader/noop_maps_api_loader.ts +++ b/src/services/maps-api-loader/noop-maps-api-loader.ts @@ -1,4 +1,4 @@ -import {MapsAPILoader} from './maps_api_loader'; +import {MapsAPILoader} from './maps-api-loader'; /** * When using the NoOpMapsAPILoader, the Google Maps API must be added to the page via a