Mobile Integration
Integrate Geolocarta aerial imagery and cadastral data into native iOS and Android applications.
iOS (Swift)
Add the Geolocarta tile source to your Mapbox Maps SDK for iOS project:
import MapboxMaps
let tileSource = RasterSource(id: "gc-aerial")
tileSource.tiles = [
"https://tiles.geolocarta.com/xyz/aerial/{z}/{x}/{y}.png?api_key=\(apiKey)"
]
tileSource.tileSize = 256
let aerialLayer = RasterLayer(id: "aerial-layer", source: "gc-aerial")
try mapView.mapboxMap.addSource(tileSource)
try mapView.mapboxMap.addLayer(aerialLayer)
Android (Kotlin)
val tileSource = rasterSource("gc-aerial") {
tiles(listOf(
"https://tiles.geolocarta.com/xyz/aerial/{z}/{x}/{y}.png?api_key=$apiKey"
))
tileSize(256)
}
val aerialLayer = rasterLayer("aerial-layer", "gc-aerial") {}
mapboxMap.loadStyle(style(Style.LIGHT) {
+tileSource
+aerialLayer
})
Security
caution
Never embed your API key directly in mobile app code. Use short-lived access tokens generated from your backend server.
Offline Support
For field use in areas with limited connectivity, pre-download tiles for a specific region:
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"bounds": [-27.48, 153.02, -27.46, 153.04], "zoom_range": [12, 18]}' \
https://api.geolocarta.com/v1/tiles/package
This returns a downloadable MBTiles file for offline use.
Was this page helpful?