This sample demonstrates how to load a Web Map Tile Service (WMTS) and display it as a layer in a Map.
WMTS is a type of web map service developed by the Open Geospatial Consortium (OGC). To consume in ArcGIS Runtime, first create a WmtsService by passing in the URL to the WMTS service. Load the WmtsService by calling load, and wait for the service to load by connecting to the loadStatusChanged signal. Once the service loads, obtain the WmtsLayerServiceInfo and the list of WmtsLayerInfo from the loaded WmtsService. In this particular sample, the first layer is obtained from the list of WmtsLayerInfo, and that Layer's ID is retrieved. Finally, a WmtsLayer is created by setting the URL and the Layer ID that was obtained in the previous step. A basemap is created from the WmtsLayer, and this Basemap is added to a new Map
Resource Level: 🍌🍌
- Download the
.zip
file - Unzip and copy this folder into AppStudio Apps folder (Windows:
C:\Users\<username>\ArcGIS\AppStudio\Apps
Mac or linux:Home\ArcGIS\AppStudio\Apps
) - The new app will now appear in the AppStudio Desktop. Run the application or open it in the bundled Qt-Creator IDE to look at the code and modify.
Find a bug or want to request a new feature? Please let us know by submitting an issue.
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
Copyright 2021 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's license.txt file.
[](Esri Tags: ArcGIS Runtime SDK Qt QML JavaScript iOS Android Xamarin Ionic PhoneGap Mac linux Windows Apps samples templates appstudio) [](Esri Language: Qt QML JavaScript)