google-maps

How to load a Google Static Maps Image using Javascript

Right now I can use this URL to request a Google Static Maps image successfully: http://maps.google.com/staticmap?center=37.687,-122.407&zoom=8&size=450x300&maptype=terrain&key=[my key here]&sensor=false However, the second I use JQuery or any direct javascript to set an image's src to the above url, Google passes back...

Clustering Coordinates on Server Side

What is the most efficient way of clustering coordinates on the server side? Examples? Here is an example of exactly what I need (although I can't use third party vendors) http://www.crunchpanorama.com/ PostgreSQL, Python platform, Google Maps. ...

Getting a list of locals on the iPhone

Hi, how do I get a list of e.g. Restaurants around me? As far as I can see, google enables JS requests only, right? I would not want to use the WebView for that. Are there any other ways to get it? May be not google? I'm wondering because it's such a common task, but I've found no info on the net about it.. Cheers ...

HOW TO add random markers to a map BUT avoiding the sea ?!

The Google Ajax API playground (http://code.google.com/apis/ajax/playground/?exp=maps#map_markers) provides a nice exemple to add random markers to any map: function initialize() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(37.4419, -122.1419), 9); /...

How do I convert these coordinates to google maps readable coordinates?

HI guys, Take a look at the map coordinates on this page. This is linked in from Wikipedia and the coordinates are passed the query string. I'm not sure of teh actual terms for this but How do I convert the coordinates as they are noted as: 37° 14′ 6″ N, 115° 48′ 40″ W Into as so.. 37.235, -115.811111 ...a format which is readable by...

Java API for Google Maps (or similar)

Hi i was wondering if there is a Java library that acts as a wrapper for the Google maps API. What i am interested in is displaying a satellite map of a specific region (lon lat) on my desktop application. It doesn't have to be google maps specifically. Any map service would do the trick. What i need though is a library to work with a d...

Get bounds of a google map v3 after zoom change

I am trying to get the bounds of a map after the zoom has change the zoom_changed event fires after the zoom has changed but before the bounds have been recalculated so is you get_bounds() in the function that first you get the previous bounds not the new bounds is there any way to fire the event after the bounds have been recalculated?...

Why is my custom marker not displaying in Google Maps?

Wonder if anyone can help me, the map displays fine but the marker does. <script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;sensor=false&amp;amp;key=ABQIAAAAIoLIQYVphLGoM1pKOrQx0RSlCk5zF9psbOtT7Cn7bdX8qwZsZBTDgtPCGxlAzv6RxAThsHj0CmmZVg"&gt;&lt;/script&gt; <script type="text/javascript"> ...

jQuery UI + Gmaps = Problems (for me at least) HELP!!

Hi there! I started using jQuery as soon as I found out about it, it is very powerfull but I started struggling when I tried to load Gmaps api into the tabs jQuery UI brings. Strangly enough in IE 6,7,8 it works fine, but in Firefox, Safari (I'm using mac but tested it in windows and they both give the same problems) the map doesn't loa...

Google Maps GDirections - Route directions between two points on a map

Does this look like it should work? I'm wanting to generate directions from one latitude/longitude to another latitude/longitude. var dirMap = new GMap2($("#dirMap").get(0)); var wp = new Array(2); wp[0] = new GLatLng(35.742149,139.337218); wp[1] = new GLatLng(35.735347,139.328485); var marker = new GMarker(wp[1]); dirMap.addOverlay(ma...

Google Maps GDirections - Not Centering/Zoomimg in IE7

Best way to describe this problem is with a link. Please visit this page: Ruby International | APOAds.com In FireFox, everything works fine. In IE it load the directions but does not center on them. Perhaps it's only my PC, does it work on yours under IE? Here's the javascript doing the brunt of the work: $(function() { // panoram...

How do I create a show full screen button to toggle my google maps page to be full screen?

Hi guys I have a google map integrated on part of my page and I would like to create a toggle button to toggle the map between full screen and normal size. So when you click on it - the map extends to fill the whole browser screen and click on it again it is restored to its original size on the page. How would I do it? ...

Google maps Polygon question

The following is an example of how to greate a polygon in the google maps API. What is the purpose of latOffset and lonOffset? We're creating an array of points to make a polygon, but what exactly is the offset doing? var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(37.4419, -122.1419), 13); map.add...

recreating streetview effect in my own iPhone App

Hi all, My app allows you too "look" around a room in avery similar manner to how you can "look" around a street when you are in streetview in the Maps application. Does anyone know of a simple way to recreate this effect? I do have an image (like the streetview image) that I would like users to look around in. Some ideas I have: 1)...

Mysql Database design - Storing single and multi lat longs

I have a mysql database table that will store locations for buildings and events and a few other things. All locations are stored in one table, and linked to buildings, events etc through their own many to many table. That way I can just display dots on a map, and also allow filtering etc. However the problem comes with some things havi...

Accessing iphone maps bookmarks through SDK

Hi all, Does anyone know of a way to access the bookmarks of the "Maps" application programmatically through the SDK? I'd like to read and write bookmarks if possible. Ideas? Thanks! ...

Turn String array values into array object

I am passing a string into a hidden field on the page and then splitting it in order to try to get an array of items I can iterate over and add multiple markers onto a google map. If I hard code the array it works fine, but if I try to split the string and use the same code it does not work. I'm assuming because splitting the string cr...

Is the Map Rails Kit worth the money?

http://railskits.com/map/ Would you like to launch your own google map mashup? Need a way to easily get data onto a map, but don’t want to have to dig through piles of poorly documented Google Maps javascript code? The Map Rails Kit allows you to deploy a map mashup instantly. It extracts all the Google Maps implem...

Using Google Maps API to get travel time data

All the examples I've come across using google maps api seem to show a map of some kind. I would like to incorporate the data about the estimated travel time by car they give you when you ask for a road description from A to B into a site. And only that data. Is it possible without loading up a map for the end visitor? ...

Google Maps API and IE6

Hello, I was wondering if anyone knows more about the inner workings of the Google Maps API when paired with Internet Explorer 6. I want to know more about data confidentiality when using this odd couple. What exactly is sent to the google servers? There isn't much information about this. In one of the few posts on the subject (groups.g...