-
Notifications
You must be signed in to change notification settings - Fork 0
/
Custom-Google-Maps.txt
51 lines (36 loc) · 1.73 KB
/
Custom-Google-Maps.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
ADD TO BODY TAG /////////////////////
onload="initialize()"
PAST WHERE YOU WANT MAP TO APPEAR /////////////////////
<div id="map_canvas" style="width:100%; height:300px"></div>
PASTE AT THE END OF YOUR CONTACT PAGE TEMPLETE (BEFORE FOOTER PHP) /////////////////////
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
var latlng = new google.maps.LatLng(-00.000000,000.000000);
var settings = {
zoom: 16,
center: latlng,
mapTypeControl: true,
mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
navigationControl: true,
navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
styles:[
{
"stylers": [
{ "hue": "#7f00ff" },
{ "saturation": -35 },
{ "lightness": -10 },
{ "gamma": 1.87 }
]
}
],
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"), settings);
var companyLogo = new google.maps.MarkerImage('http://YOURDOMAIN.com/images/map.png', new google.maps.Size(50,31), new google.maps.Point(0,0), new google.maps.Point(25,15));
var companyPos = new google.maps.LatLng(-00.000000,000.000000);
var companyMarker = new google.maps.Marker({ position: companyPos, map: map, icon: companyLogo, title:"YOUR TITLE"});
}
</script>
TO CUSTOMISE MAP /////////////////////
http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html