Questions tagged [angularjs-google-maps]

Google Maps V3 Directive for AngularJS

35 questions
30
votes
5 answers

Google maps for AngularJS

I am very new to AngularJS and I am trying to use https://github.com/angular-ui/angular-google-maps. I am just trying to get the map to render on my page but I am getting an error message and I don't know what it means. Any help with understanding…
8
votes
2 answers

Using ng-repeat with markers in ngMap

I want to use ngMap to add Google Maps to my app. The demos are "static" in the sense that they have only hard coded HTML. I want my code to be "dynamic" in the sense that it will periodically ask a server to look in its database and return me a…
5
votes
1 answer

ng-map: Cannot read property 'apply' of undefined when setting zoom level

I'm using ngMap in an angularjs app. I'm running into an error when I try to set the zoom on a map element. Here's the error message from the Chrome console: TypeError: Cannot read property 'apply' of undefined at Wk.eventFunc (ng-map.js:205) …
Mark Olbert
  • 6,584
  • 9
  • 35
  • 69
4
votes
2 answers

Angular.js prepends base path to absolute path URL

I'm absolutely new to angular.js, so I'm sorry for a such stupid question. But maybe it would help a little bit to other beginers. I'm learning from a sample project created by someone else, but I'm using a local IIS (instead of IIS Express or VS…
Tomino
  • 5,969
  • 6
  • 38
  • 50
4
votes
1 answer

AngularJS google maps infoWindow is not compiled

I tried to implement google maps infoWindow using AngularJS. I have a template
{{foo}}
, with $scope.foo="bar" I want to see the info window with the value "bar" instead of seeing "{{foo}}". Thus, I compiled and set the contents with it,…
allenhwkim
  • 27,270
  • 18
  • 89
  • 122
3
votes
2 answers

(angularjs-google-maps) ng-click inside marker

This question is about angularjs-google-maps, https://github.com/allenhwkim/angularjs-google-maps Is there a way to use ng-click on a marker to set a variable like this? (the value of 1 is hard-coded for testing purposes). Clicking the marker…
2
votes
2 answers

Google Maps rendering - strange circles cover the map

I'm using the angularjs-google-maps directive, my code looks like this: (function () { define(['angular', 'app'], function (angular, app) { app.directive('customMap', function () { var customMapTemplate = "
2
votes
3 answers

Click to get Latitude and Longitude in google map using angular ng-map?

First of all I'm using Angular Google Map (ng-map). I want to get clicked location of google map's latitude and longitide. My Code
White Marcus
  • 195
  • 2
  • 3
  • 12
2
votes
1 answer

angularjs-google-maps / ng-map stack limit exceeded when loading

I am trying to get angularjs-google-maps show a map in an angularjs project with the following code. (Only relevant code sections shown.) In index.html:
Tiha
  • 598
  • 6
  • 10
2
votes
2 answers

Angularjs - ng-map - Google Maps Javascript API v3 - how to Set best Zoom for Multiple markers

I'm using ngMap in an angularjs app. I'm displaying google-map with multiple markers onclick of Open map! button and first address present in the addresses array im taking as map center. Here is The Plunk example.js: angular.module('plunker',…
2
votes
1 answer

Google maps in angular doesn't update the map correctly

I am using ng-map google maps angular library and faced a problem when maps doesn't update, when I reload the page in my browser. Also I noticed that browser ask to share my current location and it does not matter if I will agree or not to share…
yu.pitomets
  • 1,660
  • 2
  • 17
  • 44
2
votes
1 answer

AngularJS custom directive ng-repeat, Cannot call method 'insertBefore' of null

In my custom AngularJS google maps directive, I have map directive and marker directive, marker directive requires map directive. The following is the simplified version of my problem, which I cannot use ng-repeat.
allenhwkim
  • 27,270
  • 18
  • 89
  • 122
1
vote
1 answer

NgMap: Why are my markers (ng-repeat directive) passing through multiple parameters?

I'm using the NgMap library to use the google maps api in my angular app. I'm adding markers using an ng-repeat directive, each with an on-click tag that calls to the controller and logs to the console.
1
vote
1 answer

AngularJs-Google-Maps Markers not displaying

I'm confused because the AngularJs and HTML code is near exact to a project where this works, but this is also my first time using LAMP instead of MEAN/MERN so maybe it's something to do with that? my HTML file is:
crash springfield
  • 1,072
  • 7
  • 17
  • 33
1
vote
0 answers

In Angular-Google-map templateUrl for maker-window is not working?

I want to create separate template for maker click event. But when I click on the marker it give empty template. Template test.html is not loading. Why it is happening. Plz see the running demo Main Views
Guest
  • 415
  • 8
  • 19
1
2 3