Answered by:
STREETSIDE is missing from Maptype options

Question
-
Hi,
var map = new Microsoft.Maps.Map(document.getElementById('myBingMap'), {
Please check this screencast - https://www.screencast.com/t/Y3FxVT9B
Here streetside is working on map load, that is fine. But, when i canceled streetview and then go back to Road view and tried to re-open street view, i can't. Since Streetside option is not appearing
Issue is producing in all browser
Please Help!
============ Source code ====================
credentials: $('#bingkey').val(),
center: new Microsoft.Maps.Location(geocode.lat,geocode.lon),
mapTypeId: Microsoft.Maps.MapTypeId.streetside,
showZoomButtons: true,
disableStreetside: false,
UR: 'US',
setMkt: 'en-US'
});
map.setOptions({
streetsideOptions: {
overviewMapMode: Microsoft.Maps.OverviewMapMode.expanded,
showCurrentAddress: false,
showProblemReporting: false,
disablePanoramaNavigation: true,
}
});
- Edited by Denish9797 Wednesday, January 23, 2019 1:14 PM
Wednesday, January 23, 2019 11:44 AM
Answers
-
UR and setMkt need to go into the map script URL, not the map options. For example:
<script type='text/javascript' src='http://www.bing.com/api/maps/mapcontrol?callback=GetMap&setMkt=en-US&UR=US' async defer></script>
Note that in certain regions where there is geopolitical concerns, changing the UR value is blocked by the platform to ensure that a controversial map is not displayed in the wrong region.
- Proposed as answer by Ricky_Brundritt Friday, January 25, 2019 8:39 PM
- Marked as answer by IoTGirlMicrosoft employee Monday, January 28, 2019 7:43 PM
Friday, January 25, 2019 8:39 PM
All replies
-
Hi Denish,
I am using the interactive SDK and unable to reproduce your results. Please try your steps here https://www.bing.com/api/maps/sdk/mapcontrol/isdk/loadmapasync and provide me the exact set of steps you use to reproduce the issue.
Sincerely,
IoTGirl
Thursday, January 24, 2019 8:10 PM -
Simply i have run below code and reproduced issue on SDK, Please check https://www.screencast.com/t/jW5XS9Hcn
Streetview option is not appearing in map type options(only Road, Aerial and Bird Eye available)
======== Source Code =========
var map = new Microsoft.Maps.Map(document.getElementById('myMap'), {
credentials: 'XXXXXXXXXXXXXXXXX',
center: new Microsoft.Maps.Location(40.7128,-74.0060),
mapTypeId: Microsoft.Maps.MapTypeId.streetside,
showZoomButtons: true,
disableStreetside: false,
UR: 'US',
setMkt: 'en-US'
});
map.setOptions({
streetsideOptions: {
overviewMapMode: Microsoft.Maps.OverviewMapMode.expanded,
showCurrentAddress: false,
showProblemReporting: false,
disablePanoramaNavigation: true,
}
});
map.entities.push(new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(40.7128,-74.0060)));
- Edited by Denish9797 Friday, January 25, 2019 10:49 AM
Friday, January 25, 2019 10:09 AM -
UR and setMkt need to go into the map script URL, not the map options. For example:
<script type='text/javascript' src='http://www.bing.com/api/maps/mapcontrol?callback=GetMap&setMkt=en-US&UR=US' async defer></script>
Note that in certain regions where there is geopolitical concerns, changing the UR value is blocked by the platform to ensure that a controversial map is not displayed in the wrong region.
- Proposed as answer by Ricky_Brundritt Friday, January 25, 2019 8:39 PM
- Marked as answer by IoTGirlMicrosoft employee Monday, January 28, 2019 7:43 PM
Friday, January 25, 2019 8:39 PM -
Thank you Ricky_Brundritt
This worked!Monday, January 28, 2019 3:40 PM