google-maps

What steps should I take to protect my Google Maps API Key?

I have obtained a Google Maps API key for my domain. The examples provided when I obtained my key show the key embedded in request parameters, for example: <script src="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;sensor=true_or_false&amp;amp;key=my-key" type="text/javascript"></script> I appreciate that the referrer fiel...

Center Google Map Based on geocoded IP

Basically whenever someones opens up my (Google) map I want it default to their approximate location. Is there an easy way to do it with Google's API or do I have to write a custom code (this is python based app)? ...

Yet another question of my googlemaps problem.

I have asked in two earlier questions to place multiple markers from a XML file created from Lightroom, which had to be tranformed in degrees instead of Degrees,Minutes,Seconds. This part i managed but then... The answers in the previous question were very informative but it's my poor skill of programming (first project) that i just can...

Google Maps Stopped working suddenly (Blank Map)

i am starting with google maps. just learning. awhile ago, it was working. now its not. everything seems to workin UI Controls, Markers/Overlay but the map is blank. google.load("jquery", "1.3.2"); google.load("maps", "2"); google.setOnLoadCallback(function() { var map = new google.maps.Map2(document.getElementById("map")); map...

Is it possible to import locations from user-created maps to the google map API?

I'm building a simple appliacation using the Google Maps API and I'm trying to import locations from user-generated maps. You know the ones on maps.google.com where you can add locations and share it with others. I want to display these locations on an external page using the Google Maps API. Is this possible? As there was no obvious wa...

A draw-encoding algorithm similar to one in Google maps

As some of you may know, there is an encoding algorithm in Google maps API which optimizes polyline drawings in different zoom levels. It removes-adds the coordinates of a path according to the current zoom level and decreases-increases the drawing computation time. Specifically, I mean the algorithm in the GPolyline.fromEncoded method. ...

What Maps API other than Google's do you use with GWT?

It seems that licensing terms would prevent us from using Google Maps API in our software. We would prefer to be absolutely free open source and Google Maps API will require commercial license if our software is sold (correct me if I am wrong - I will delete this question then :-). So the question is if there are alternative map APIs f...

Google maps API map.openInfoWindowHtml is not including full html

i have the following code: var point0 = new GLatLng(40.786729,-73.972766); var marker0 = new GMarker(point0); marker0.value = 0; GEvent.addListener(marker0, "click", function() { var myHtml = "<b><a href='http://Photos.Net'&gt;&lt;br />01-0001</a></b><br /><br /><img src=http://adam.kantro.net/pics/Apartment/Thumbnails/Ap...

Adding pins for nearby places (e.g. pizzerias) in MapKit

MapKit doesn't natively support local search results, so I'm looking for a way to get a list of local pizzerias (or coffee shops, or a specific retailer) via some http api call. The default google maps api requires javascript, so it's not clear to me how to integrate this into an iPhone app (without displaying a UIWebView). I have foun...

Whats the easiest way to get sql 08 spatial data onto a map?

I've got a DB with a whole bunch of records containing lat and long of points I want to get onto a map. The level of detail I need is down to Australian street level and up to the country level and it can be either pure map data (suburbs, streets, etc) or aerial photos. This is purely for personal purposes and the output doesn't need to...

Why MKMapView region is different than requested?

Greetings! I'm saving map region into user defaults when my iPhone app is closing like this: MKCoordinateRegion region = mapView.region; [[NSUserDefaults standardUserDefaults] setDouble:region.center.latitude forKey:@"map.location.center.latitude"]; [[NSUserDefaults standardUserDefaults] setDouble:region.center.longitude forKey:@"map....

What event is fired when Google Map repaints?

what event fies when google maps repaint itself? for example when you zoom in or out? I have an info window open and when it repaints I lose it. I'm using JQuery to load the map on Document.Ready() ...

How to use Google Map in Blackberry application?

Can anyone tell how to use Google maps in blackberry application development instead of Blackberry map.If you have any idea about this please help me,If possible provide me a some code snippet. regards, s.kumaran. ...

Markers in google maps

I'm currently loading a map with the following javascript. google.load("maps", "2.x"); // Call this function when the page has been loaded function initialize() { var map = new google.maps.Map2(document.getElementById("map")); map.setCenter(new google.maps.LatLng(52,-3), 13); var point = new google.maps.LatLng(52,-3...

Get max viewing distance from current zoom level with Google Maps API

When loading some directions the map adjusts to the appropriate zoom level. Then I request for several markers in the database within a certain radius from the map's center. How do i get the correct radius value depending on the current zoom level? This value should be the real distance from the center to the edge of the map. Thank...

How to offer a screenshot of a Google Maps instance?

I would like to implement a map simmilar to this: http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/examples/advanced_example.html One of the desired features is ability to save a screenshot of the visible fragment of the map, along with the markers. Do you have some ideas how can I implement such a feature? I k...

Calculating bounding grid coordinates to a user click on google maps/google earth

Hello, I have a requirement to calculate the centroid or geodesic midpoint of when a user clicks in between the lat/long grid crossing. The crossing forms a square in most parts of GE and sometimes elongated rectangles. This is due to the shape of the earth of course. I'm looking for a valid mathematical formula that would allow a ...

Google Maps directions text format

Ive noticed that sometimes gmaps directions display a turn like this: Turn right at Gallardo and sometimes like this: Take the 1st left onto Arregui I need to always see the 1st,2nd,.. like in the second example. Is there a way to receive directions in this format always?. Thanks. ...

How does google maps print work?

Even without a "printer-friendly" view to print directions, when I choose "File->Print" in my browser, the page is formatted differently than the original view. How does Google achieve this? Is it a special javascript facade? ...

Getting coordinates and names for a driving route

Hello all, Is there any way to get the geo coordinates for a driving direction from google maps API? if we use URL to show the driving direction with source and destination address we'll get the map and route as an webpage, instead of that i like to get the co-ordinates and details in some xml like format. ...