none
Override Street View source in UWP C# RRS feed

  • Question

  • I'm working on a Google Maps client for windows 10 devices called WinGo Maps, Now I'm trying to add street view to it. Also I don't want to add WebView. I was looking for someway to override StreetsidePanorama class or StreetsideExperience. For StreetSide Panorama class I were able to create a class like this :

    internal interface IStreetsidePanorama
        {
            Geopoint Location { get; }
        }
        public class MyStreetsidePanorama : DependencyObject, IStreetsidePanorama//StreetsidePanorama
        {
            //
            // Summary:
            //     Creates a StreetsidePanorama near the specified geographic location.
            //
            // Parameters:
            //   location:
            //     The center of the panoramic view.
            //
            // Returns:
            //     If available, the nearest StreetsidePanorama; otherwise, **null**.
            [Overload("FindNearbyWithLocationAsync")]
            [RemoteAsync]
            public static IAsyncOperation<StreetsidePanorama> FindNearbyAsync(Geopoint location)
            {
    
            }
            //
            // Summary:
            //     Creates a StreetsidePanorama near the specified geographic location and radius.
            //
            // Parameters:
            //   location:
            //     The center of the panoramic view.
            //
            //   radiusInMeters:
            //     The radius to appear in the panoramic view, in meters.
            //
            // Returns:
            //     If available, the nearest StreetsidePanorama; otherwise, **null**.
            [Overload("FindNearbyWithLocationAndRadiusAsync")]
            [RemoteAsync]
            public static IAsyncOperation<StreetsidePanorama> FindNearbyAsync(Geopoint location, double radiusInMeters)
            {
    
            }
    
            //
            // Summary:
            //     Gets the geographic location that corresponds to the StreetsidePanorama.
            //
            // Returns:
            //     The geographic location that corresponds to the StreetsidePanorama.
            public Geopoint Location { get; }
            //DependencyObject, IStreetsidePanorama
        }
    

    And also for StreetsideExperience I were able to create this:

    internal interface IStreetsideExperience
        {
            bool AddressTextVisible { get; set; }
            bool CursorVisible { get; set; }
            bool ExitButtonVisible { get; set; }
            bool OverviewMapVisible { get; set; }
            bool StreetLabelsVisible { get; set; }
            bool ZoomButtonsVisible { get; set; }
        }
        public sealed class MyStreetsideExperience : MapCustomExperience, IStreetsideExperience
        {
            //
            // Summary:
            //     Creates a StreetsideExperience based on the specified panoramic view.
            //
            // Parameters:
            //   panorama:
            //     The panoramic view to appear in the StreetsideExperience.
            public MyStreetsideExperience(StreetsidePanorama panorama)
            {
    
            }
            //
            // Summary:
            //     Creates a StreetsideExperience based on the specified panoramic view and camera
            //     position.
            //
            // Parameters:
            //   panorama:
            //     The panoramic view to appear in the StreetsideExperience.
            //
            //   headingInDegrees:
            //     The directional heading of the map's camera in degrees, where 0 or 360 = North,
            //     90 = East, 180 = South, and 270 = West. The default *headingInDegrees* value
            //     is 0.
            //
            //   pitchInDegrees:
            //     The pitch of the map's camera in degrees, where 90 is looking out at the horizon
            //     (maximum) and 0 is looking straight down (minimum). The default *pitchInDegrees*
            //     value is 90.
            //
            //   fieldOfViewInDegrees:
            //     The horizontal angle of view that appears in the map's camera, in degrees. The
            //     default *fieldOfViewInDegrees* value is 75.
            public MyStreetsideExperience(StreetsidePanorama panorama, double headingInDegrees, double pitchInDegrees, double fieldOfViewInDegrees)
            {
    
            }
    
            //
            // Summary:
            //     Gets or sets a value that indicates if zoom buttons are visible in the StreetsideExperience.
            //
            // Returns:
            //     **true** if zoom buttons are visible in the StreetsideExperience; otherwise,
            //     **false**.
            public bool ZoomButtonsVisible { get; set; }
            //
            // Summary:
            //     Gets or sets a value that indicates if street labels are visible in the StreetsideExperience.
            //
            // Returns:
            //     **true** if street labels are visible in the StreetsideExperience; otherwise,
            //     **false**.
            public bool StreetLabelsVisible { get; set; }
            //
            // Summary:
            //     Gets or sets a value that indicates if the overview map is visible in the StreetsideExperience.
            //
            // Returns:
            //     **true** if the overview map is visible in the StreetsideExperience; otherwise,
            //     **false**.
            public bool OverviewMapVisible { get; set; }
            //
            // Summary:
            //     Gets or sets a value that indicates if the exit button is visible in the StreetsideExperience.
            //
            // Returns:
            //     **true** if the exit button is visible in the StreetsideExperience; otherwise,
            //     **false**.
            public bool ExitButtonVisible { get; set; }
            //
            // Summary:
            //     Gets or sets a value that indicates if the cursor is visible in the StreetsideExperience.
            //
            // Returns:
            //     **true** if the cursor is visible in the StreetsideExperience; otherwise, **false**.
            public bool CursorVisible { get; set; }
            //
            // Summary:
            //     Gets or sets a value that indicates if address text is visible in the StreetsideExperience.
            //
            // Returns:
            //     **true** if address text is visible in the StreetsideExperience; otherwise, **false**.
            public bool AddressTextVisible { get; set; }
        }
    

    But really don't have any idea for how to code their functions and properties to work correctly. Thank you


    Tuesday, March 27, 2018 8:26 PM

Answers

  • I think the answer is accurate. It appears that your app is not using the Bing maps UWP API, but rather hosting Google maps. If you want to know about Google's Street view API, you should ask in the Google development forums.

    If you wanted to use the Bing maps API for your UWP app, it is available and documented here:

    https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/index 

    How to use Streetside mode is documented here:

    https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/display-maps#display-streetside-views

    There is no way to override the source of Streetside data.

    Wednesday, March 28, 2018 4:36 PM
    Moderator

All replies

  • These forums are specifically for Bing Maps APIs. Your best bet is to reach out to the WinGo Maps Team to address your technical questions.  

    Wednesday, March 28, 2018 2:09 PM
    Moderator
  • These forums are specifically for Bing Maps APIs. Your best bet is to reach out to the WinGo Maps Team to address your technical questions.  

    I am <g class="gr_ gr_31 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="31" id="31">WinGo</g> Maps Developer!

    My question is about how to modify bing maps UWP APIs to use another source for showing street view.
    Please read my question once again. 

    Wednesday, March 28, 2018 3:00 PM
  • I think the answer is accurate. It appears that your app is not using the Bing maps UWP API, but rather hosting Google maps. If you want to know about Google's Street view API, you should ask in the Google development forums.

    If you wanted to use the Bing maps API for your UWP app, it is available and documented here:

    https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/index 

    How to use Streetside mode is documented here:

    https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/display-maps#display-streetside-views

    There is no way to override the source of Streetside data.

    Wednesday, March 28, 2018 4:36 PM
    Moderator