Create links over google map

<!DOCTYPE html>
<html>
<head>
<script
src="http://maps.googleapis.com/maps/api/js">
</script>

<script>
var map;
var gurgaon = new google.maps.LatLng(28.4595,77.0266);
var delhi = new google.maps.LatLng(28.6139,77.2090);

// Add a Gurgaon control that returns the user to Gurgaon
function GurgaonControl(controlDiv, map) {
controlDiv.style.padding = '5px';
var controlUI = document.createElement('div');
controlUI.style.backgroundColor = 'green';
controlUI.style.border='1px solid';
controlUI.style.cursor = 'pointer';
controlUI.style.textAlign = 'center';
controlUI.title = 'Set map to Gurgaon';
controlDiv.appendChild(controlUI);
var controlText = document.createElement('div');
controlText.style.fontFamily='Arial,sans-serif';
controlText.style.fontSize='12px';
controlText.style.color='white';
controlText.style.paddingLeft = '4px';
controlText.style.paddingRight = '4px';
controlText.innerHTML = '<b>Gurgaon<b>'
controlUI.appendChild(controlText); ...  Read More

Share This: