Below is my code. The problem is that recordsOut[0] is always undefined, whatever I try.
I know it has to do with the callback result. I tried to add some delays to give it more time to give a result back, but that did not help.
Any idea (with example please)? Very much appreciated.
function getAddress(id, searchValue) {
geo.getLo...
I'm working on an application in Flex will utilize mapping features. I have experience with the Google Maps API in Flex, but it seems sort of limited to me (as compared to other APIs and the Javascript API). In particular, I'm interested in developing some clustering (grouping places together to prevent too many points from being on the ...
Hi All,
I am trying to use the Google Map API- I've successfully managed to add an icon but when it is clicked nothing else happens...
This is my code:
function placeMarkerAtPoint(point)
{
var marker = new GMarker(point,{icon: icon});
GEvent.addListener(marker,"click",function() {
marker.openInfoWindowHtml('here is som...
In my project.gwt.xml file I have
<script src="http://maps.google.com/maps?gwt=1&amp;file=api&amp;v=2&amp;sensor=false;key=MYKEY" />
But, when I load my page I get the google map gadget to come up, but with no map and an error message "Your page is missing the Google Maps API." Is there a different place I need to load th...
We'd like to use Google Maps to keep track of local garage sales. We've created a map (see here) and we'd like to embed that map on our website. However, when we do, we lose the sidebar of the map that contains a list of all the garage sales.
We're quite familiar with how to embed a Google; they've made the process quite simple. However...
I have small database of business and their addresses. Using the Google Geocode API, I've been abel to get maybe 80% accuracy. If a business has a simple address on a street, Google usually does a good job. However, many business have odd addresses, which are presented differently depending on the database. Example:
Royal Copenhagen...
rather than using a textnode to show content im trying to figure out how to load a webpage with params into the google map.
here is the code im working with
if (GBrowserIsCompatible()) {
var map = document.getElementById("map_canvas");
var m = new GMap2(map);
m.setCenter(new GLatLng(36.158887, -86.782056), 13);
m.openInfo...
Hello
I would like to add an overlay image on a google map. This image is a SVG file I have generated (python with svgfig).
I am using the following code
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(48.8, 2.4), 12);
// ground overlay
var boundaries...
I'm using the Google Maps API to geocode some addresses. What is the easiest way to build objects using the childnodes of <Placemark> ? I may also have multiple placemarks returned in the same response depending on the level of detail provided in the request. I would like to build multiple objects in those cases and those objects will be...
i want to be able to put more information into the bubble so maybe making it dynamically longer based on the content that is inserted into it.
thanks
...
I would like to display a text label next to the markers on google maps. I've used Virtual Earth before and I'm just starting to use Google Maps. I tried setting the Title property but that only changes the roll over text.
Is there a way to display a small line of text underneath a marker that will stay there as the user zooms, pans...
I realise that you can open the google maps app ready for directions by doing something like this:
NSString* urlString = @"http://maps.google.com/maps?saddr=London+UK&daddr=Birmingham+UK";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: urlString]];
But is there a parameter I can add to automatically switch to bus...
Hi,
I want to create an overlay on top of Google Maps that displays different streets in different colors.
In the Google Maps API it is possible to create markers and polygons that cover certain areas.
Is there a way to somehow mark different streets?
...
I'd like a way to obtain a static map (an image file) based on two coordinates representing the desired rectangle or area.
Suggestions?
...
I've managed to get two functions working to calculate distances between two point on a google map. One that I gleaned(stole) from various places on the web and the other using the GLatLng.distanceFrom method in the Google Maps API.
The reason I'm using two functions is because I noticed something odd about the results I was getting fo...
As the user pans around a Google Map, a list of of currently visible markers is updated. This list contains up to 1000 items, and it slows down when several hundred li's are shown or hidden all at once. It's less than half a second, but it's getting annoying.
An array (newLiList) contains the items which should now be visible. Anothe...
I know this is available in version 2.x of Google Map API. But I couldn't find how to use it in v3, I'm not even sure if it's implemented yet. So I was just wondering if someone had the idea.
Thanks.
...
I am developing travel portal for India in which i want to add Google Maps of each hotel which is saved in the database. My problem is how do I create the map dynamically?
...
Hi,
I would like to put a button on top of a Google Map next to the Map, Satelite and Hybrid buttons.
I was wondering if its possible and how would be the best way to do it?
So ideas I have are overlaying a image on top of the google map that is clickable but not sure if that will take all the events away from the google map.
Do you ...
Hi everyone,
I'm having an issue with multiple markers on google maps - I currently have a MySQL database storing info (location info). In php I then extract this info and loop through each postcode to dynamically create the required javascript to place a marker for each place in my database.
This works successfully so I know that I'...