Questions tagged [agm-map]

30 questions
4
votes
2 answers

Restrict to a specific country in agm-map

Below is my code which I'm able to plot the points on map. But I want my map to restrict to one country. How can this be achieved in agm-map? Example, I want it to be restricted to only western Australia. maps.html
Sai Manoj
  • 3,809
  • 1
  • 14
  • 35
2
votes
0 answers

change the agm-circle color

I want to change the agm-circle color when the map changes its mode to dark mode. I have a behavior subject as follows in the service file private isDarkModeActiveSubject = new BehaviorSubject(false); readonly isDarkModeActive$ =…
sunil
  • 660
  • 8
  • 20
2
votes
3 answers

Change agm-map google maps API Key dynamically in Angular 7

I am building an app that lets you edit maps, the editor has google maps with the Agm map module, the end result for the user is an iframe with his map to embed into his webpage. I am using the module for the editor, and in the app.module.ts I…
2
votes
1 answer

How to use tilesLoaded in angular 8?

How to use tilesLoaded in agm angular google map. I want to do some action after map has fully loaded. Is there any example to use tilesLoaded in angular (v8)? https://github.com/SebastianM/angular-google-maps/commit/d4f1371
SKL
  • 1,243
  • 4
  • 32
  • 53
2
votes
1 answer

Trying to remove or Change the icon of default markers of in angular google maps

I am implementing the angular google maps where I am getting pickup and destination location from user and displaying the direction through in angular google maps. I have displayed the marker for origin and destination on maps but…
Poonam
  • 149
  • 1
  • 11
1
vote
1 answer

agm-map control options not working properly

Even if I set the options for agm-maps, I see my options for a small amount of time, then they all disappear. I couldn't understand this behaviour. I created a simple project just to demonstrate the problem in Stackblitz, also I'm going to share my…
Fatih Ersoy
  • 680
  • 1
  • 5
  • 24
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
0 answers

Map not updating till a forced refresh or mouse click

I'm using a map to track stops during my RV travels. Thus the map is rendering polyLines and markers. Here is html.
xsoftie
  • 116
  • 2
  • 10
1
vote
0 answers

label value is not showing for agm-marker in angular 7

I am showing some markers using angular-google-map in angular 7.but label property of marker is not showing the value.
Karthi
  • 3,019
  • 9
  • 36
  • 54
1
vote
1 answer

How to reset the mapView if there is a dynamic content to be showed in the snazzy window popup?

How to reset the mapView if there is a dynamic content to be showed in the snazzy window popup? When we open the snazzywindow modal on click of the marker it populates with details, for the first time the map view doesn't set properly to the…
BVS
  • 421
  • 1
  • 9
  • 17
0
votes
0 answers

How to work with the clusters on AGM-MAP (Angular 6+)

I am creating a view with an AGM MAP where I want to add some markers and clusters joining them. I have the following code: -HTML-
0
votes
1 answer

agm-marker-cluster does not show markers after zoom

I have this section for clustering markers on a map with a custom cluster image:
0
votes
1 answer

agm-map & agm-marker drag

This is the code for adding my agm-map for Indonesia. Right now center is at Jakarta as per latitude and longitude and whole map shows in map section. What I want is to allow marker movement to only Indonesia country. What is the way achieve, please…
Bimlendu Kumar
  • 226
  • 2
  • 17
0
votes
0 answers

angular agm-map how to let user drop marker

I've seen similar questions but at this point on my angular journey I do not possess enough understanding to implement their answers correctly. I want users to be able to add a marker on the map. I am using agm-map. I have seen this is the solution…
Ree
  • 863
  • 2
  • 18
  • 38
0
votes
1 answer

How to draw polygon in agm map based on Input co-ordinates in Angular

I want to draw a polygon in the google maps based on the co-ordinates input in the input box. After entering the set of co-ordinates in the input box, once I click on Draw polygon button, I would like to draw a polygon in the google map(agm…
Bharath T N
  • 11
  • 1
  • 6
1
2