javascript - Bing Speech and Bing Maps conflicting in Windows 8 Store app -
bing maps dosent work when bing speech referenced in win8 system(works win8.1 system). in veapicore.js , veapimodules.js there window[$mapsnamespace]. when both spech , maps referenced maps never intialized in namespace. speech present which.the maps namespace has 2 dll files refernced bing speech. happens in windows 8 system. in 8.1 both speech , maps in maps namespace. there solution this.
i've come across before. it's speech api overriding microsoft namespace. there 2 options. first add bing maps script reference after speech reference. bing maps sdk extends microsoft namespace , not override it. second option change namespace of bing maps control:
add snippet before referencing sdk js files in html file below:
window.$mapsnamespace = 'microsoftjs';
then replace newly created custom namespace ‘microsoft’ below:
microsoftjs.maps.loadmodule('microsoft.maps.map', { callback: createmap, culture: 'us', homeregion: 'en-us' });
Comments
Post a Comment