infusion-code/angular-maps

View on GitHub
src/models/google/google-canvas-overlay.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Showing 4 of 4 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

const o: { [key: string]: any } = {
align: 'left',
offset: new google.maps.Point(0, 25),
backgroundColor: 'bisque',
hidden: true,
Severity: Major
Found in src/models/google/google-canvas-overlay.ts and 1 other location - About 1 hr to fix
src/models/bing/bing-canvas-overlay.ts on lines 69..77

Similar blocks of code found in 3 locations. Consider refactoring.
Open

export function MixinCanvasOverlay() {
 
new Extender(GoogleCanvasOverlay)
.Extend(new google.maps.OverlayView)
.Map('onAdd', 'OnAdd')
Severity: Major
Found in src/models/google/google-canvas-overlay.ts and 2 other locations - About 1 hr to fix
src/models/bing/bing-canvas-overlay.ts on lines 236..243
src/models/bing/bing-label.ts on lines 216..222

Similar blocks of code found in 2 locations. Consider refactoring.
Open

this._viewChangeEndEvent = google.maps.event.addListener(map, 'idle', (e: any) => {
this.UpdateCanvas();
});
Severity: Minor
Found in src/models/google/google-canvas-overlay.ts and 1 other location - About 40 mins to fix
src/models/google/google-canvas-overlay.ts on lines 162..164

Similar blocks of code found in 2 locations. Consider refactoring.
Open

this._mapResizeEvent = google.maps.event.addListener(map, 'resize', (e: any) => {
this.UpdateCanvas();
});
Severity: Minor
Found in src/models/google/google-canvas-overlay.ts and 1 other location - About 40 mins to fix
src/models/google/google-canvas-overlay.ts on lines 157..159

There are no issues that match your filters.

Category
Status