google-maps

Google Maps API - LocalSearch data results

Hello, I am using the LocalSearch control in my Google Map API. Here is a link to an example of what I have so far: http://code.google.com/apis/ajax/playground/?exp=maps#map_control_localsearch Now, I would like to "grab" each result from the LocalSearch when ever I click on a item. So if my search returned 2 results, I would like to g...

problem with openInfoWindowHtml for multiple points using events

I am a beginner and using openInfoWindowHtml to show the balloon text. my application has an option to show single location and multiple location. My single location balloon text works fine using openInfoWindowHtml(); But when i go in for multiple, it always shows the last points text and the click event for all the points never happen...

Get Map address or Location Address in Android

Hi, I am writing an app that requires to get the current map location. My Map file works fine by it self, but I need to get the address (see addressString below at the buttom) from another Activity. I tried getAddress/setAddress (setters/getters). They do not work. They always return 'no address' (the default). Here is my code... How ...

Creating new markers from an array in Javascript google maps API

Hi I am trying to add markers onto a google map to identify the states using: function initialize() { var map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(-25.641526,134.472656), 4); map.setMapType(G_NORMAL_MAP); map.setUIToDefault(); var states =["-35.083236,138.503909","-24.607069,144.667969","-1...

Browser context menu on custom Google Maps overlays

I’ve got the following Google Map: http://fooo.org/GMaps/ When clicking on the icon, a custom overlay pops up. I want the users to be able to open the browser’s context menu on that overlay to copy the text or to open the links in a new tab. The default behavior doesn’t allow this, because the underlaying map is eating up the respectiv...

Google maps api - inserting "How to arrive from here, to here" as an overlay?

Hi there, I have been using the google maps api and i need to display from what i understand is a standard overlay that displays the Address and links of "how to arrive from here here", "to here", "apply zoom here" etc. I got the overlay working like this but its not standard, i can customize it... is there a way to insert the standard...

Controlling marker from external Event

How I can add external control like click event to any anchor out side of map to open a marker. Is there any stand alone example or can any one guide me how I can achieve this. here is example but he is using his library. I can not use his library because my most of the code is already completed. http://vigetlabs.github.com/jmapping/...

Google Maps API - point of interests

Hi. I am working now on little project. In one view i am returning data for google maps API (longitudes and latitudes). Under the map I have to implement few buttons to add point of interests on the map in this location which is actually showed. There could be some buttons/types of POI like schools, banks, atms etc. So, let's go back...

Google Maps v3 - Events being fired

I'm trying to find a way to print every single Event that is being fired during the process of loading a Google Maps v3 (JavaScript API). http://code.google.com/apis/maps/documentation/v3/reference.html Question: Does anyone know of an existing demo that prints the Events, e.g. "bounds_changed" etc, when fired? Or know how I would cod...

A good way to display large images online

I need to show an image that is 4000x6000 px. What are your experiences with displaying large images online? My initial idea was to use the GMap cutter and the Google Maps API to show the image. GMap Cutter takes an image and cuts it appropriately for use as a google map. My problem with approach is that the image will be changing often...

Twitter - Streaming API for worldwide tweet monitoring?

I'm looking to create a Twitter map visualization much like these: http://twittermap.tv/ http://beta.twittervision.com/ However, according to the Streaming API docs: https://twitterapi.pbworks.com/Streaming-API-Documentation#locations Twitter only permits streaming API access of an area's bounding box with each side's length equal t...

access google map data from php

I want to build a json_encoded list of all restaurants nearby a point using PHP looking to build a php function which takes Parameters: Latitude,longitude,radius (in meters). And return a json_encoded list I have a API key and I work with js but I wat it done with server-side scripting php dose any one know how to do it. I want to...

setFocus(overlayItem) of ItemizedOverlay is not working

Hi, I am working on android application and I am able to displayed multiple icons on map using ItemizedOverlay and I have also implemented onTap(int index) method of ItemizedOverlay to display icon specific information in a required window. Now, I want to change icon of selected overlay when user click on some other coponent. I am call...

Google Maps API; how to add a scale measure on a map?

I suspect part of my problem is that I'm having a mental freeze on what the technical name for this is: But you see on http://maps.google.co.uk/ the bottom left has a small ruler indicating how big x Miles is at the current zoom level? If I'm using google Maps API version 2, how do I add such a wonderful do-hickery widget thing to my we...

Display country names in Google Maps

I have code like this that sets the map type to Terrain View: map = new GMap2(document.getElementById("map_canvas")); map.setMapType(G_PHYSICAL_MAP); //Terrain View The G_PHYSICAL_MAP type used to display the country names, so Google must have changed this recently. Is there a way to add the country names back? This is ho...

google maps api java

i have a console application, needs to find the distance and route between two places using the google maps api. that means i do not have a browser and hence no javascript. is it possible to do it using java using a HTTP request or something. i have tried geocoding and can find the latitude and longitude of a given address using HTTP req...

Not understanding drawAt() method for com.google.android.maps.Overlay

Trying to make an google maps overlay in an android program. Inside of my overlay's draw method, I have two ways of adding a pin. One of them works, and one does not. Unfortunately, the one that does not work is also the only one that has the ability to add a shadow! Any help? @Override public void draw(android.graphics.Canvas canvas, ...

Accessing loop iteration in a sub-function?

I'm using the Google Maps API to plot several points on a map. However, in the click event function below, i is always set to 4, i.e. its value after iterating the loop: // note these are actual addresses in the real page var addresses = new Array( "addr 1", "addr 2", "addr 3", "addr 4" ); for (var i = 0; i < addresses.length; i++) { ...

Retrieving "businesses" with Google Maps API?

This is an example of a Business on Google Maps http://tiny.cc/5IMLd It has elements attached such as: Reviews from various sites (qype, viewlondon, etc...) Details provided by various sites Photos and other content I don't know how to go on about retrieving such Business and associate any items generated on my website. What I have...

How do I overlay custom polygons with custom tooltips in a Google Maps Gadget?

I'd like to be able to achieve something like this: http://www.google.com/intl/en_us/2008election/ However, I haven't tried making custom Google Maps Gadgets before, and I have no idea where to start (which API version is capable of this, is a Google Gadget what I should be doing, etc). ...