google-maps

Customizing a google map that is embedded with an iframe

So I have been looking at Google Maps and they have the feature of "making" your own map and adding in markers and things of that nature through their own interface. The way they have you embedding it on your web site is through the use of an iframe. I have been reading the documentation for Google Maps and the examples shown are when ...

Google Maps - load window on marker click

I'm trying to create a Google Map with multiple markers on it, that loads an alert when a marker is clicked. var map = null; function setupMap() { map = new GMap2(document.getElementById("map")); map.setUIToDefault(); map.setCenter(new GLatLng( 0, 0 ), 1); map.enableDoubleClickZoom(); // Create the marker icon - will be repea...

GMap - onrightclick event not firing if cursor not on top of a marker

You can replicate the bug here: http://www.trailbehind.com/node/1148091 For some reason, the following event will fire only if the user's cursor is over a marker, but I have seen it work properly elsewhere, and I'm not sure what's messing things up on my site: GEvent.addListener(map, 'singlerightclick', function(latLng, src, overlay) {...

Google Maps API - Map no longer displays

Hello, I setup a directions page for a small company that I do work for. It has a few markers and lets people get directions to the location from wherever they are. For some reason, the page decided to stop coming up in the browser. I've done just about anything I could think and nothing has worked. I'm not the best at javascript but I...

Get Google Maps data into an iPhone

Programming an iPhone App, I need to use Google Maps api to get directions and routes. Unfortunatelly, Google Maps works around javascript. Any idea how to do this? ...

using jquery selectors within google map does not work

I'm using jquery and googlemaps (gmap2). I am finding issues with using the jquery selectors for class divs on the map. When I try to select the div (both ID and classes) I get a null return. I am guessing there's some kind of conflict with the JS google maps. To verify that my jquery is correct, I have tried to select tags and different...

GLatLngBounds - wrong center and zoom level

I'm trying to use GLatLngBounds to make all the markers on the map visible. Below is a small example of what I'm doing. INV.createMap = function(containerId) { var map = null; var geocoder = null; var bounds = new GLatLngBounds(); if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById(containerId)...

google maps : want to add/remove GEvent Listener to map

I want to add and remove the same event for Google map. because I have attached a Listener to 'moveend' event on map , so event a big infoWindow opens , then also 'moveend' event occures ,which I don't want to run for this thing. Any idea how can I turn ON and OFF 'moveend' event Listener ? ...

Do you use any GoogleMaps Api PHP wrapper class/libarary/script to plot maps?

I want to display google maps (mutliple markers etc) and just found that there is one paid solution "GMap 2.3" for PHP. I was looking for an open source solution. Do you guys code using Google Maps API functions or use any wrapper script? What are some good links for this? ...

Is it possible to change a route given by Google Maps

Hi, I'm writing a Google Maps mashup. I ask google the path from one location to another location. Google Maps gives me a Map with the route. I would like to take this route somehow and modify it (adding or removing points) before displaying it in the map. Is it possible? How would you do that? Many thanks! ...

jQuery Thickbox and Google Maps Extinfowindow

I am trying to place a link into an Extinfowindow that obtains its content through an Ajax call. So, I click on a push pin marker, up pops the Extinfowindow with my ThickBox link in it, and when I inspect the DOM for the entire page at that point, I can see the element correctly showing up with the "thickbox" class. The link looks like...

Get routes and directions from Google Maps without using Javascript?

So, if you are writting an application -not a website- and you need to resolve the directions from one location to another, how can you get the information from Google Maps without using Javascript? I am wondering if there's any set of special URL or APIs on Google Maps that given a pair of locations (two city names) would return the ro...

Is it OK? clearOverlays() in GMap API V2 to Google Maps API V3?

I use Google Maps API V3. I migrate My site GMap API V2 -> V3. but coped because I used the clearOverlays() method to delete an existing object at once in the V2 , and it deleted an object in what had been abolished in V3 individually. V2 map.clearOverlays(); V3 map.set_visible(false); popup.close(); is it OK? or other solutio...

Trying to figure out a way to have a Google map pop-up from inside Facebook.

Here's the deal: I have an fb app I wrote mostly for my own benefit. (you can play with it at http://apps.facebook.com/bicyclelog/log.php?uid=0 if you like...) Anyway, the problem is this: Facebook lobotomizes Javascript. Google Maps is Javascript based. Therefore, I have to put the map in an iFrame. But FB puts restrictions on iFrames,...

Image Remapping Algorithm

Hi all, I have been developing (for the last 3 hours) a small project I'm doing in C# to help me choose a home. Specifically, I am putting crime statistics in an overlay on Google maps, to find a nice neighborhood. Here is an example: http://otac0n.com/Demos/prospects.html Now, I manually found the Lat and Lng to match the corners of...

How to get walking or driving distance via google maps with php

I've worked with google maps before, but when implementing it, I've never found any documentation on how to get the exact distance between 2 given locations via Javascript or PHP. 1) It has to be the exact same distance shown on maps, not that formula that gives you the distance in a straight line from one geopoint to the other. 2) It ...

Can I style a Google Map?

How much control do I have regarding the styling of a google map? Can I make it more closely resemble a site's colour scheme or are we stuck with pastels? ...

Clickable markers on GTileLayerOverlay

I have a web application that needs to display 30,000 markers on a map at the same time. I don't want to use any kind of clustering. I need them to all be displayed. I also need them to be clickable. The user can click on each point and a popup will come up with information about that point. Even at a low zoom level when there are thous...

Google maps showing a visitor’s location by grabbing their IP address ...

Hi there, I'm trying to replicate the following exemple : http://www.leigeber.com/2008/04/map-your-users-using-the-google-maps-api-and-php/ How to integrate this PHP source code with the following Java script (replacing lat/lgt with $latitude/$longitude above ??? Looks easy but I'm a bit lost in mixing PHP and Javascript together ! ...

Can I change/set the Google Maps API Key dynamically from JavaScript?

I'm faced with a problem with a small web application I'm developping: My HTML-source will be integrated into the HTML source on another site. I'm using a Google Map in my code, so I have to pass a API-Key for loading the Google Maps-script on the current domain. The problem: My code will be integrated on two different domains, requirin...