Я думаю, вы неправильно понимаете документацию, или, возможно, я неправильно понимаю ваш вопрос!
hideRouteList: true скрывает параметры маршрута, а не разметку маршрута. Это применимо только в сочетании с параметром provideRouteAlternatives: true для объекта запроса, который вы также предоставили.
Ниже мой быстрый тест. Установите hideRouteList в true / false, чтобы увидеть разницу в разметке маршрута ниже. В моем случае нет вариантов маршрута, но у него разная разметка.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>Driving Directions example.</title>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
$(function () {
MySite.MapAdmin.init();
});
var MySite = {};
MySite.MapAdmin = {
mapOptions: {
zoom: 14,
mapTypeId: google.maps.MapTypeId.ROADMAP,
center: new google.maps.LatLng(46.51257, -84.336609)
},
mapRendererOptions: {
draggable: true,
panel: document.getElementById('map-directions'),
hideRouteList: false
},
directionDisplay: null,
directionsService: null,
map: null,
init: function () {
this.map = new google.maps.Map(document.getElementById("map"), this.mapOptions);
this.directionsService = new google.maps.DirectionsService();
this.directionsDisplay = new google.maps.DirectionsRenderer(this.mapRendererOptions);
this.directionsDisplay.setMap(this.map);
this.plotRoute();
},
plotRoute: function () {
var selectedMode = "DRIVING"; // DRIVING, WALKING, BICYCLING
var request = {
origin: new google.maps.LatLng(46.51257, -84.336609),
destination: new google.maps.LatLng(46.61257, -84.336609),
travelMode: google.maps.DirectionsTravelMode[selectedMode],
provideRouteAlternatives: true
};
MySite.MapAdmin.directionsService.route(request, function (response, status) {
if (status == google.maps.DirectionsStatus.OK) {
MySite.MapAdmin.directionsDisplay.setPanel(document.getElementById('map-directions'));
MySite.MapAdmin.directionsDisplay.setDirections(response);
}
});
}
};
</script>
</head>
<body>
<div id="map" style="width: 800px; height: 600px;"></div>
<div id="map-directions"></div>
</body>
</html>