Skip to content

Commit

Permalink
feat(AgmMap): add controlSize option
Browse files Browse the repository at this point in the history
Adding the `controlSize` property to AgmMap

addressing issue: #1646
  • Loading branch information
IsaacSomething authored and doom777 committed Jun 3, 2019
1 parent 34f651b commit 7922546
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/directives/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ export class AgmMap implements OnChanges, OnInit, OnDestroy {
*/
@Input() maxZoom: number;

/**
* The control size for the default map controls. Only governs the controls made by the Maps API itself
*/
@Input() controlSize: number;

/**
* Enables/disables if map is draggable.
*/
Expand Down Expand Up @@ -368,6 +373,7 @@ export class AgmMap implements OnChanges, OnInit, OnDestroy {
zoom: this.zoom,
minZoom: this.minZoom,
maxZoom: this.maxZoom,
controlSize: this.controlSize,
disableDefaultUI: this.disableDefaultUI,
disableDoubleClickZoom: this.disableDoubleClickZoom,
scrollwheel: this.scrollwheel,
Expand Down
1 change: 1 addition & 0 deletions packages/core/services/google-maps-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export interface MapOptions {
zoom?: number;
minZoom?: number;
maxZoom?: number;
controlSize?: number;
disableDoubleClickZoom?: boolean;
disableDefaultUI?: boolean;
scrollwheel?: boolean;
Expand Down

0 comments on commit 7922546

Please sign in to comment.