I'm trying to work with the google maps API and am having some trouble. I've created a function called getPoint which accepts an address. It uses the google api to turn that address into a GPoint object using the GClientGeocoder.getLatLng(address,callback) function. The getLatLng() is passed the address and a callback function as you can...
Google Maps API V3 doesn't support the V2 GOverviewMapControl option, yet. I've come across a piece of code at http://dl.google.com/io/2009/pres/Th%5F1045%5FMaps%5FAPI%5FMobile.pdf , silde 19, that gives the code to display the smaller map, but not the draggable, semi-transparent blue box that you generally see here. It's possible, but u...
I have a jQuery script:
$.ajax({
url: "/scripts/secure/development/ajax.asp",
type: "POST",
dataType: "text",
data: "cmd=addresses",
success: function(msg){
var arrRows = msg.split("#*#");
for(i=0;i<arrRows.length;i++){
var record_id = arrRows[i].split("|")[0];
var address = arrRows[i].split("|")[1];
...
I'd like to show a single specific local business on a google map (API V3) with the associated reviews, directions etc.
Example
Can anyone point me in the right direction for doco or code examples?
...
Does anybody know of a good mashup of google maps and weather.com?
...
Hi I created a mashup where a user can enter a location.When using IE7 almost all the location can be geocoded but not with other browsers......what do you think is the issue here or is there a fix for this?I use javascript geocoding like:
function addToMap(response) {
var x="Fa, France";
// Retrieve the object
i...
Android 2.0 has turn-by-turn directions, however, I do not yet see an API exposed for this in the 2.0 SDK. Are there any documented plans to expose an API for calling into the new turn-by-turn features?
...
my code
// do ajax request and get JSON response
for (var i = 0; i < data.results.length; i++) {
result = data.results[i];
// do stuff and create google maps marker
marker = new google.maps.Marker({
position: new google.maps.LatLng(result.lat, result.lng),
map: map,
id: result.id
}...
I got a google map and I load it but I want to change the direction or center by changing the center,how can I do this? I got a code like this to load the map:
function putmap(x) {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("Map"));
// Create new geocoding object
...
I have a database full of addresses and pictures of those locations. Note: I do not have the latitude / longitude.
What I need to do:
Write a function that uses Google API v3 to list a few of these addresses on a Google map, that when you click on the marker, it displays the address and the picture from the database. This is a plugin f...
Hi. This is my first time on stackoverflow and working with Openlayers & Google Maps.
I've been browsing different forums & sites, including OpenLayers.org, to solve my issue. I've done searches on a combination of the following: openlayers, google map projections, and spherical mercator... but I have not found a solution.
Problem: T...
Hi,
I'm wondering if anyone knows whether it is possible to take the content of a Google Maps InfoWindow and place it in an external DIV when the marker on the map is clicked?
I've had a good dig around both the API docs and Google to see if I can find any examples or information relating to this but have had no luck so far. However I'...
hi i wanted to display a us state on google map with borders drawn,
when the user opens up a page i wanted to show in the center that state...with borders drawn.
additionally i wanted to put a button on that page so that user clicks it and draws a rectangle on the state, the system will just have to popup the latitude and longitude of ...
My search interface returns pages of results with each page of results in a separate div.
i.e.
<div id="page1">
result 1
result 2
result 3
result 4
result 5
</div>
<div id="page2">
result 6
result 7
result 8
result 9
result 10
</div>
etc.
I'm generating this dynamically using ASP.NET MVC. I'm paging using jquery to hide all these d...
I'm developing my first Android application and it is based partly on displaying some information in Google Maps. I've managed to set a new center point and a new default zoom level (the area I want to display is a city).
Now is it possible to "lock" that new default view somehow? That is, the user should be able to zoom in/out and pan ...
Does anyone know of a way to make a Google Maps marker "bounce" using JQuery Bounce package?
...
The Google Map doesn't render in the BlackBerry Simulator.
My application has a "View Map" button which on click calls a Google Map web URL.
The error is "ThrownValue in ExecuteScript ReferenceError:GMap2 is not defined in BlackBerry"
I did enable the JavaScript support in the Browser configuration
Device Target:Up to Bold
Blackberr...
In Internet Explorer 7 body onmousemove or document.onmousemove events only seem to fire while the mouse is inside the browser window, not when it's outside. Yet in Firefox the onmousemove event is called correctly when I move outside of the browser window.
How can I setup an event to be called outside of the browser window in IE?
Goog...
I have been looking over this code for the past hour, I cant see why html pop up will not show, I'm probably missing something simple as no errors are reported.
var map;
var markers = new Array();
var geocoder;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
map.setCenter(new G...
Hi everyone,
I have the following kml file that I am loading in Google map, it's locating the pointer correctly however the it's always zoomed at the maximum level.
Using the google map APIs I can set my own zoom level but I am trying to do this using an embedded map in an iFrame (provided by google).
Are there anyways to set the zo...