I’ve got a weather website, which misses lightning data. I found a data source from Blitzortung.org wich contains the Lat, Lon and time info of a lightning strike. How do I get this on Google Maps? I want the data to be realtime, just like on blitzortung.org. It should be displayed on the map, preferably as a red or yellow
Tag: google-maps-api-3
Google Maps API v3 Heatmaps Error: “Cannot read property ‘HeatmapLayer’ of undefined”
I am trying to load a Heatmaps layer onto my google maps, but for some reason I just keep getting the error “Cannot read property ‘HeatmapLayer’ of undefined.” Here is the jsFiddle: http://jsfiddle.net/9HQ2a/3/ Answer Add the visualization library to the URL when loading the google maps js.
AngularJS google maps directive
I’m trying to develop an app using angularjs and a directive that I’ve found for instantiate GMaps: http://nlaplante.github.io/angular-google-maps/#!/usage. I follow all the steps but I cant get to render the map! it returns no errors! in the HTML In the controller: Answer Different answer, but I felt google-maps-directive is harder for me to use. Thus, I have created a google
Get zoom size on Google Map API
How can I get the zoom size in google map after changing by mouse wheel or zoom bar ? I use Google Map API 3 with JavaScript. I want to show in console.log() with every change. Answer Easy. As per docs: Here’s a great utility that shows all the events as they fire.
Google Maps API v3 (one infowindow open at a time)
Does someone know how to modify this code so that google maps closes infowindows when you open another? In other words, I want only one infowindow open at all times. I looked around on stackoverflow but couldn’t seem to implement people’s solutions in this code. Answer There is a google recommendation what to do if you only want one InfoWindow
InfoWindow & GeoCoder
I have an issue with getting longitude and latitude values geocoded and then display the relevant address in an info window. I have tried multiple ways without success, however I must admit that I am not so familiar with javascript. I am continuously getting back as value : “undefined”. Here is a snippet of my code showing the main components:
Get only countries to autocomplete from Google Maps API
I’m using Google Maps API to get autocomplete list of cities and countries (without other details), and it works exellent. Now I want to do exactly the same but to get only countries names. Somthing like replacing types: [‘(cities)’] with types: [‘(countries)’]… (what I tried but didn’t work) What should I do in order to get only countries into my
Google maps Places API V3 autocomplete – select first option on enter
I have successfuly implemented Google Maps Places V3 autocomplete feature on my input box as per http://web.archive.org/web/20120225114154/http://code.google.com:80/intl/sk-SK/apis/maps/documentation/javascript/places.html. It works nicely, however I would love to know how can I make it select the first option from the suggestions when a user presses enter. I guess I would need some JS magic, but I am very much new to JS and
Google Maps v3: How to tell when an ImageMapType overlay’s tiles are finished loading?
I’m working with the Google Maps v3 API, and I have a custom overlay layer based on the ImageMapType class. I would like to show a loading indicator of some sort while the overlay’s tiles are loading, but I don’t see any way to know when they are finished. The code to create the overlay looks similar to the following:
Javascript Hanging UI on IE6/7
Could anyone suggest performance improvements for the function I’ve written (below, javascript with bits of jquery)? Or point out any glaring, basic flaws? Essentially I have a javascript Google map and a set of list based results too, and the function is fired by a checkbox click, which looks at the selection of checkboxes (each identifying a ‘filter’) and whittles