Skip to content

Commit

Permalink
feat(projection): inject the projection service with the map state
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourget committed Mar 1, 2019
1 parent 719b25c commit d3a8f32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/geo/src/lib/map/shared/index.ts
Expand Up @@ -2,3 +2,5 @@ export * from './map';
export * from './map.interface';
export * from './map.service';
export * from './map.utils';
export * from './projection.interfaces';
export * from './projection.service';
7 changes: 5 additions & 2 deletions packages/integration/src/lib/map/map.state.ts
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';

import { IgoMap, MapService } from '@igo2/geo';
import { IgoMap, MapService, ProjectionService } from '@igo2/geo';

/**
* Service that holds the state of the map module
Expand All @@ -17,7 +17,10 @@ export class MapState {
}
private _map: IgoMap;

constructor(private mapService: MapService) {
constructor(
private mapService: MapService,
private projectionService: ProjectionService
) {
this._map = new IgoMap({
controls: {
scaleLine: true,
Expand Down

0 comments on commit d3a8f32

Please sign in to comment.