google-maps

How to create something in between a marker and infowindow with googlemaps api

I need to create markers for my map that contain html. After looking at lots of tutorials, it seems like markers are made of an image, and do not allow html to be added. InfoWindows half solve my problem, I know I can add multiple instances of them, but my problem is I need to be able to stylize them, and I don't want close buttons on ...

Google Maps: Dynamically resize infowindow

How do I resize the info window once it's opened? I have a hyperlink inside the window which generates an AJAX-request; on the callback I would like to resize the info window. ...

How to figure out the size of the area in a google maps window

I have a Map object created through the google maps api and I want to figure out the distance (km or mi) between the corners of the current view. I know how to get the coordinates of the corners, is there a utility function to calculate the distance between points? ...

How to obtain the HTML DOM element of a Google Maps marker?

Hey everyone, Given a GMarker JS variable, how do I obtain the HTML DOM element that represents it? I need this so I can insert a <div> of my own into the map with the correct z-index. Thanks. ...

Google Maps - controls disappear in Firefox but not Internet Explorer 6

I've got a Google Maps JavaScript bug which I can't get to the bottom of. The code works as in you see the maps on the page, but the controls seem to be "under" the map images, you only see them on page load, and when you zoom in or out quickly. Sorry for just dumping code here, but I honestly can't see where the issue is. I've tried: ...

javascript cannot be cached?

Just curious on this, is it possible to cache javascript? That is, to minimize client cpu needed to recalculate some logic each time I refresh the browser? Take the google javascript map for example. When I emebed the map on my page, is there any cache mechanism that I can use on my page? ...

OpenLayers vs Google Maps ?

Hi, I have used Google Maps a couple of times, but what wondering about OpenLayers... Before starting any kind of coding, here are a couple of questions that come to my mind, and you might help me about : Why would I use OpenLayers instead of Google Maps ? Except for it's OSS licence, anyway Did you encounter any situation in which y...

Google maps not being interactive

Hey, I just started using Google maps, and am having a problem. Adding overlays is working fine. If I add controls (zoom, left/right etc.), they are also working fine. But Googlemaps isn't allowing me to drag, even if I set map.enableDragging(). It also won't respond to any of my GEvent.addListeners. I've looked on other sites, and ...

Stick Images together

I just tried to use Google Map Buddy to get satellite image from Google Map. This application first download small images from google map and then stick them together into new image. I had to wait about 2 hours to get images download my computer and it looks like it downloaded all images (22,194 images) but then the app told me that it c...

Why doesn't my use of Google Maps' panTo() method or directions work?

I am having problems with centering the map using the panTo() method - as well as making the directions (from/to) to work like tabs. Here is my code: http://dpaste.com/76251/ ...

Google maps: Set different zoom levels for two different maps

Hi, I have two maps on a page, one is a map of the world, and the other is a closeup of the current place they picked on the map of the world. I would like to set different zoom min/max levels for each map but: G_NORMAL_MAP.getMinimumResolution = function(){return 11}; Seems to set the same min/max for both maps, I can't set them to d...

Google Maps API - GDirections.getDuration() returns null first time, works second time

I'm having a dilemma with the Google Maps API - I'm using the GDirections object to get the time needed to travel between two points. I've tested the following code in Firebug, so that the chances of the rest of my code affecting this one call is low (I can't link to the actual map; it's on a local computer). var start = "NY, USA"; var...

Example of getting country and state/city from google maps api using .net

Hi does anyone have a snippet of sample code to get country and state/city via the Google Maps API of a request from an asp.net application (in code behind)? Any help much appretiated! Thanks! ...

jQuery Grid and Google Maps Problem

Have you ever used jQuery Grid with google maps?, it seems like jQuery grid bug google map, if i clic the map the litle hand will stay closed and drag the map in the way i move the mouse no mather if i m not clicking anymore. Any idead how can i fix this behavior? . I know its jQuery grid, because if i remove the grid the map behavior no...

GMaps: set MarkerOptions

The Google Maps [MarkerManager][1] has a function to get a marker at a location: getMarker(lat:Number, lng:Number, zoom:Number) with this description: Returns a marker given latitude, longitude and zoom. If the marker does not exist, the method will return a new marker. If a new marker is created, it will NOT be added to t...

Google Maps + Jquery: Marker bug in IE

I was hoping someone could shed some light on this. I have a jquery-based web application I'm building. The application has a page that it loads, then generates a Google map on the loaded page once the ajax call is complete. My problem is that the marker 'bubbles' don't render correctly in IE7 or IE6 (screenshots provided). They are fi...

Plot latitude/longitude values from CSV file on Google Maps (or similar platform)

I've been provided with a table of data which includes columns for latitude and longitude. The data is US only. What I've like to do is to feed this data to Google Maps or a similar tool like Live Maps and have the data points plotted. Does anyone have a code sample or know of a library that makes this task simple? I can read the values...

Integrating CRM with Google maps

Hi, Just started testing Zoho Crm as a CRM solution for our company. Someone asked for a Google map on the page showing our upcoming engagements.I know Zoho provides an API that allows accessing its data from the outside, but I actually need to integrate the map on the data-entry form.If anyone could provide a pointer to any mashup with ...

how can i use JXMapViewer in my applet?

hi i want to write an applet that must render my map images with zoom/pan tools, i find out JXMapViewer can help me, how i can use it? where i can find related docs which help me to write an applet that request on my image server to provide tiles to render? what about image server and .... !!!!??? help me on : image server structure, ti...

MKMapView loading all annotation views at once (including those that are outside the current rect)

Has anyone else run into this problem? Here's the code: - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(WWMapAnnotation *)annotation { // Only return an Annotation view for the placemarks. Ignore for the current location--the iPhone SDK will place a blue ball there. NSLog(@"Request for annotation view"); if ([...