Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Angular Google Maps

mog5808 pro asked 7 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 7 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 7 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

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