MCPcopy Create free account
hub / github.com/StephanGeorg/staticmaps / setSize

Method setSize

src/marker.js:25–36  ·  view source on GitHub ↗
(width, height)

Source from the content-addressed store, hash-verified

23 }
24
25 setSize(width, height) {
26 this.width = Number(width);
27 this.height = Number(height);
28
29 if (Number.isNaN(this.drawWidth)) {
30 this.drawWidth = this.width;
31 }
32
33 if (Number.isNaN(this.drawHeight)) {
34 this.drawHeight = this.height;
35 }
36 }
37
38 /**
39 * Set icon data

Callers 1

drawMarkersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected