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...
Hi, I'd like to know how to put multiple markers for Google Maps using Javascript API v3.
I tried the solution posted here, but it does not work for me for some reason:
var directionDisplay;
function initialize() {
var myOptions = { zoom: 9, center: new google.maps.LatLng(40.81940575,-73.95647955), mapTypeId: google.maps.Map...
has any simply way ?
thanks
...
i want to set the width and height of the infowindow using v3
thanks
...
Hi,
I am having problems with the google maps API V3. It seems that every time I load my page the maps load (including the markers) and then it does a quick reload and removes all the markers. Am I missing somehting? What am I doing wrong?
Here is an example:
http://www.PaulPeelen.com/wp-content/uploads/2010/04/SafariScreenSnapz001.mov...
Using Google Maps API v3, I was able to create multiple google.maps.Circle objects on my map. However, I now need to "connect" them somehow. I have the following map with multiple circles:
I now need to get it to look something like this:
I've looked all over the Internet for solutions, but to no avail. Any ideas?
...
i want to generate some kml string to stroe into database ..
and has any simply way to generate this string ?
thanks
...
in http://code.google.com/intl/en/apis/kml/documentation/kml_tut.html
i want to create a kml file , but i can't find how to set a center of map using google-maps-v3
so how to set .
thanks
...
Hi, I am creating a map using the new(ish) v3 of the Google Maps API
I have managed to get a map displaying using code as below:
var myLatlng = new google.maps.LatLng(50.8194000,-0.1363000);
var myOptions = {
zoom: 14,
center: myLatlng,
mapTypeControl: false,
scrollwheel: false,
mapTypeId: g...
If you use the satellite GMapType using this Google-provided example in v3 of the API, the maximum zoom level has a scale of 2m / 10ft , whereas using the v2 version of another Google-provided example (had to use another one since the control-simple doesn't have the scale control) yields the maximum scale of 20m / 50ft. Is this a new "fe...
I'm trying to make a Google Maps widget for my website but all of the examples are for full-screen mobile devices. The tutorials work when I copy paste them exactly as shown but they don't seem to work when I want them to only occupy a portion of the page.
From what I've read, the v3 is the best API yet (for what I need) because of its ...
Hello, I want to put a tooltip made myself with divs when the mouse is over a marker, but I don't know how to get the screen position to put the div on the correct position, here is my code:
google.maps.event.addListener(marker, "mouseover", function() {
divover.css("left", marker.get("left"));
divover.css("top",...
Instead of Google Maps API's default info window, I'm going to use other jQuery tooltip plugin over marker. So I need to get marker's DIV and its pixel position.
But couldn't get it because there are no id or class for certain marker. Only I can access map canvas div from marker object and undocumented pixelBounds object.
How can I ac...
Hi,
I'm trying to use the MVC objects in google maps version 3. What I can't seem to figure out is why my zoom_changed method is only invoked once. When I first load the map the zoom_changed method is invoked. But not when I zoom on the map.
function MarkerWidget (options) {
this.setValues(options);
this.set('zoom', this.map.z...
I have a number of public custom Google Maps created via http://maps.google.com/ - obviously associated with my google account.
Can I access these maps via the Google Maps javascript api? The api doesn't appear to work with the manually created maps located on maps.google.com from what I can tell?
And if not, is there another way to s...
In Google Maps v3, I can't seem to get my infoWindow to a width smaller than 200px. Here is the code I'm using:
var latlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 15,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var myMap = new google.maps.Map(document.getElementById("map_canvas")...
Firstly, only reply if you have experience using API V3 (i can speculate myself!)
I had a little go with V3 and it looked great but would love to hear from someone who's given it a bit of use before I start working with it and deploy it on a live site.
I'm only looking to do very basic things:
put markers on a map
custom markers
info...
I am new to jQuery. I've done some simple things with it but what I am attempting now is a over my head and I need some help.
I am building a locator for all the firearms dealers in the US for a client. I am working within Drupal. I have a proximity search by zip-code that works great. If you search by zip a list of paginated results sh...
I have some jQuery code that goes through a table of location results and puts corresponding pins on a map. I am having trouble figuring out how to set the bounds so that when it goes through the loop and generates the markers on the map that it zooms and pans to fit the markers in the view. I've tried implementing code from some similar...
It's probably something really simple, but I can't find it in the docs and I can't find a map with it to check it's source...
I use version 3 of the API.
I guess it's an something to add in myOptions?
var latlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
center: latlng,
...