Hi
I am having trouble after loading the lite license key to remove the watermark in the ArcGIS Runtime iOS SDK.
func setupMap() {
guard let map = map else { return }
let raster = AGSRaster(fileURL: map.url)
let rasterLayer = AGSRasterLayer(raster: raster)
self.rasterLayer = rasterLayer
let agsMap = AGSMap(basemap: AGSBasemap(baseLayer: rasterLayer))
mapView.map = agsMap
}
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
let arcGISLicenseKey = "<LITE_LICENSE_KEY_OBTAINED_FROM_DASHBOARD>"
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let result = try! AGSArcGISRuntimeEnvironment.setLicenseKey(arcGISLicenseKey)
switch (result.licenseStatus) {
case .invalid:
print("invalid license")
case .expired:
print("expired license")
case .loginRequired:
print("login required")
case .valid:
print("valid license")
@unknown default:
print("Unknown case for licenseStatus")
}
return true
}
}
When I run this code, the console prints "valid license" and I no longer see the message in the console of "Licensed For Developer Use Only" but the map is showing blank. I get no further messages in the console.
How can I load the license successfully and be able to load the map correctly?
Solved! Go to Solution.
Hi Adrian - I think displaying local raster data sources like GeoTiff imagery requires a Standard level license. An application with a Lite license can't show those. I'd suggest you try loading a web vector tile or raster tile baesmap to confirm the map is loading properly.
Hi Adrian - I think displaying local raster data sources like GeoTiff imagery requires a Standard level license. An application with a Lite license can't show those. I'd suggest you try loading a web vector tile or raster tile baesmap to confirm the map is loading properly.
Thanks Michael. You are right, AGSRaster requires a Standard license, as stated here:
- This feature requires a Standard license for production deployment. No license required in Developer mode for testing.