var encoded = $("#ContestRouteInfo").val(); map.config.routingPoly = new google.maps.Polyline({ map: map.config.map, strokeColor: '#fc4c02', strokeOpacity: 0.75, }); map.config.path = google.maps.geometry.encoding.decodePath(encoded); map.config.routingPoly.setPath(map.config.path);
if (place.geometry.viewport) { map.fitBounds(place.geometry.viewport); } else { map.setCenter(place.geometry.location); map.setZoom(14); // you can set perfect zoom level here. }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)