none
Maps v8 - multi-language support BUG? RRS feed

  • Question

  • My requirement is to support Canadian-French (Quebec) presenting the Maps V8.

    I have noticed the following behavior which may be a bug on Microsoft's end.

    When rendering the map with the following URL parameters:
    https://www.bing.com/api/maps/mapcontrol?setLang=fr-CA

    setLang=fr-CA is used to get French text on map labels.

    In Google Chrome, I am seeing weird characters within the labels.
    Such as "Nouvelle-A%COSSE". The "A%" seems to represent an "e" with an accent.

    This is a unicode problem on Chrome only? 
    Because it works just fine on Firefox.

    To reproduce, use Chrome and visit:

    https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk#loadMapSync+HTML

    Hit the HTML tab and modify the map control reference with this:
    https://www.bing.com/api/maps/mapcontrol?setLang=fr-CA

    Then click on the run button right above the HTML editing pane.

    Chrome shows the A% for letter "a" with accent.
    Firefox clear shows the text just fine, Nouselle Ecosse - with the accent on the capital "E".

    Thanks


    Tuesday, May 30, 2017 2:55 PM

Answers

  • I'm able to reproduce this. I will log this as a bug for the team to look into. As a workaround, you can disable the vector labels and have the map render the labels directly on the map tiles like how all previous versions of Bing Maps rendered the labels. To do this, add the following option to the map options:

    liteMode: true


    [Blog] [twitter] [LinkedIn]


    Tuesday, May 30, 2017 4:44 PM
  • More good news, the issue appears to be with the demo site and not with the actual API. If you use this language in your application normally, it will work. 

    [Blog] [twitter] [LinkedIn]

    Wednesday, May 31, 2017 12:25 AM

All replies

  • I'm able to reproduce this. I will log this as a bug for the team to look into. As a workaround, you can disable the vector labels and have the map render the labels directly on the map tiles like how all previous versions of Bing Maps rendered the labels. To do this, add the following option to the map options:

    liteMode: true


    [Blog] [twitter] [LinkedIn]


    Tuesday, May 30, 2017 4:44 PM
  • Absolutely fantastic for the workaround.

    Thank you Ricky!!!

    Tuesday, May 30, 2017 5:00 PM
  • More good news, the issue appears to be with the demo site and not with the actual API. If you use this language in your application normally, it will work. 

    [Blog] [twitter] [LinkedIn]

    Wednesday, May 31, 2017 12:25 AM