/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
/* Returns a static Google map image
* ie: http://maps.googleapis.com/maps/api/staticmap?center=41.156677,-87.877624&markers=color:485C59|label:A|41.156677,-87.877624&zoom=16&size=900x400&maptype=roadmap&sensor=true
*/
function getStaticMap(location, zoom, size, maptype, mcolor, mlabel, mlocation) {
return "http://maps.googleapis.com/maps/api/staticmap?" +
"center=" + location +
"&zoom=" + zoom +
"&size=" + size +
"&maptype=" + maptype +
"&sensor=true" +
"&markers=color:" + mcolor +
"|label:" + mlabel +
"|" + mlocation";
}
URL: http://code.google.com/apis/maps/documentation/staticmaps
Comments
 Subscribe to comments
                    Subscribe to comments
                
                