Google Map Satellite view

I have google maps working well but was wondering how I could change to satellite view? It is mentioned in your front page but I could find no examples.

Image_6734_1692974855797


1 Reply

IR Indumathi Ravi Syncfusion Team August 28, 2023 07:02 AM UTC

Hi Sheldon,


The Syncfusion Blazor Maps component supports various online maps, such as OpenStreetMap, Bing Maps, and more. These maps are rendered through their tile server URL which provides tile images to render the map in the component. As provided in the mentioned UG document, the tile server URL must follow the below format.


https://< domain_name >/maps/basic/{z}/{x}/{y}.png


”${z}” - It represents zoom factor (level).

”${x}” - It indicates tile image x-position (tileX).

”${y}” - It indicates tile image y-position (tileY).


However, to render the Google Maps that provides a tile server URL for the satellite and street view imagery, we can render the map in the Maps component by setting the appropriate URL in the “UrlTemplate” property of the “MapsLayer” tag. In the URL provided below, we must specify the desired view type for the map within the tile server URL to render the Map.

http://mt0.google.com/vt/lyrs=s&hl=en&x=tileX&y=tileY&z=level


You can find the sample for demonstration from the below link.

https://blazorplayground.syncfusion.com/BNVKNFrvrTgjRRcb

To know more about the online map providers rendering in the Maps component, please follow the below documentation link.

https://blazor.syncfusion.com/documentation/maps/providers/other-maps


Please let us know if you need any further assistance.


Loader.
Up arrow icon