google-maps

how to change (x,y) to geo-location in google-maps v3..

in v2: point = map.fromContainerPixelToLatLng(new GLatLng(x,y));} in v3 i do this: point = map.MapCanvasProjection.fromContainerPixelToLatLng(new LatLng(x,y)); and error.. how to do this? thanks ...

Need help in google map on asp.net

I have a google map on my asp.net page. on which its showing image(marker) on cityname . please tell me how can i fire event onclick on that marker. ...

how to create a Polyline in google map v3 , and make it enableDrawing..

this code is in v2: var polyline = new GPolyline([point1,point2], "#ff0000", 5); map.addOverlay(polyline); polyline.enableDrawing(); and how to do in v3 ?? thanks ...

Catching 'Last Record' in Coldfusion for IE javascript bug

I'm using ColdFusion to pull UK postcodes into an array for display on a Google Map. This happens dynamically from a SQL database, so the numbers can range from 1 to 100+ the script works great, however, in IE (groan) it decides to display one point way off line, over in California somewhere. I fixed this issue in a previous webapp, th...

how to get the google map's pageX when dragend ,the version is v3..

this is my code: google.maps.event.addListener(marker, 'dragend', function(event) { alert(event.pageX)//undefined }); and i want to get the (x,y) about mouse when dragend.. thanks ...

Launch Google Maps app

Hi, I'm trying to launch Google maps from my application. I'm using: GeoPoint center = _mapView.getMapCenter(); Uri uri = Uri.parse("geo:"+center.getLatitudeE6()+","+center.getLongitudeE6()); Log.d(LOG_TAG, "Launching Google Maps with Uri: ("+uri+")"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); ...

how to clear all map overlays or markers from google map in android?

I want to clear all map overlays or markers from google map and using following code if(!mapOverlays.isEmpty()) { mapOverlays.clear(); } which is giving me exception can any one guide me? am i right or wrong if i am wrong then kindly provide me the solution to my problem. i want map clean if there is any marker on it. an...

Removing the Google Maps API Premier Terms-of-Use/Logo/etc. links?

Hi, is it legal to remove the logo/terms of use link displayed on my integrated google map (google maps premier)? The problem is that when I zoom into the map, the link tends to get longer and loger and overlays the whole website which is pretty ugly. Of course it is possible to give the div container a "overflow: hidden;" flag which hel...

GoogleMaps JSP taglib; maps not showing

I have followed the instructions on the googlemaps website but I'm unable to get any maps to show (attempting example 1 and 2) I did the following Added jar to web-inf/lib, included it in my jsp using the taglib declaration (This should be correct since my IDE netbeans now recognises the tag and makes it bold when used) I then added t...

Google Maps API with Rails 3.0

I'm wondering if anyone out there has worked with Google Maps API with Rails 3. I'm looking for launching ideas, gems, plugins etc. I played around with ym4r-gm plugin for several hours today, with not much luck. Have you played with this API on rails 3 yet? Thanks in advance! ...

How do I change the mouse cursor when I mouseover on a particular area in Google Map v3?

Using the Google Maps API v3: How do I change the mouse cursor when I mouseover on a particular area? ...

How to extract the lat/lng of pins in google maps?

I want to extract the latitude and longitude of a set of about 50-100 pins in a Google maps web page. I don't control the page and I don't need to do it more than once so I'm looking for something quick and dirty. I've got FireFox with FireBug as well as Chrome and all I need is something that's easier than re typing all the numbers. ...

Using GoogleMaps with JXMapKit

I have been searching on the web to see if I can use GoogleMaps with the JXMapViewer. According to this, it is illegal, but the article is more than three years old. Could anyone be kind enough to tell me if I can use GoogleMaps with the JXMap viewer? I know that Google has recently allowed desktop applications to use their static maps p...

get click from a link inside a google maps info window

I m making a google maps with some coordinates and directions and when a user clicks a marker and appears a info window there's a link avaliable, when user clicks it, i want to catch click event inside info window, and make zoom to this marker, anyone had to deal with link clicks in google maps api could help me with some links, document...

How to capture page with google map?

I have a UIComponent with Google map in the continer. I need to capture this container for making a preview. My integration looks like the following: <mx:UIComponent id="mapContainer" width="410" height="300" /> googleMap = new Map(); mapContainer.addChild(googleMap); But if I do("this" - is my UIComponent) ...

Alternatives to Google Earth for sat image

I've been asked to add Google Earth images to a desktop app (civil engineering modelling app) I was under the impression that Google's license didn't allow you to do this. Are there any other easily accessible, and similarly high resolution, image sources anyone can recommend (Blue Marble, terraserver) ? As a bonus, any library that le...

Adding ID's to google map markers

I have a script that loops and adds markers one at a time. I am trying to get the current marker to have an info window and and only have 5 markers on a map at a time (4 without info windows and 1 with) How would i add an id to each marker so that i can delete and close info windows as needed. this is the function i am using to set th...

how to turn on and turn off "double right click" on google-maps-v3

how to do this thanks updated when you "double right click" ,the map will be zoom out so i want turn on zoom out or turn off it . and how to turn on and off "double left click" ??? thanks ...

can we catch the 'double right click' event on google-maps-v3 ??

can we ? i want to do something like this: google.maps.event.addListener(map, 'db_right_click', function(event) { alert('ssss') } how to catche the 'db_right_click' event ?? is there any way ?? ...

how to clear the 'double right click ' on google-map-v3..

this is my code, and I can't remove the mousedown eventlistener : //*********** double right click ********/ var c =0 ; function time(event){ if(event.button == 2){ c++; setTimeout(cc, 600); } if (c >1){ alert('ok i get it') } } //$('#map_canvas')[0].mousedown(time); $('#map_canvas')[0].addEventListener('mousedown...