Hi,
Im trying to load the google maps api's dynamically.
I'm using the following code:
var head= document.getElementsByTagName('head')[0];
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= 'http://www.google.com/jsapi?key=<MY_KEY>;
head.appendChild(script);
but when trying to create the ma...
Hello all,
in my iPhone application I'm loading the driving directions to a WebView from a bundled html page (because i can't find a way to load it directly to the MapKit), but it taking too much time to load, is there any better way to do so? Like in the iPhone default map application
code :
NSString *filePathString = [[NSBundle ...
After some advice on how to clear markers on googlemaps, I have a map which I would like to have only one marker showing (basically the last marker clicked). I would like the user to be able to change thier mind and click multiple times, but not have confusing map of previous clicks etc.
I have tried the map.clearOverlay(); function, bu...
I have a scenario where I am using Google Map JavaScript API to process the address after user submits the form. However, I want to post result, that Google API returns back, to server side for further processing within the same form submission. How can I achieve this? Thanks in advance for your advice.
...
On click of a marker, I'm opening an InfoWindow on a Google Map.
The code is like this:
var point =
new GLatLng(
mPointSet.points[i].lat,
mPointSet.points[i].long);
var marker = new GMarker(point);
function createMarker(marker, message)
{
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(
$("#mark...
I have an info window that I have 2 images on and i want to hide and show alternatively based on the user clicking an tag. This works fine when the window is in its normal state. When I put the same HTML in the Maximized content it cause a postback in IE only. Firefox works fine.
Here is my js and markup. Can anyone suggest how to ...
The Scenario
Using jQuery, I have a page that has a popup overlay containing locations marked using Google Maps.
The overlay works using 2 pages setup as follows:
The main page opens an overlay via a text link to a map. The complete map page is then loaded into the overlay.
The map page itself contains Google's API and initialization...
Hi!
I'm generating a GoogleMaps map in a dialog.
So, is it possible to print this map? I've seen that it's possible if only I render this map to an image format, something like a printscreen of the map. But, I have no idea how to do this.
Thanks!
...
There are a number of problems, which seem to be fairly well-known, when using the Google Maps API to render a map within a jQuery UI tab. I've seen SO questions posted about similar issues (here and here, for example) but the solutions there only seem to work for v2 of the Maps API. Other references I checked out are here and here, alon...
I have been created code for the location specify by user entry through text box(e.g. http://maps.google.com/local/add/lookup?welcome=false&hl=en-US&gl=US ) the code is given below.
I'm totally new for this technology plz help me as ur best.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xh...
Hi!
I'm trying to change names of google MapType(s).
Here is example (in Croatian language)
http://www.worldplaces.net/hr/hrv/15/sinj/
So, the names are Karta, Satelit, Hibrid, Teren and Zemlja
I was checking the code but there I can't find anything useful.
Please help for finding solution!
Thanks in advance,
Ile
...
When I create a Google Map and Share it, to the left, there is a list of links to locations on that map. I would like to be able to add that list of links next to the embedded map in a web page. See example: http://aquascapedesigns.com/index.php/pond-tours/saint-charles-illinois-anytime-pond-tour
I have the map in place. I just need to ...
My current code is pretty quick, but I need to make it even faster so we can accommodate even more markers. Any suggestions?
Notes:
The code runs fastest when the SQL statement is ordered by marker name - which itself does a very partial job of clustering the markers (the names of markers in the same location are often, but not alway...
Hey ALL!
I'm using the google maps API with openstreetmap (see the following example code),
I'd like to add the google satellite view too.
How can this be accomplished?
var tilesMapnik = new GTileLayer(copyOSM, 1, 17, {tileUrlTemplate: 'http://tile.openstreetmap.org/{Z}/{X}/{Y}.png'});
var mapMapnik = new GMapType([tilesMapnik],...
GOOGLE MAPS API V3 is what i'm trying to use.
I have all the coordinates in mysql. I just, for example, need to take 5 listings and put them on a map but I'd like to be able to find the center point based on the multiple coordinates I'd like to display, and the zoom level as well. Yeah know?
I'm having the time of my life with somethin...
hey
i have a google map in my site
and attach to it event handler of moveend
GEvent.addListener(map, "moveend", function()
{
map.clearovrelays();
GetLayerDataFromServer(); //it set the markers again on the map acording the map position
});
and also i have event handler for click on marker
GEven...
I know that happens with commercial websites so I was wondering if commercial iPhone apps that use the MapKit (especially those that generate a lot of traffic) need to get any sort of license from Google Maps as well.
My best guess would be no, but just asking in case someone knows better. Also, I would guess Google gets license fees fr...
I'm currently looking into methods of implementing server-side caching of roughly 10,000 Google Maps geocoder responses in a J2EE web application. Since Google limits the number of geocoding requests to 15,000 per day, I need a method to store my requests for 24 hours. The requests originate from an XML file that sits on the server, and ...
If I do something like
map = new GMap2(document.getElementById(mapCanvas));
directions = new GDirections(map);
directions.load("SOME DIRECTIONS HERE");
Under firefox on LInux it works great!
Under safari it displays the map but not the directions.
What gives?
...
I am using Google Maps, I have a lat-lon for the first point and a street name for the second point.
How can I get Google Maps to search for the street name in the same city as the latlon?
Also, specifying 1234 Some Street, City, State should work as well as 1234 Some Street
...