SfMap and Google Maps

It seems to be implied here and there in your docs and on your website that Google Maps can be used in SfMap ( not having to use javascript to call their api's directly ). I can't, however, find any examples.


Can you provide a small example?

Thanks


7 Replies

IR Indumathi Ravi Syncfusion Team August 10, 2023 11:48 AM UTC

Hi Sheldon,


The Syncfusion Blazor Maps component supports various online maps, such as OpenStreetMap, Bing Maps, TomTom, ESRI and MapBox. These maps are render through their tile server URL which provides tile images to render the map in the component. 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 in the Syncfusion Maps component, their tile server URL must be similar to the link below. The tile server URL must be set in the “UrlTemplate” property in the “MapsLayer” tag to render the online map.

https://mt.google.com/vt/lyrs=m&x=tileX&y=tileY&z=level


We have created a sample to demonstrate the same and it can be found from the below link.

https://blazorplayground.syncfusion.com/LthKjFXCfVPddrpl


Please let us know if you need any further assistance.



SH Sheldon August 10, 2023 12:01 PM UTC

That is perfect. Thank you !



JS Jayashree Suresh Anand Syncfusion Team August 11, 2023 07:16 AM UTC

Hi Sheldon,

You're welcome. Please get back to us if you need any further assistance. we will be happy to help you. 

Regards,

Jayashree 



DT Dhananjay Tathe April 19, 2024 11:10 AM UTC

https://blazorplayground.syncfusion.com/LthKjFXCfVPddrpl this link is not valid. Can you please enable this link.



IR Indumathi Ravi Syncfusion Team April 22, 2024 12:29 PM UTC

Hi Dhananjay,


We can run the sample using the provided link. However, we have created a local sample, which can be found at the link below for your reference.

https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorSample-712562925


Please let us know if you need any further assistance.



AM Alex mills December 12, 2024 06:16 AM UTC

SfMap and Google Maps both offer great mapping solutions, but they cater to different needs. Google Maps is widely recognized for its comprehensive features and global coverage, while SfMap provides tailored functionalities. For developers and businesses, having 5 star Google reviews can enhance visibility and build trust for apps utilizing these mapping tools.



CA Chrispine Agunja Imbo Syncfusion Team December 13, 2024 06:27 AM UTC

Hi Alex,

Thank you for your update. We have noted your observation and appreciate your proactive communication.

If you have any further questions or need assistance in the future, please do not hesitate to contact us.

Regards,

Chris


Loader.
Up arrow icon