Commit 951b5d8 1 parent 7280ada commit 951b5d8 Copy full SHA for 951b5d8
File tree 3 files changed +43
-13
lines changed
3 files changed +43
-13
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,6 @@ $maincolor: #333;
381
381
#friend_name {
382
382
color : white ;
383
383
font-weight : bolder ;
384
- // border-bottom: 2px dashed white;
385
384
}
386
385
387
386
#namer {
Original file line number Diff line number Diff line change 8
8
geocoder ,
9
9
markersArray = [ ] ,
10
10
directionsDisplay ,
11
- polyline = [ ] ,
12
- businessesArray = [ ] ,
13
11
infowindow ;
14
12
15
13
function initialize ( ) {
145
143
console . log ( midpoint ) ;
146
144
console . log ( response . routes [ 0 ] . legs [ 0 ] . steps [ 0 ] ) ;
147
145
148
- var midMarker = new google . maps . Marker ( {
149
- position : midpoint ,
150
- map : map ,
151
- } ) ;
146
+ // var midMarker = new google.maps.Marker({
147
+ // position: midpoint,
148
+ // map: map,
149
+ // });
152
150
153
151
var request = {
154
152
location : midpoint ,
184
182
}
185
183
}
186
184
185
+ var placeMarkers = new google . maps . MarkerImage (
186
+ '/assets/orange_marker.png' ,
187
+ null , // size
188
+ null , // origin
189
+ new google . maps . Point ( 10 , 28 ) , // anchor (move to center of marker)
190
+ new google . maps . Size ( 20 , 28 ) // scaled size (required for Retina display icon)
191
+ ) ;
192
+
187
193
function createMarker ( place ) {
188
194
var placeLoc = place . geometry . location ;
189
195
var marker = new google . maps . Marker ( {
190
196
map : map ,
191
- position : place . geometry . location
197
+ position : place . geometry . location ,
198
+ icon : placeMarkers
192
199
} ) ;
193
200
194
201
google . maps . event . addListener ( marker , 'click' , function ( ) {
Original file line number Diff line number Diff line change 22
22
{ saturation : - 20 }
23
23
]
24
24
} , {
25
- featureType : "road.local " ,
25
+ featureType : "road" ,
26
26
elementType : "geometry" ,
27
27
stylers : [
28
- { hue : "#00ffee" } ,
29
- { saturation : 50 }
28
+ { color : "#e2cfbc" } ,
29
+ ]
30
+ } , {
31
+ featureType : "road.arterial" ,
32
+ elementType : "all" ,
33
+ stylers : [
34
+ { visibility : "off" }
35
+ ]
36
+ } , {
37
+ featureType : "administrative.neighborhood" ,
38
+ elementType : "all" ,
39
+ stylers : [
40
+ // { color: "#ffffff" },
41
+ ]
42
+ } , {
43
+ featureType : "road.local" ,
44
+ elementType : "all" ,
45
+ stylers : [
46
+ { visibility : "off" }
47
+ ]
48
+ } , {
49
+ featureType : "landscape" ,
50
+ elementType : "all" ,
51
+ stylers : [
52
+ { visibility : "off" } ,
53
+ { color : "#ffffff" } ,
30
54
]
31
55
} , {
32
56
featureType : "road" ,
105
129
'/assets/orange_marker.png' ,
106
130
null , // size
107
131
null , // origin
108
- new google . maps . Point ( 8 , 8 ) , // anchor (move to center of marker)
132
+ new google . maps . Point ( 10 , 28 ) , // anchor (move to center of marker)
109
133
new google . maps . Size ( 20 , 28 ) // scaled size (required for Retina display icon)
110
134
) ;
111
135
131
155
google . maps . event . addDomListener ( window , "load" , initialize ) ;
132
156
133
157
</ script >
134
- < section id ="map-wrapper ">
158
+ < section id ="map-wrapper ">
135
159
< article > </ article >
136
160
< div id ="bottom_nav ">
137
161
<%= link_to "" , meet_requests_path , class : "glyphicon glyphicon-th" %>
You can’t perform that action at this time.
0 commit comments