Skip to content

Commit

Permalink
feat: add controlSize property
Browse files Browse the repository at this point in the history
Close #17
  • Loading branch information
paodb authored and javier-godoy committed Jan 21, 2022
1 parent 49f60d1 commit 2da0dd8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions google-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,16 @@ Polymer({
mapId: {
type: String,
},

/**
* Size in pixels of the controls appearing on the map.
* If set, control's size will be updated with this value, if not, default value will be used.
* Must be specified when creating the map.
* See https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions.controlSize
*/
controlSize: {
type: Number,
},
},

listeners: {
Expand Down Expand Up @@ -537,6 +547,7 @@ Polymer({
maxZoom: Number(this.maxZoom),
minZoom: Number(this.minZoom),
mapId: this.mapId,
controlSize: this.controlSize,
};

// Only override the default if set.
Expand Down

0 comments on commit 2da0dd8

Please sign in to comment.