Hot answers tagged

3

Have you tried clearing the browser cache (shift-reload or ctrl-F5)? That will cause the browser to re-download your js file. Since you mention "code from last year" is it possible apache is started in a different "path-to-root" than you expect?


3

If you got You have exceeded your request quota for this API. See https://developers.google.com/maps/documentation/javascript/error-messages?utm_source=maps_js&utm_medium=degraded&utm_campaign=billing#api-key-and-billing-errors message in the console and the map displays with For development purposes only overlay, that is to be expected. Since you ...


2

As ChrisG said in the comments, you don't need to add two different click listeners for each marker. I'm comparing your code to mine, and my click listener just uses showInfo(marker, content) -- admittedly, I need to define var content outside of the click lister's anonymous function scope, earlier in the addMarker() function, in order for this to be useful. ...


Only top voted, non community-wiki answers of a minimum length are eligible