none
Bing Maps Map Control v8 Directions Renderer Not Working With Custom Polylines RRS feed

  • Question

  • Hello,

    The directions renderer is not limiting the map view to the selected route when custom polyline options are specified.

    When I submit a transit directions request that returns more than one route,  all routes are displayed on the map. The correct behavior is observed when polyline options are removed. 

    For example, these options produce the error but removing them corrects it. 

    Am I missing something?  Any secret to getting the correct behavior? 


    pl_dir_bing_manager.setRenderOptions({
    itineraryContainer: div,
    autoUpdateMapView:true,
    displayManeuverIcons:true,
    displayRouteSelector:true,
    displayStepWarnings:true,
                                    displayWalkingWarning:true,
    showInputPanel:false,
                            transitPolylineOptions:{
    strokeColor:new mps.Color(.8,51,119,205),
    strokeThickness:6,
    visible:true
    },
                            walkingPolylineOptions:{
    strokeDashArray:"1 2",
    strokeColor:new mps.Color(.8,51,119,205),
    strokeThickness:6,
    visible:true
    },
                          drivingPolylineOptions:{
    strokeDashArray:"2 0",
    strokeColor:new mps.Color(.8,51,119,205),
    strokeThickness:6,
    visible:true
    }
    });


    Friday, September 29, 2017 4:43 AM

Answers

All replies

  • With further testing, I am seeing this error when transitPolylineOptions is specified.

    I am also seeing walkingPolylineOptions not working.

    Friday, September 29, 2017 7:25 AM
  • I'm able to reproduce the issue with transit directions when options are set and more than one route is returned. 

    Looks like the walkingPolylineOptions only work when the route mode is walking, but not transit.

    Will log these as bugs. 


    [Blog] [twitter] [LinkedIn]

    • Proposed as answer by Ricky_Brundritt Saturday, September 30, 2017 4:38 PM
    • Unproposed as answer by Ricky_Brundritt Saturday, September 30, 2017 4:38 PM
    Saturday, September 30, 2017 4:36 PM
  • Good news, this is now resolved in the experimental branch of Bing maps V8 and will be added to the main release branch in the January update.

    [Blog] [twitter] [LinkedIn]

    Saturday, December 30, 2017 4:45 AM