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 ...
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.
...
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...
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',
...
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?
...
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...
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...
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!
...
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...
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&mnc=1&mcc=2&lac=200&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...
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?
...
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...
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...
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...
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...
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...
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(...
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.
...
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);
}
});...
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...