Questions tagged [ng-map]

ng-map is a Google map AngularJS Directive. Its main features are everything in tag and attributes and it exposes all original Google Maps V3 api to the user.

ng-map is a Google map AngularJS Directive. Its main features are:

  • Everything in tag and attributes - Thus, basic users don't even have to know what Javascript is.

  • Expose all original Google Maps V3 api to the user - No hiding, no wraping, or whatsoever. By doing so, programmers don't need to learn how to use this module. You only need to know Google Maps V3 API.

Demos can be found here.

Documentation at: https://rawgit.com/allenhwkim/angularjs-google-maps/master/build/docs/index.html

Github link: https://github.com/allenhwkim/angularjs-google-maps

200 questions
0
votes
1 answer

ng-map - error 'setCenter: not a LatLng or LatLngLiteral: not an Object' after navigator.geolocation.getCurrentPosition

When using ng-map, I get this error after I click a custom button that I've implemented to get the user's current location: InvalidValueError: setCenter: not a LatLng or LatLngLiteral: not an Object I'm not doing 'setCenter' explicitly, and the…
Chris Halcrow
  • 28,994
  • 18
  • 176
  • 206
0
votes
1 answer

Get latlng of a marker with ng-map angularjs

I'm trying to get the latlng when the marker drop for first time or any time, but I can't. In my code only I can get the latlng when the marker is on-dragend. this is my code:
Dimoreno
  • 227
  • 3
  • 15
0
votes
1 answer

google maps gray color not working

google maps gray color not working it only works if I resize the browser, I'm using AngularJS 1.6.4 html
Kevin Dias
  • 45
  • 1
  • 8
0
votes
0 answers

Angular - how to access class property from one of its methods

I'm using an ng-map in my markup like this:
Chris Halcrow
  • 28,994
  • 18
  • 176
  • 206
0
votes
1 answer

ng-hide on in NgMap is not working

I'm trying to use ng-hide to hide polylines whose particular value is empty. But its not workin , i'm getting a black polyline and i can't get rid of it.
Amit Singh
  • 1,790
  • 3
  • 17
  • 27
0
votes
1 answer

Ng-map disappears if info-window has contents

I have an ng-map and am trying to pop up an infoWindow on marker click. When I try to add the infoWindow in the html, the map disappears with no errors in the console. Here is my html:
Mike Miller
  • 3,368
  • 5
  • 36
  • 49
0
votes
1 answer

ng-map cluster with infowindow

I'm trying to display infowindow on clusters. My problem is that the infowindow is display far than the cluster and not on it. This is how I have added the click event to the cluster: $scope.markerCluster = new MarkerClusterer(map, markers); …
Ne AS
  • 1,490
  • 3
  • 26
  • 58
0
votes
1 answer

Ng-map How to get currently opened Infowindow object

Using https://github.com/allenhwkim/angularjs-google-maps,is there a way to get the google maps infowindow object from the controller? Motivation is to update position of currently opened infowindow (based on an interval) using…
Luke Hutton
  • 10,612
  • 6
  • 33
  • 58
0
votes
1 answer

NgMap cluster change markers colors after zoom

I want to change the color of the markers. I'm using ng-map to display the map. I'm also using the cluster option in this library. My problem: I'm able to change the marker color and I can see that, but once I begin zooming, the markers color change…
Ne AS
  • 1,490
  • 3
  • 26
  • 58
0
votes
1 answer

Draw polygon using ngmap

I'm trying to draw polygon on my map using ngmap. The map is displayed correctly as this example is showing, but when I finish the draw, this is what I'm getting: ng-map.min.js:25 Uncaught TypeError: Cannot read property 'onMapOverlayCompleted' of…
Ne AS
  • 1,490
  • 3
  • 26
  • 58
0
votes
2 answers

NgMap throwing error of Unknown provider: NgMapProvider <- NgMap

I am using ngMap but it is throwing error. I check everything. Every thing is mentioned. I am using this in two places in my application . In one place it is working but not in the second place. Both are at different file location.
Renil Babu
  • 2,118
  • 1
  • 20
  • 29
0
votes
1 answer

How to make Google Maps not clickable under custom marker?

I use NgMap and have some markers. When mouse is over a marker I present a "custom-marker" as an infoWindow. The problem is that when the custom-marker appears, if there is a marker under it, it is still clickable. How can I make the custom-marker…
0
votes
1 answer

How to add on-click event on ngMap marker using component?

I am using ngMap library to integrate Google maps in AngularJS. I aam having troble using on.click inside my components controller. component code: (function(){ angular.module('map') .component('mapComponent', { …
Kārlis Janisels
  • 1,265
  • 3
  • 18
  • 41
0
votes
1 answer

AngularJS - ngMap custom marker clusterer map + infowindow

I've been struggling to get this working for quite some time now. So, here is what I'm trying to achieve. Map with cluster. cluster markers should be custom. On click of marker opens a customized infowindow. Things that I've managed to do are:…
0
votes
1 answer

Google map showing 'Unable to get location......Returned error code 403' in Ng-map?

I'm working in angularjs. Yesterday map was showing location as well as marker to me. Today when I opened my map error thrown that "Unable to get location. Network location provider at 'https://www.googleapis.com/': returned error code 403. " My…
user7397952