angular-google-maps

Namespace 'google.maps' has no exported member 'MouseEvent'

≡放荡痞女 提交于 2021-01-26 09:45:08
问题 I wanted to integrate Google Maps with my Angular project. In the pilot version, I was just following this link https://angular-maps.com/guides/getting-started/ . Currently, I am stuck in error: node_modules/@agm/core/lib/directives/map.d.ts:232:43 - error TS2694: Namespace 'google.maps' has no exported member 'MouseEvent' 232 mapDblClick: EventEmitter<google.maps.MouseEvent>; I went to the file location and got this mapClick: EventEmitter<google.maps.MouseEvent | google.maps.IconMouseEvent>;

ERROR in node_modules/@types/googlemaps/index.d.ts — A tuple type element list cannot be empty

白昼怎懂夜的黑 提交于 2020-08-27 06:41:47
问题 while trying to integrate the angular google maps - agm librarie in my angular project i got this error : somthing is worng with some configuration or maybe something i have missed i m working with material 6 and angular 6 in this project thanks for your help in terminal console ERROR in node_modules/@types/googlemaps/index.d.ts(63,25): error TS1122: A tuple type element list cannot be empty. node_modules/@types/googlemaps/index.d.ts(72,25): error TS1122: A tuple type element list cannot be

ERROR in node_modules/@types/googlemaps/index.d.ts — A tuple type element list cannot be empty

自作多情 提交于 2020-08-27 06:39:28
问题 while trying to integrate the angular google maps - agm librarie in my angular project i got this error : somthing is worng with some configuration or maybe something i have missed i m working with material 6 and angular 6 in this project thanks for your help in terminal console ERROR in node_modules/@types/googlemaps/index.d.ts(63,25): error TS1122: A tuple type element list cannot be empty. node_modules/@types/googlemaps/index.d.ts(72,25): error TS1122: A tuple type element list cannot be

agm-circle angular 4 drag sensitivity so fast

戏子无情 提交于 2020-07-22 08:32:00
问题 I am using agm-circle in agm-map in angular 4. It works fine but the problem is that it move so fast when i dragged it. How to slow it down. Here is my code <agm-map id="map" [latitude]="lat" [longitude]="lng"> <agm-marker [latitude]="lat" [longitude]="lng"></agm-marker> <agm-circle [latitude]="lat" [longitude]="lng" [circleDraggable]="true" [editable]="true" [fillColor]="circleColor" (radiusChange)="radiusChange($event)" (centerChange)="centerChange($event)" [radius]="locationRadius" > </agm

agm-circle angular 4 drag sensitivity so fast

ぐ巨炮叔叔 提交于 2020-07-22 08:31:24
问题 I am using agm-circle in agm-map in angular 4. It works fine but the problem is that it move so fast when i dragged it. How to slow it down. Here is my code <agm-map id="map" [latitude]="lat" [longitude]="lng"> <agm-marker [latitude]="lat" [longitude]="lng"></agm-marker> <agm-circle [latitude]="lat" [longitude]="lng" [circleDraggable]="true" [editable]="true" [fillColor]="circleColor" (radiusChange)="radiusChange($event)" (centerChange)="centerChange($event)" [radius]="locationRadius" > </agm

How to draw polygon on angular google maps using @agm-core?

巧了我就是萌 提交于 2020-04-14 07:38:30
问题 In my application, I use Angular Google Maps (AGM) to build a map. How can I draw a polygon on it? I followed the solution described in https://stackblitz.com/edit/agm-polygon but some directives are missing. How can I enable the drawing manager on the AGM map and draw polygons like in the example? This is the import in the app.module: AgmCoreModule.forRoot({ apiKey: 'key', language: localStorage && localStorage.defaultLang || 'el', libraries: ['places', 'drawing', 'geometry'] }) 回答1: You

How to draw polygon on angular google maps using @agm-core?

拟墨画扇 提交于 2020-04-14 07:38:13
问题 In my application, I use Angular Google Maps (AGM) to build a map. How can I draw a polygon on it? I followed the solution described in https://stackblitz.com/edit/agm-polygon but some directives are missing. How can I enable the drawing manager on the AGM map and draw polygons like in the example? This is the import in the app.module: AgmCoreModule.forRoot({ apiKey: 'key', language: localStorage && localStorage.defaultLang || 'el', libraries: ['places', 'drawing', 'geometry'] }) 回答1: You

angularjs google maps - markers with window - infowindow not showing

梦想与她 提交于 2020-01-22 19:46:27
问题 Trying to get a app using angular-google-maps with: - multiple markers via the markers directive - a single infowindow via the window directive I've been through the API and multiple closed issues / questions on the git-hub site but just can't get it working... :-/ jsfiddle For simplicity, I'm declaring the markers manually (and they're displaying correctly): $scope.markers = [ { id: 0, coords: { latitude: 37.7749295, longitude: -122.4194155 }, data: 'restaurant' }, { id: 1, coords: {

I'm using angular google maps and need help getting the new bounds changed from the event fired

自古美人都是妖i 提交于 2020-01-14 05:17:09
问题 This is my current code which is called when bounds are changed and works: scope.boundsChanged= function(arg){ console.log(arg); }; I basically need the new array of lat and lng when this function above is called. I'm unsure are the retrieve it. I'm using angular version 1 with JavaScript in a directive using a templateUrl. Img of console log of bounds arg: 回答1: I dont know exactly what is returned in the boundsChanged() function, but assuming changed bounds are returned in the function,