Google maps 可以为谷歌地图设计自行车路线颜色吗?

Google maps 可以为谷歌地图设计自行车路线颜色吗?,google-maps,Google Maps,我有以下代码在谷歌地图中显示自行车层。但我想知道是否有可能把深绿色换成另一种颜色 我尝试过设置strokeColor is var mapOptions,但这似乎不起作用 <script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script> <script> function initialize() { var myLatlng = new google.maps.

我有以下代码在谷歌地图中显示自行车层。但我想知道是否有可能把深绿色换成另一种颜色

我尝试过设置strokeColor is var mapOptions,但这似乎不起作用

    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
    <script>
function initialize() {
  var myLatlng = new google.maps.LatLng(53.231472, -0.539783);
  var mapOptions = {
    zoom: 17,
    center: myLatlng
  };

  var map = new google.maps.Map(
      document.getElementById('map-canvas'),
      mapOptions);

  var bikeLayer = new google.maps.BicyclingLayer();
  bikeLayer.setMap(map);

}

google.maps.event.addDomListener(window, 'load', initialize);

    </script>
    <div id="map-canvas"></div>

函数初始化(){
var mylatng=new google.maps.LatLng(53.231472,-0.539783);
变量映射选项={
缩放:17,
中心:myLatlng
};
var map=new google.maps.map(
document.getElementById('map-canvas'),
地图选项);
var bikeLayer=new google.maps.BicyclingLayer();
bikeLayer.setMap(map);
}
google.maps.event.addDomListener(窗口“加载”,初始化);

目前没有应用自定义样式的选项