angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

can you please explain which version should be install for angular 4.?

Open shubhanshu2009 opened this issue 8 years ago • 4 comments

Issue description

ERROR in Metadata version mismatch for module /var/www/html/skalenow_project/skalenow/node_modules/@agm/core/index.d.ts, found version 4, expected 3, resolving symbol AppModule in /var/www/html/skalenow_project/skalenow/src/app/app.module.ts, resolving symbol AppModule in /var/www/html/skalenow_project/skalenow/src/app/app.module.ts, resolving symbol AppModule in /var/www/html/skalenow_project/skalenow/src/app/app.module.ts webpack: Failed to compile.

Steps to reproduce and a minimal demo of the problem

_Use https://plnkr.co or similar -- try this template as a starting point: http://plnkr.co/edit/YX7W20?p=preview

What steps should we try in your demo to see the problem?

Current behavior

Expected/desired behavior

angular4 & angular-google-maps version angular version 4 "@agm/core": "^1.0.0-beta.5",

Other information I got a suggestion for upgrade angular version 4 to 5 or install agm/core older version. But i can't upgrade angular and unable to find agm/code older version. please suggest which viesion should i use in angular 4

shubhanshu2009 avatar Oct 11 '18 16:10 shubhanshu2009

Use this version for Angular 4

"angular2-google-maps": "^0.17.0",

and your HTML code for the map should be like this

<sebm-google-map [latitude]="lat" [longitude]="lng" [zoom]="zoom" [disableDefaultUI]="false" [zoomControl]="false" (mapClick)="mapClicked($event)">

  <sebm-google-map-marker 
      *ngFor="let m of markers; let i = index"
      (markerClick)="clickedMarker(m.label, i)"
      [latitude]="m.lat"
      [longitude]="m.lng"
      [label]="m.label">
      
    <sebm-google-map-info-window>
      <strong>InfoWindow content</strong>
    </sebm-google-map-info-window>
    
  </sebm-google-map-marker>

</sebm-google-map>

Suhailattatras avatar Oct 13 '18 08:10 Suhailattatras

We had success (it functioned) using 1.0.0-beta.2 with angular 4 project.

redevill avatar Oct 13 '18 15:10 redevill

Hello @redevill , 1.0.0-beta.2 is working but not properly. some functionalities like map is not loading after dragging map map is coming but zoom option is not coming and also i want to see only set location directly not on zooming this is also not work.

shubhanshu2009 avatar Oct 18 '18 17:10 shubhanshu2009

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 16 '19 18:01 stale[bot]