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

Method drawFeatures

src/staticmaps.js:483–489  ·  view source on GitHub ↗

* Draw all features to the basemap

()

Source from the content-addressed store, hash-verified

481 * Draw all features to the basemap
482 */
483 async drawFeatures() {
484 await this.drawSVG(this.lines, (c) => this.lineToSVG(c));
485 await this.drawSVG(this.multipolygons, (c) => this.multiPolygonToSVG(c));
486 await this.drawMarkers();
487 await this.drawSVG(this.text, (c) => this.textToSVG(c));
488 await this.drawSVG(this.circles, (c) => this.circleToSVG(c));
489 }
490
491 /**
492 * Preloading the icon image

Callers 1

renderMethod · 0.95

Calls 6

drawSVGMethod · 0.95
lineToSVGMethod · 0.95
multiPolygonToSVGMethod · 0.95
drawMarkersMethod · 0.95
textToSVGMethod · 0.95
circleToSVGMethod · 0.95

Tested by

no test coverage detected