Questions tagged [agm]

AGM is a component library for including google maps in your Angular application. All usage problems with this library can and should be tagged with this tag. If it's an obvious bug, or a feature request, it belongs in our github issues.

AGM provides several Components and Directives. Here are some of them:

  • <agm-map> represents the actual map
  • <agm-marker> represents a marker on the map
  • <agm-polyline> represents a polyline

Full documentation is available on our website, angular-maps.com. See also github project page

64 questions
1
vote
0 answers

What can be the reason for this error in zoom control property of angular google maps?

I'm trying to build a simple google map location marker with a radius. I'm using - angular@11.0.4 angular-cli@11.0.4 agm/core@3.0.0 I'm getting the an error in terminal on running ng serve, regarding zoomControl property & a method I defined in…
1
vote
2 answers

Property 'map' does not exist on type - Angular Google Maps project

Im new to angular and trying to make a simple google maps application. I keep getting this error error TS2339: Property 'map' does not exist on type 'AppComponent' Im trying to access the map attribute but I cant. Perhaps I havent initialised it…
staf
  • 141
  • 5
1
vote
0 answers

Angular Groundoverlay

I am looking for groundoverlay library in AGM. Is there is any way to show overlay transparent images on google map something as shown below in the link. Google Maps GroundOverlay http://www.ryecemetery.com.au/locate.html I am using below code for…
meenu
  • 119
  • 6
1
vote
1 answer

Loading images on google map using AGM

I have one requirement to show/hide images on google map using agm something as shown below. I think there is some utility is available with AGM, however i am not aware of it.Below is my code to load map and on handleOnTilesLoaded() method I would…
meenu
  • 119
  • 6
1
vote
1 answer

Error while building Angular app with agm-spiderfier

I a getting error while compiling my code with AGM Spidefier library \node_modules\agm-spiderfier\index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. Below are my…
meenu
  • 119
  • 6
1
vote
1 answer

new google.maps.Map(document.getElementById('agmmap'),{}) causes agm map to disappear

Im trying to use google places library with agm map. html
Arjun
  • 1,116
  • 3
  • 24
  • 44
1
vote
1 answer

agm-circle Cannot read property 'then' of undefined at Observable.subscribe

Good afternoon, I am new to angular 8 and AGM maps, I am trying to generate a circle on the map but when I implement it I get the following ERROR TypeError: Cannot read property 'then' of undefined at Observable._subscribe (agm-core.js:292) …
MRSDY SOTO
  • 17
  • 5
1
vote
3 answers

How do I center the agm-map on the marker?

I'm trying to center google maps on the marker, what I get is this : What I want as an end result is the picture above. For some reason it's not centered at all. Here is my HTML code:
Jack Bennett
  • 33
  • 1
  • 5
1
vote
1 answer

stats.js error 500, when using AngularGoogleMaps styles input

I use Angular Google Maps. And everything is working well except one thing. Once I want to add styles to the map, using the styles input attribute, I get an error: js?v=quarterly&callback=agmLazyMapsAPILoader&key=mykey:78 GET…
Sergej
  • 2,030
  • 1
  • 18
  • 28
1
vote
1 answer

agm polyline get point of new edge

I have an agm-polyline with 2 agm-polyline-points. When moving the edge of the line (the middle point) I want the save the new line with 3 points. The problem is, when moving the edge to a new location, the event returns the wrong coordinates / or…
KLTR
  • 1,263
  • 2
  • 14
  • 37
1
vote
1 answer

How to clear polygon from agm-map?

How can I clear polygon from the map when I clicked the clear button.
1
vote
1 answer

PlacesService creation failing with reference to an agm-map element

When I try to create the PlacesService using a reference to an agm-map element it fails. If I create a map dynamically (new google.maps.Map(somediv)) and use that map for a parameter it succeeds. I've condensed my code as much as I can to show the…
xsoftie
  • 116
  • 2
  • 10
1
vote
1 answer

Does AGM preserve Google Map's session when component is re-initialised?

We're currently working on a map-load heavy portal for sales in Angular. We decided to use the AGM library which provided a very good support for both Angular and TypeScript. We display the map on every Search results page and when the user is…
Dawid Zbiński
  • 5,521
  • 8
  • 43
  • 70
1
vote
1 answer

no exported member 'Observable'

I am trying to use agm in my angular project So I installed npm install @agm/core --save but when I use AgmCoreModule.forRoot({ apiKey: 'my api' }), It makes an error that I can not understand : ERROR in…
0
votes
0 answers

Insert Google Maps Layer View with AGM in Angular Application

I'm trying to add the layering view from Google Maps in my application. The Application is running on Angular 14.1, I'm using DevExtreme and AGM (Angular Google Maps). I want to add the layering view, that is in the Google Maps with the idea to…
ddxkalin
  • 71
  • 9