Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 7922546

Browse files
IsaacSomethingdoom777
authored andcommitted
feat(AgmMap): add controlSize option
Adding the `controlSize` property to AgmMap addressing issue: #1646
1 parent 34f651b commit 7922546

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/core/directives/map.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ export class AgmMap implements OnChanges, OnInit, OnDestroy {
9797
*/
9898
@Input() maxZoom: number;
9999

100+
/**
101+
* The control size for the default map controls. Only governs the controls made by the Maps API itself
102+
*/
103+
@Input() controlSize: number;
104+
100105
/**
101106
* Enables/disables if map is draggable.
102107
*/
@@ -368,6 +373,7 @@ export class AgmMap implements OnChanges, OnInit, OnDestroy {
368373
zoom: this.zoom,
369374
minZoom: this.minZoom,
370375
maxZoom: this.maxZoom,
376+
controlSize: this.controlSize,
371377
disableDefaultUI: this.disableDefaultUI,
372378
disableDoubleClickZoom: this.disableDoubleClickZoom,
373379
scrollwheel: this.scrollwheel,

packages/core/services/google-maps-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export interface MapOptions {
161161
zoom?: number;
162162
minZoom?: number;
163163
maxZoom?: number;
164+
controlSize?: number;
164165
disableDoubleClickZoom?: boolean;
165166
disableDefaultUI?: boolean;
166167
scrollwheel?: boolean;

0 commit comments

Comments
 (0)