Resize and cantralize Maps for mobile

Hello, 

I'm using Blazor package version 18.1.0.52

How to resize and cantralize Maps for mobile?

Thank you!

3 Replies

SB Swetha Babu Syncfusion Team May 22, 2020 01:36 PM UTC

Hi Marcelo, 

Thank you for contacting Syncfusion support. 

We can centralize the map using the “Latitude” and “Longitude” property in “MapsCenterPosition” property.  The blazor maps component supports responsiveness. If you resize the window, the maps component gets resized based on the window size. So when you render the map in the mobile device, the component will be rendered to the mobile size. We have created the simple blazor application for the same and it can be downloaded from the following link. 


In the above sample, we have created the simple world map using the “ShapeData” property in the “MapsLayer” and we have rendered the markers on the world map using the “DataSource” property in “MapsMarker”.  

Please let us know if you need further assistance. 

Regards, 
Swetha Babu


MO Marcelo Oliveira Santos May 22, 2020 03:43 PM UTC

Hi Swetha Babu

So simple.

Thank you.


SB Swetha Babu Syncfusion Team May 25, 2020 09:45 AM UTC

Hi Marcelo, 

Most Welcome! Please get back to us if you need further assistance 

Regards, 
Swetha Babu

Loader.
Up arrow icon