google-maps

Passing GLatLng from array to Google

Hello All, To preface this, I am a complete programming amateur so this may be quite easily solved. As is though, it is frustrating me to no end. Basically, I have a database of Venue Names with GLat and GLng (other stuff too) that I am pulling down to my website based on a geolocated search. The javascript that I have pulls in a forma...

how to use TinyMCE(rich text editor) in google-maps info window..(i made a demo.)

this is the demo rar file:demo.rar when i drag the red block to the google-maps ,it will be changed to a marker, and it will has TinyMCE when you click the info window, but my program is : it can not be written when i click it the second time, the first time: the second time(can not be written): and my code is : <!DOCTYPE html PU...

How can I store Google Maps search results in an array?

Hi All, I'm working on an app where I need to query Google for businesses near a current location. How do I go about storing them in an array? I don't want to exit the app and open Google Maps, I want to be able to display the addresses in a list format (Table View, I suppose). Any help would be greatly appreciated. Thanks! Thomas Ex...

Allow user to add directions on a map (google maps API)

I know you can programmaticaly add markers for directions on the map. But how do you let the user do that? Like on the Google maps site, you just right click and then click on 'directions from/to here' and the marker is added. This functionality seems to be absent from the API. EDIT: Maybe I wasn't clear enough. I am not talking about t...

How do I display a local html file in a UIWebView?

I have a relatively simple question that I cannot seem to find the answer for. While doing the Google Maps Java API Tutorials, I ran into a problem. I can load an HTML file from the web, but when I try it locally, it just displays the contents of the file instead of running the script. Here's what works: NSString *url = @"http://code.g...

Google Maps - Given a Adress, State & ZIP, how can I dynamically create a ext link to GMAPs?

I have a user profile page on my web app which has contact information. I'm like a GMAPs icon that when clicked opens a new with with Google Maps, and has the contact information pre-populated and submitted. Is there a simple way to do this without having to call APIs to generate a link? Thanks ...

has google-maps a unable-Drawing method when i Drawing via enableDrawing method..

i do this that can drawing when click: polyline.enableDrawing(); and my program is : how can i unable it(when i click a div element) thanks ...

how to delete a marker on google-maps..

i think it has two ways : 1.right click and select the 'delete me' 2.has any other way ??? so how does enable the right-click on google-maps,and then delete the marker. thanks GEvent.addListener(marker, 'mousedown', function(e) { alert(e) if (e.button == 2){ alert('sss') map.removeOverlay(marker); } and whe...

How can you make the copyright text in a Google Map wrap when the map is small?

When you embed a Google Map on a web page, copyright text is included on the map. If you embed a map with a small width, the copyright text extends outside of the <div>, instead of wrapping onto two lines within it. This is the HTML that Google Maps inserts for the copyright text: <div style="-moz-user-select: none; z-index: 0; positi...

Get coordinates of Google Maps markers

I am creating a databse containing the names and coordinates of all bus stops in my local area. I have all the names stored in my database, and now I need to add the coordinates. I am trying to get these of a website that contains them all as placemarks on a Google Map. It seems to me like they are being generated from a local server, an...

display custom tile for missing tiles in google maps app

I am working with google maps in flash, and i would like to know how to serve up my own image tile for the "we have no imagery at this zoom level..." error. I dont want to serve up an entire map of images - just for the times when google has no image does the tile layer base dispatch an event? (i couldnt find any in the api) is there ...

Google Maps v3, custom control with textbox: can't perform input

Hi, I am trying to add a custom control to my google map (v3): want to have search box just near the other map controls. So I add a div with <input type="textbox"> on it, and it's being shown on the map. But the porblem is that the textbox is inaccessible: i can't type anything inside it, or even focus on it. function SearchBox() { ...

Is there a library/module for CodeIgniter for Google Maps API?

Ideally something I can plug and play pretty readily an quickly that supports GeoCoding ...

Geocoding Chinese addresses using Google Maps API in Python?

I have looked into Geopy and googlemaps (http://py-googlemaps.sourceforge.net/) and they both do not work for Chinese addresses. My app is stored on the Google App Engine. What I want to do is to parse a file containing addresses of restaurants in Hong Kong, and then Geocode the addresses and store the Lat and Lng in the datastore. How d...

Inputfield inside custom info window in Google maps isn't selectable

Hi I've created a map with markers that shows a custom info window when clicked on. I did that by creating a div as a new GOverlay and placed it in a G_MAP_FLOAT_PANE to make it a google map pane. No problems so far. The problem im having is that when a put a inputfield inside my custom info window the inputfield isn't selectable!? ...

How do I set this div's style in the style sheet?

<style type="text/css"> #[':0:adId'] { /* this does not work */ background:red; } </style> <div id=":0:adId">Loading...</div> Google Maps use this id format. How do i set the style? ...

how to set the 'resultList' on google-maps..

i want make a Control on google-maps: function foot() {} foot.prototype = new GControl(); foot.prototype.initialize = function(map) { var foot=footDiv = document.createElement("div"); $('<div class="t"></div><div id="bottom" class="bottom"></div>').appendTo(foot); foot.id='foot'; $(map.getCon...

How can I search based on distance with the Google Maps API?

So here's the issue... I have a field where users can type in their address (which will be GeoCoded via Google Maps API). I have several addresses of widgets in my database (saved as address.. again can easily be geocoded). What I need is for the user to type in their address and for a list of my widgets to come up based on distance f...

Google Maps API - How to get map type constant name (G_NORMAL_MAP, G_SATELLITE_MAP...)?

I would like to get current map type constant name (G_NORMAL_MAP, G_SATELLITE_MAP...) for later use. getCurrentMapType() returns GMapType class. Here I can call getName() method, but it returns only button label, that varies according to language. Is it possible to get constant name? I would like to store it and later use for setting m...

How do I search using the Google Maps API?

Hello all, I'm trying to figure out how to search for nearby businesses in an iPhone app using the Google Maps API. I'm completely new to Javascript, and have waded through some of Google's sample code easily enough. I found how to grab the user's current location. Now I want to search for "restaurants" near that location. I'm just bu...