Skip to content

Commit 41690bf

Browse files
committed
disabled mapType and street wiew
1 parent 7db9a15 commit 41690bf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

js/DrawDirectionOnMap.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ var polyLineColor = '#FFCC00'
2727

2828

2929

30-
3130
function initialize() {
3231

3332
var config = {
3433
zoom : mapZoom,
34+
mapTypeControl: false,
35+
streetViewControl: false,
36+
disableDoubleClickZoom: true,
3537
center : new google.maps.LatLng(mapCenter[0], mapCenter[1])
3638
};
3739
var googleMap = new google.maps.Map(document.getElementById("map_canvas"), config);
@@ -54,10 +56,10 @@ function initialize() {
5456

5557
var address = '';
5658
if (place.address_components) {
57-
place.address = [
58-
(place.address_components[1] && place.address_components[1].long_name || ''),
59-
(place.address_components[2] && place.address_components[2].long_name || '')
60-
].join(' ');
59+
place.address = [
60+
(place.address_components[1] && place.address_components[1].long_name || ''),
61+
(place.address_components[2] && place.address_components[2].long_name || '')
62+
].join(' ');
6163
}
6264
var loc = place.geometry.location;
6365

0 commit comments

Comments
 (0)