Topic: Angular Google Maps

mog5808 pro asked 5 years ago


I keep getting the following error when i ng serve
/path/to/typescripts/angular-bootstrap-md/free/angular2-google-maps/ts/core/services/managers/polygon-manager.ts (31,30): Argument of type 'Promise<Polyline>' is not assignable to parameter of type 'Promise<Polygon>'.
  Type 'Polyline' is not assignable to type 'Polygon'.
    Property 'getPaths' is missing in type 'Polyline'.
Any ideas why that can be?

mog5808 pro answered 5 years ago


Was able to fix it by installing the component directly. FYI its name changed as well

AGM - Angular Google Maps Old package name: angular2-google-maps New package name: @agm/core

Magdalena Obalska free answered 5 years ago


Hi, thank you for the report. We're glad that you coped with this problem by yourself. We'll include the solution in the next version.

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No