google-maps

How to add labels on Google Maps Pinpoints?

Creating a google map with store locations within 50 miles of user entered address. Have map & pinpoints showing correctly but all of the pinpoints just have a dot on them. I'd like to be able to label them A, B, C, D, etc so that I can list out locations & addresses in sidebar. How would I do this? Here's the code I'm using to add my ...

Inserting Google Maps into a WYSIWYG editor, then saving and retrieving properly

Hi, I'm trying to extend jWysiwyg with an function to add a map from Google Maps. I can get the map all right, but I'm having problems with how to handle the generated map so it can be saved with the page and then retrieved. To open the process up a bit: User enters editor which is created using jWysiwyg. User clicks on a button whic...

why does my google map get glitchy in mobile safari?

I'm building an iphone web app, I have a google map embedded it has multiple points on the map, if I scroll around on the map it will sometimes move everything on the screen and get very glitchy. Is there some kind of code I need to prevent this? i've seen google maps that dont do this in mobile safari, for example http://search.missouri...

How to escape charaters in the title of a marker in a Google Maps?

Say I have this piece of code: var marker = new google.maps.Marker({ position: location, title: 'Búfals', map: map }); This creates a marker as expected but if I hover the mouse over it I don’t see 'Búfals' as I would expect (instead I see the html code). This doesn't make any difference: var marker = new google.m...

How to find the ocean using Google Maps API

I am trying to figure out where the ocean is in an arbitrary Google Maps view. I actually have the lat lon (a range of points, when joined together form the coastline) of the coastline. But how do I tell which side of this line is the coastline? One possible solution would be to find the latlon of the nearest service or town or busine...

Google Maps API V3 not equal to Google Maps site on distance between two zipcodes

Hello, I have put together some code to calculate distances between two zip codes. When I enter the zip codes through the api I get a different distance than I do with the actual google maps site. Anyone have an idea on why this is occurring? A few ideas I have are: I am not centering to the zip code -> I was looking around to see how...

iphone location works in simulator with local code but not on server?

so this is really weird to me but my code works properly for getting the geolocation if I run my code locally in the simulator, If I have the code on my server it does not work in the simulator, yet the same url and code on my server works on my actual iphone? It seems to not pick up on the geolocation javascript when its on my server in...

"Find nearest location" by Zip/Postal Code?

I need a "find nearest location" on our website. Where visitor enters their zip/postal code, then they are redirected to specific webpage for our nearest location. We have forty USA and Canada locations. How can I build something like this? Could I do this with the Google Maps API? I already have a custom map on Google Maps. It's plo...

Marker on Google Map added only once.

I have the following code: function clicked(overlay, latlng) { var icon3 = new GIcon(); icon3.image = "marker.png"; icon3.iconAnchor = new GPoint(15, 40); var marker2 = new GMarker(latlng, { icon: icon3, draggable: true, title: 'Drag me' }); map.addOverlay(marker2); } Each time I click on the map a new marker is pla...

How to open jQuery UI dialog box on Google Maps click.

I am using the following code to show a jQuery UI dialog when the mouse is clicked on the map: GEvent.addListener(map, "click", clicked); function clicked(overlay, latlng) { $('#dialog').show(); }; Both clicked function and show() function works fine on their own but when I want to open dialog box by clicking on the map it does no...

Loading GMaps via ajax

I'm loading a page containing a GMaps using the ajax() method of jQuery. The HTML page i'm loading is: <script src="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;sensor=false&amp;amp;key=MY_API_KEY" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { if (GBrowserIsCompatible()) ...

Can google host my kml file (all my site)?

i want to save all user's (who visite my site) map , but i think google can hosting those kml file , yes ?? http://code.google.com/intl/zh-CN/apis/maps/documentation/mapsdata/developers_guide_javascript.html thanks ...

can we save kml info on google ,and then load them on my site ..

DUPE: http://stackoverflow.com/questions/2512874/can-google-host-my-kml-file-all-my-site i want to hosting on google, and show it on my site , can we ?? thanks ...

has any way to load a map Features(user saved) not using create a kml file..

i want to load user's map-Features not using create a kml file. how to do it.. thanks ...

why "google is not defined " when i load google js api..

i follow the api step by step,but can't load successful.. this is my code: <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> </head> <body > <script type="text/javascript" src="http://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22gdata%22%2C%22version%22%3A%222.x%22%2C%5B%22c...

how to make a "atom feed" insteadof 'kml file' to loaded by GGeoXml..(i use django)

you can load geo-info via two way below: var g = new GGeoXml("http://zjm1126.3322.org/mymedia/b.kml"); map.addOverlay(g); or var g = new GGeoXml("http://tagzania.com/rss/user/blogwatcher/7wonders%2Bnew/"); map.addOverlay(g); if i want to saving the features(user made on google map,line and point) ,i have to make a kml or make a ...

Android - map acticvity - unespected resume

I've implemented the following tutoral: http://developer.android.com/guide/tutorials/views/hello-mapview.html I thought everything was fine with my code, but soon i realized sometimes i would got an error: Unexpected resume of com.android.launcher. i've found a solution here: http://code.google.com/p/android/issues/detail?id=2035 howe...

Embed Google Map into HTML page based on GPS coordinates

I have a PHP photo gallery that reads the GPS coordinates from images. I'd like to modify it to use the coordinates and include a google map on the photo page. Is there a simple way to display a google map on an HTML page by supplying just this pair of information? Thanks. ...

where is the 'googleBar' in google maps api v3..

i write this in api v2: map.enableGoogleBar(); i want to using v3,but i can't find enableGoogleBar function, where is it ? thanks ...

Google map search bar resize in GWT

I have a gwt application that uses the map api for a mapWidget. I added the integrated search for the map with setGoogleBarEnabled(true). It works fine, but the input field is 6px height. How can I resize it? Thanks Balint ...