google-maps

Make a div content (googlemap) fullscreen

Hi iam trying to make a button that will turn the googlemap div into fullscreen.. this is what i have untill now, but it is not working correctly .. problem is: the map will only half loaded the code is below, and a screenshot how can i repair this? where is the problem? thanks in advance http://img32.imageshack.us/img32/9365/halfload...

GoogleMaps API - How can I get a Markers Id after the Dragend event listener for said marker?

I have added several markers into MarkerManager and have kept tabs of them in arrays and basically pushed the markers into the arrays. I have dynamically created an individual DragEnd eventListener for each marker as it has been created. I need to be able to pull out a unique id of the marker or even the event listener itself would wor...

Retrieve position of a google maps v3 marker to Qt in a desktop app with QtWebKit

I'm building a Qt app with Python where you can point and click at a (google) map and get the coordinates of the location. The map is shown through a QWebView loading a simple HTML page and the user can create markers by clicking. Screenshot of the widget after clicking on the map. However, I'm having trouble to retrieve the just-clicke...

Google Maps: openInfoWindowTabsHtml + GDownloadUrl (Ajax call) question

I am facing the following problem. On an Google Map I want to add info windows with tabs, where content is loaded from an external file using the GDownloadUrl method. The code works about fine, but with two problems. a) The first time I click on a marker, nothing hapens. I need to click twice to get an info box. After that it works ok...

Which code snipplets in PHP can create a input form, which creates a new set of data in my mysql database?

I am using the Google Maps API with parts in javascript and others in PHP. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google Map...

Google maps: place number in marker?

How can I display a number in the marker on a google map? I want to do server side clustering and I need to display how many points the cluster represents. ...

Removing google mail markers with jquery after getting them from xml

Hi there, I'm trying to create a page that contains a google map. The map is filled with markers from an xml file. I just can't figure out how to remove "old" markers, that don't match the latest user input. At the moment my js stops after the very first xml item. The clearList.push(marker); is supposed to put the generated marker awa...

google map dynamic array waypoints

Hi; I want to create wyptns array. But it will be dynamic array. It excepts max 20 elements.I think that,I must combine four array for 70 elements. But how?? Then embedded this code.. var request = { origin: start, destination: end, waypoints: waypts, optimizeWaypoints: true, travelMode: google.maps.DirectionsTravel...

How to feed this XML stream to Google maps?

I have a url that returns XML coordinates in the below format. I want to put a Google map on my page and feed it these push pin coordinates. Is there a nice and quick way to do this via Javascript or jQuery? <messageList> <totalCount>1</totalCount> − <message> <esn>0-7396996</esn> <esnName>JOHN</esnName> <messageType>TEST</messageType> ...

How do I convert this XML to KML?

I am a little new to this, but I need to convert the below XML to KML format so I can feed it into Google maps. Can anyone help with this? <messageList> <totalCount>1</totalCount> − <message> <esn>0-7396996</esn> <esnName>JOHN</esnName> <messageType>TEST</messageType> <messageDetail> ALL IS WELL AT CURRENT LOCATION.</messageDetail> <tim...

Loading city/state from SQL Server to Google Maps?

I'm trying to make a small application that takes a city & state and geocodes that address to a lat/long location. Right now I am utilizing Google Map's API, ColdFusion, and SQL Server. Basically the city and state fields are in a database table and I want to take those locations and get marker put on a Google Map showing where they are....

How do I clear this setInterval

Normally, id set the interval to a var and then clear the var like var the_int = setInterval();clearInterval(the_int); but for my code to work i put it in an anonymous function: function intervalTrigger() { setInterval( function() { if(timedCount >= markers.length){timedCount = 0;} google.maps.event.trigger(markers[t...

Passing Results from SQL to Google Maps API in CodeIgniter

I'm hoping to use Google Maps on my site. My addresses are stored in a DB. I’m pulling up a page where the information is all dynamic. For example: mysite.com/site/business/5 (where 5 is the id of the business). Let’s say I do a query like this: function addressForMap($id) { $this->db->select('b.id, b.busaddress, b.buscity, b.buszip')...

How Transport for London Website Works

Hi, Here let me clarify , I have no intentions to peep in to or any evil intention towards tfls database and other related information. But , ofcourse Millions of users are greatly beniftted the way it serves the information. http://journeyplanner.tfl.gov.uk/ So , If we want to create some site like tfl, journeyplanner , what are the ...

How to get all visible markers on current zoom level

Here are some points: 1) I have some markers on the map and records associated with it on the right panel besides the map. They are connected via numeric id, which is stored as a property of marker. 2) All the markers are stored in an array. 3) When the user zooms in the map, records, associated to only visible markers should be shown on...

Get Degrees (0-360) from One LatLng to Another in JavaScript

Can someone help me fill in the blanks with native JavaScript? function getHeading(lat1, lon1, lat2, lon2) { // Do cool things with math here return heading; // Should be a number between 0 and 360 } I've been messing around with this for a long time and can't seem to get my code to work right. ...

Google map geoXml infowindow

Hi, I have a KML with a route which I display on Google Maps via the GGeoXml. Because I want to have Placemarks from the KML in a sidebar (next to the map) I have created a KMl parser which displays them (I don't want to use the geoxml). I've successfully created the sidebar which interacts with the map. The only problem is that i don'...

google maps api keys to be set webserver-wide, (as env var? inside apache?)

I have a web site with many virtual hosts and each registered with several domain names (ending in .org, .de), site1.mysite.de, site2.mysite.org Then I have different templating systems based on several programming languages (perl and php) in use on the web server. The Google Maps Api requires a unique Google Maps api key for each vhos...

Load static google map into UIImageView?

I'm trying to show a small static google map in my app. I'm wondering if it's possible to do this using UIImageView? It doesn't seem to be working for me but maybe I'm doing something wrong. This is what I have (I stripped the URL so that it's easier to read): NSURL *mapurl = [[NSURL alloc] initWithString:@"http://maps.google.com/...

GDownloadUrl, KML, Sidebar and Icons

Hello, I have experience of embedding Google Maps into web-pages and extensive programming experience. I have created a web-page that uses a call to GDownloadUrl with a KML file generated in Google Earth. A sidebar is generated and a check- boxes act as filters on the placemarks. The issue I have is that the code overwrites the icon s...