Is there a dark mode for SfMap?

Hello,


Soru başlıktaki gibi projede SfMap kullanmak istiyorum. Haritanın karanlık modu var mı ? Varsa nasıl uygulayabilirim. 


Bilgi verir misiniz ? 

Teşekkürler.


6 Replies 1 reply marked as answer

ET Eswaran Thirugnanasambandam Syncfusion Team December 14, 2021 03:45 PM UTC

Hi Özgür, 
 
Greetings from Syncfusion. 
 
We have checked your requirement and we would like to inform that we can apply dark theme using SfSkinManager. Based on your requirement we have prepared the sample in which we have applied the dark theme for maps control. Please get the sample from the below link. 
 
 
Please find the below user guide documentation link for more information about applying theme. 
 
Please check the sample and let us know if you have need any further assistance. 
 
Regards,  
Eswaran. 


Marked as answer

ET Eswaran Thirugnanasambandam Syncfusion Team March 4, 2022 04:38 PM UTC

The provided shape file contains only the country’s region coordinates. So it shows the country’s regions only. To display the street information in Maps, we must load the shapes with the street coordinates. You can get the shape files from the below link 
 
 
Please refer the below user guide documentation link for more information about shape files 



ÖZ Özgür March 4, 2022 05:15 PM UTC

Hello, 

sorry for my late reply. Your reply has been lost among my emails. I checked your example, but in this example, areas such as streets and avenues are not displayed on the map. How can I solve this?



ÖZ Özgür March 7, 2022 10:37 AM UTC

Hello,


I followed the path as you mentioned. But I couldn't. I chose Turkey from the relevant site. I chose the roads. I downloaded the files. I defined it as in the code below. But I still can't see the roads.


There is also an unusual shift when zooming in on this map. What is the reason of this ?


   <Sync:SfMap x:Name="map">

            <Sync:SfMap.Layers>

                <Sync:ShapeFileLayer x:Name="layer" Uri="GettingStarted.ShapeFiles.TUR_roads.shp">

                    </Sync:ShapeFileLayer>

            </Sync:SfMap.Layers>

        </Sync:SfMap>



ÖZ Özgür March 7, 2022 10:45 AM UTC

Hello again, I was able to do the application. Thank you. But it wasn't what I expected. I would expect something like normal SfMap to have dark mode as an image. It only contains lines showing paths and is slow in performance.



ET Eswaran Thirugnanasambandam Syncfusion Team March 8, 2022 04:48 PM UTC

The Turkey shapefile contains around 5000 shape coordinates. So, it takes time to generate those shapes and render in the UI. We recommend to use the Imagery layer support as mentioned in the below snippet.  
 
[XAML] 
<syncfusion:SfMap ZoomLevel="3"> 
        <syncfusion:SfMap.Layers> 
            <syncfusion:ImageryLayer LayerType="OSM"/> 
        </syncfusion:SfMap.Layers> 
    </syncfusion:SfMap> 
 
Please refer the below user guide documentation link for more information. 


Loader.
Up arrow icon