...
|
...
|
@@ -32,9 +32,9 @@ interface GmGlobal { |
32
|
32
|
export class GoogleMap extends LeafletMap {
|
33
|
33
|
private resource: ResourcesService;
|
34
|
34
|
|
35
|
|
- constructor(ctx: WidgetContext, $container, options: UnitedMapSettings, private injector: Injector) {
|
|
35
|
+ constructor(ctx: WidgetContext, $container, options: UnitedMapSettings) {
|
36
|
36
|
super(ctx, $container, options);
|
37
|
|
- this.resource = injector.get(ResourcesService);
|
|
37
|
+ this.resource = ctx.$injector.get(ResourcesService);
|
38
|
38
|
this.loadGoogle(() => {
|
39
|
39
|
const map = L.map($container, {attributionControl: false}).setView(options?.defaultCenterPosition, options?.defaultZoomLevel);
|
40
|
40
|
(L.gridLayer as any).googleMutant({
|
...
|
...
|
|