google-maps

Google Map only showing Grey Blocks on load - Debug Cert has been obtained

I am attempting to follow the Google Map View under the views tutorial for the Android. I have followed step by step but still only see grey blocks when viewed. First: I created a Virtual Device using "Google API's(Google Inc.) Platform 2.2 API Level 8" Second: When creating my project I selected "Google API's Google Inc. Platform 2.2 ...

What's the most efficient way to create routes on google maps from gps files?

I want to display my bicycle routes on Google maps. All the coordinates are recorded by my GPS and stored in .gpx file format. I'd like to know what's the best approach/file formats/storage/loading the coordinates on Google Maps. This is a good example but it doesn't seem to be working. ...

Replacing GTileLayer in Google Maps v3, with ImageMapType, Tile bounding box?

I need to update this code: radar_layer.getTileUrl=function(tile,zoom) { var llp = new GPoint(tile.x*256,(tile.y+1)*256); var urp = new GPoint((tile.x+1)*256,tile.y*256); var ll = G_NORMAL_MAP.getProjection().fromPixelToLatLng(llp,zoom); var ur = G_NORMAL_MAP.getProjection().fromPixelToLatLng(urp,zoom); var dt = new...

How do I add an overlay to my OpenStreetMap

I currently use a google map and create tiles for it by using a PHP script to generate the required PNG images var myTileLayer = new GTileLayerOverlay( new GTileLayer(null, null, null, { //tileUrlTemplate: 'Overlays/Overlay_{Z}_{X}_{Y}.png', ...

Google Maps API load information

With Google Maps API I can load information of a KML file: geoXml = new GGeoXml("http://exampleWeb.com/file.kml"); But, I can't load information of a public map in maps.google.com? ...

Multiple marker icons, how to add to google mashup

I have created a Google maps mashup, where with a bit of input, I have managed to have a sidebar that links to a video icon/marker that then opens up an info window showing virtual tours. I would, however, like to put different coloured marker icons on the map depending on the category that the video is in. This would be easy enough to d...

audio onprogress in chrome not working

Hi I am having a problem getting onprogress event for the audio tag working on chrome. it seems to work on fire fox. http://www.scottandrew.com/pub/html5audioplayer/ works on chrome but there is no progress bar update. When I copy the code and change the src to a .wav file and run it on fire fox it works perfectly. <style type="text/c...

How to make cross-domain AJAX calls to Google Maps API?

I'm trying to make a jQuery $.getJSON call to the Google Maps Geocoding webservice, but this doesn't work because of cross-domain security issues. I haven't been able to figure it out online, but I've read a bit about Google Javascript API or JSONP, but so far no clear answer... Could anyone enlight me? Thanks! ...

JavaScript: supposed to execute functions sequentially, not actually doing so?

I'm seeing a lot of answers on StackOverflow that say that JavaScript executes code sequentially, but I can actually see my own JavaScript not doing so. From the following code: function centre_map(lat, lng, zoom_level) { alert('centre_map'); map = new GMap2(document.getElementById('map_canvas')); var latlng = new GLatLng(l...

Question about tracking user in a map application using cellid

I am trying to understand the concept of cellid (http://www.opencellid.org/api) As per that, if we send a request http://www.opencellid.org/cell/get?key=myapikey&amp;mnc=1&amp;mcc=2&amp;lac=200&amp;cellid=234 it will respond with the latitude and longitude. I was wondering if this can be used from within a google map application for...

Ownership of Google API keys in the enterprise

When developing a Google Maps or Recaptcha implementation, you can sign up for a free API key using However, in a large company, you don't want to tie these keys to a developer's gmail account. Does anyone have suggestions or best practices how Google API Keys should be managed on an organizational level? Who owns them? ...

Using Google Map Headers (YM4R) on Heroku

I have the following at the top of my view: <%= GMap.header %> Heroku is giving me an ActionView::TemplateError on that line.... this works on my own machine but not on Heroku.... why is that? Is there something about Heroku that doesn't allow? In the final compile on the browser, the above code translates into this on the client si...

Display the info window of a Google map marker

I have succeeded in loading a Google map using the gMap jQuery plugin and making it display several markers passed to it in a JSON object using the pattern demonstrated here under "Map with marker and info window". So far, so good. Now I want to have a link on the same page which, when clicked, displays the info window for a marker on t...

gMaps suddenly stopped working : Can't find variable: G_NORMAL_MAP

hello! i inject a map on my div called "concessionario-map" with GMap, a jquery plugin. Gmap everything works fine until this morning. now the debugger says: ReferenceError: Can't find variable: G_NORMAL_MAP i just search on google and i read some similar situation, but i dont find a case like mine. please, can you help me? thanks a l...

Google Maps - Reserve Geocode -> Error "invalid label"

Hello! I have the coordinates of my marker. Now I want to get the address of the marker. So I searched the web and found google maps reserve geocode. Now I tried to do the following: $.getJSON('http://maps.google.com/maps/api/geocode/json?latlng='+point.lat()+','+ point.lng() +'&key='+apiKey+'&sensor=false&output=json&callback=?', funct...

Heatmap in V3 without Fusion Tables?

The new FusionTablesLayer in Google Maps API version 3 has an option to display as a heatmap instead of points. Here's the example. Is there a way to get the heat map display without using Fusion Tables (but still using the Google Maps API)? I already have my data in my own PostgreSQL/Postgis database. Having Google do the heatmap a pref...

Google maps sometimes does not return a geocoded value for string

Hi Guys, I have the following code: It basically looks into a HTML list and geocodes and marks each item. it does it correctly 8 out of ten but sometimes I get an error I set for show in the console. I can't think of anything. Any thoughts is much appreciated. $(function () { var map = null; var geocoder = null; function initialize(...

Open local KML File in Google Maps on Android

I have loaded a KML file onto an Android device. What's the easiest mechanism for loading an overlay of that KML file into Google Maps? I do not want to upload the KML file to the web but would rather open it locally. ...

Android: setting up a google map class. bit of advice required.

Hey there, Ok so this is what i've got. Button anandabutton = (Button) findViewById(R.id.anandaAddressButton); anandabutton.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { Intent myIntent = new Intent(view.getContext(),MapClass.class); startActivityForResult(myIntent,0); } });...

Removing Directions markers from the Google Maps API V3

To remove a normal marker from a map, I understand you simply call marker.setMap(null), but when implementing the Google Maps directions services, it automatically adds markers A and B onto the map ( calculating directions from point A to point B ). I do not have control over these markers, so I cannot remove them in the normal way. So h...