
The code uses the static fromEdges method from the CoordinateQuad class. The KML ground overlay in this sample is for the Chartres cathedral, and it's sourced from Wikimedia. But, the image layer expects coordinates for each corner of the image. KML ground overlays provide north, south, east, and west coordinates, and a counter-clockwise rotation.
ARTSTUDIO IOS NEW LAYER FROM IMAGE HOW TO
This sample demonstrates how to add KML ground overlay information as an image layer on the map. The following screenshot shows a map of Newark, New Jersey, from 1922 overlaid using an image layer.

However, if your scenario allows, add the image to your project's Assets folder, that will load faster since the image will be locally available and won't have to be downloaded. (layer, below: "labels")Īlternatively, a URL to an image hosted on the online can be specified. Add the image layer to the map, below the label layer. Adding image layers below the label layer is often desirable. An image layer is created by setting the image and coordinates for the four corners in the format. This image is added to the Assets folder of the project. The following code overlays an image of a map of Newark, New Jersey, from 1922 on the map. In this case, consider breaking your image up into tiles, and loading them into the map as a tile layer. Note that large images can consume a lot of memory and potentially cause performance issues.

An image layer is an easy way to overlay an image on a map.
