How to visualize the Esri’s ArcGIS in the .NET MAUI Maps (SfMaps)?
In the Syncfusion® .NET MAUI Maps control, you can visualize Esri’s ArcGIS maps by providing its URL to the MapTileLayer’s UrlTemplate property.
To incorporate Esri’s ArcGIS maps, add the SfMaps control to your layout and include the MapTileLayer to the SfMaps‘s Layer as shown in the following code sample.
XAML:
<map:SfMaps>
<map:SfMaps.Layer>
<map:MapTileLayer x:Name="layer" />
</map:SfMaps.Layer>
</map:SfMaps>
Assign the ArcGIS map tile URL to the UrlTemplate property of the MapTileLayer, as shown in the following code sample.
C#:
this.layer.UrlTemplate = "https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}?apiKey=Your-Key";
You need an API key to access tiles from the ArcGIS provider. Follow the steps listed in this link to create the key and replace the word ‘Your-Key’ with the actual key in the above code sample.
Note: Please check the licensing details before using it.
Similarly, you can easily visualize Bing Maps, TomTom, Azure, OpenStreetMaps, and other map services in the Syncfusion® .NET MAUI Maps.
Output:
Conclusion:
I hope you enjoyed learning how to visualize Esri’s ArcGIS maps in the .NET MAUI Maps (SfMaps).
Refer to our .NET MAUI Maps feature tour page to learn about its other groundbreaking feature representations. You can explore our .NET MAUI Maps documentation to understand how to present and manipulate data.
Check out our .NET MAUI components from the License and Downloads page for current customers. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Maps and other .NET MAUI components.
Please let us know in the comments section if you have any questions or require clarification. Contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!