google-maps

Alternative Map API's (Like Google Maps)

Trying to shortlist online map tools that can be used for a business. So far I've got: Google Maps Bing Maps Yahoo Maps Openstreetmap.org Map quest Can anyone think of any others? ...

Javascript - how to give variables in a loop names like var_1, var_2 etc

Hello I am playing around with the Google Maps API V3. I want to create a series of markers on a map. I followed a tutorial and got: Now this code adds one marker - the first one. I am completely new to Javascript but from my PHP knowledge, I am thinking that the reason this is not working is because all of the markers are being sto...

Google Maps v3 API Extend Bounds. Javascript How-To?

function initialize(){ // Creating a map var map = new google.maps.Map(document.getElementById('map'), { zoom: 10, center: new google.maps.LatLng(53.0123601276819, -2.44519164333635), mapTypeId: google.maps.MapTypeId.ROADMAP }); var m = []; function addMarker(title, lat, lng) { m[m.length] = new google.maps.Marker({ position: new...

styled maps with google maps v3 - how to set the water color on the landscape geometry?

i am upgrading my code to the google map API v3, i was using an overlay to apply my own style but now i was trying to use the styled maps which are much faster. i am getting pretty well getting the appearance i like, the only thing i can't do is to set the color for the water feature only inside the landscape. which means basically the ...

search an address using google maps javascript API

i have created the following function to show and address in JS: function showMapForm(idDiv, divWidth, divHeight, idLat, idLng) { document.getElementById(idDiv).style.width = divWidth+'px'; document.getElementById(idDiv).style.height = divHeight+'px'; if (document.getElementById(idLat).value=='' && document.getElementById(id...

Changing background color in Google Map InfoWindow

I want my InfoWindows in my Google Map implementation to have a black background color. "backgroundColor" is not an available option for InfoWindows. See here. I put a div tag in the content option with a black background and white text. However, that still renders with a white border. Does anyone know a way to get a completely black b...

Best way to Integrate a Javascript result with PHP

Ok. Basically I am utilizng the Google Maps API - It is Javascript. My site runs off PHP for the most part. My intention is to make calls to the Google Maps API to get the distance between various already geocoded longitude and latitude points. I then want to display them to my users. An example. I have (in php): $home=array(latitu...

Determine southwest and northeast point for bounds in Google maps

I have a set of markers on google map (say 6). Now i want to zoom in only to certain level that displays all markers well for that i used getBoundsZoomLevel(). Problem is I dont know how to determine the BOUNDS from array of latitude and longitude. Can somebody tell me how to determine south-west and north-east point for a bound??? I ...

Get rid of sidebar when linking to Google Maps Streetview

I'm using the v3 maps JS API google.maps.getPanoramaByLocation to create a link to streetview with lat/lng which looks like: http://maps.google.com/?cbll=52.099659,0.140299&cbp=12,0,,,&layer=c, but I was wondering if anyone knew how to get rid of the large left-hand sidebar that appears in street view by default? I've checked map...

how i can get latitude , longitude of a location programmatically or using a api

are any way to get the latitude or longitude of a location. if yes then how. are any way to do this using google map api. ...

SimpleGeo DotnetOpenAuth for C#

Hi guys, I have moved simpleGeo sample from VB(langsamu) to C#. This is an amazing feature for my needs but i not abled to fix the OAuth class that i can't initialize correctly to test-it. I haved posted my complete project in this bottom link including sample. The simpleGeo.dll implement base classes to connect and query simpleGeo. Cli...

open googlemaps infowindow from html link...

Hi, I have a googlemap with several markers on it and I want to be able to open the info windows for each marker from an HTML list below the map. I seem to understand that I need to use 'trigger' in my javascript code for the map, however, although I have found a couple of examples I don't know how to get them working with my map. the...

how to integrate google map in php & mark places with flags

How can I intergrate google map in php and mark the places there in the map dynamically. I want to show areas with specific details from database to google map ...

google maps reverse geocoding xml problem

i need to extract data from an xml file but have a problem with a sintax for an addressline im using this $node->AddressDetails->Country->SubAdministrativeArea->AddressLine; if also tried $node->AddressDetails->Country->SubAdministrativeArea->PostalCode->AddressLine; this is the result , on P3 (La Julia ) http://maps.google.com/map...

Can the opacity of a Google Maps GInfoWindow or GMarker be changed separately from the maps opacity?

I've built a Google Map window that uses two tile layers. The opacity of each layer can be adjusted dynamically using javascript. When I adjust the opacity of a tile layer, all child controls including GMarkers and GInfoWindows inherit the opacity setting. Is there any way to ensure that the Markers and InfoWindows are always visible reg...

how to get the similar city

i have a city ALMA but it can be more then 5 in the whole world so user can be confused. how i can show the all place who have a word ALMA in their location. i want to get all city name who have word ALMA. are any api can give me all city , county name match to my name ALMA. if i can use GMAP API [google] then how i can retrieve all ...

IE8 - Zoom problem with google Map in Fancybox

Dear all, I have a weird problem with IE8 while using fancybox and gmap together. Firefox and Safari work fine. I load a map in an iframe that is then opened with fancybox. <iframe src="path/gmap.php?mapId=1" width="300" height="300" scrolling="no" frameborder="0" frame="none"></iframe> On the map, you can see a polygon. If you loo...

Android: How can I display a google map in an android app?

i have built an app that does some cordinate claculation for me. it works well it retreives points froma database i built as well. What i want to do now is when a menu button is pressed display a map. I did a tutorial that is simplay a map display.. thats all it does when it runs. but when i try to incorporate what i have done in my...

Google Maps JS API in Eclipse

Hello, I'd like to have an "autocomplete" functionality in Eclipse for Google Maps JavaScript API. For example: I write: map = new google.maps. and then I'd like Eclipse to offer appropriate methods - like this: Map Marker Polyline Polygon ... etc. see http://code.google.com/intl/cs-CZ/apis/maps/documentation/javascript/reference....

How to show Google Local business marker and InfoWindow in custom Google Map ?

I want to show the location of my business on my website using google maps. Instead of creating the marker, infowindow, etc... by hand, I would like to reuse the one found in Google Local business listings. For instance, this business could use this map. The advantages are numerous : it is already done, it will be updated when you updat...