POST
|
hi folks im trying to implement a public wmts layer (https://wmts.geo.admin.ch/EPSG/2056/1.0.0/WMTSCapabilities.xml). with this code: let wmtsService = AGSWMTSService(url: URL(string("https://wmts.geo.admin.ch/EPSG/2056/1.0.0/WMTSCapabilities.xml")))
//load the WMTS service to access the service information
wmtsService.load { (error) in
if let error = error {
DDLogError("Failed to load wmts basemap. \(error)")
} else if let layerInfo = wmtsService.serviceInfo?.layerInfos.first(where: { $0.layerID == "ch.swisstopo.pixelkarte-farbe"}) {
let wmtsLayer = AGSWMTSLayer(layerInfo: layerInfo)
let basemap = AGSBasemap(baseLayer: wmtsLayer)
completionHandler(basemap)
}
} The WMTS Service is loading without error but the Basemap doesn't display anything. So i debugged it with Postman. The Layer is trying to load the tiles from an URL like this: https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default//21781/20/58/70.jpeg causing a 404 because the <Time> parameter is empty. The correct URL would be https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/21781/20/58/70.jpeg How can i force the WMTSLayer to provide the "current" keyword to the <Time> parameter? Thanks a lot! Mike
... View more
12-02-2022
02:43 AM
|
0
|
2
|
750
|
IDEA
|
Same here! We are also migrating our apps to Flutter for the same reasons as @JakeShapley mentioned. We really need a ArcGIS SDK for Flutter as soon as possible!
... View more
05-13-2022
01:21 AM
|
0
|
0
|
2609
|
POST
|
For all who have the same issue this two lines make the magic happen: let tiledLayer = AGSArcGISTiledLayer(url: basemapUrl) tiledLayer.noDataTileBehavior = .upSample tiledLayer.maxScale = 0 tiledLayer.minScale = 0 let map = AGSMap(basemap: AGSBasemap(baseLayer: tiledLayer)) Thanks Nick for your help!!!
... View more
06-20-2019
11:45 PM
|
3
|
1
|
2712
|
POST
|
Hi Nick, it's a private self-created basemap. i created a Xcode Project which demonstrates the behavior. The project is in a private Github repo. I added you (nixta) as collaborator. Thank you! Mike
... View more
01-16-2019
02:03 AM
|
1
|
4
|
2712
|
POST
|
Thanks Divesh and Nicholas! Unfortunately it didn't work . The basemap still disappears when zooming in. Any other hints?
... View more
11-20-2018
12:16 AM
|
0
|
1
|
2712
|
POST
|
Hi there! with the 10.2.5 SKD we found a solution to zoom in more than there are Level of Details defined for the TiledLayer. // Set the maximum zoom level. mapView.maxScale = mapView.scale(forResolution: 0.002) mapView.minScale = 250000 self.currentBaseMap?.maxScale = mapView.scale(forResolution: 0.002) self.currentBaseMap?.minScale = 250000 you can see the resulting screenshot attached. it looks ugly but does the job for our customers. In the last 3 month we migrated to 100.4 even if i managed to zoom in indefinitely with that code: mapView.map?.maxScale = 0 mapView.map?.minScale = 0 the basemap does not resample after reaching the maximum Level of Details. how do i achive the same result as with the old SDK? Thank you very much! Cheers, Mike
... View more
10-31-2018
01:14 AM
|
0
|
9
|
3219
|
POST
|
Hi Christopher, sorry for the late response! I resolved this error by sorting the layer IDs when downloading them: var layerOptions = [AGSGenerateLayerOption]() // it's very, very important that the layerIDs are in the correct order! otherwise we have the following error message: // Error Domain=com.esri.arcgis.runtime.error Code=2 "Invalid argument" UserInfo={NSLocalizedFailureReason=!input_SR || !output_SR, NSLocalizedDescription=Invalid argument, Additional Message=!input_SR || !output_SR} for layerID in layerIDs.sorted() { let layerOption = AGSGenerateLayerOption(layerID: layerID) layerOption.useGeometry = useGeo layerOption.includeRelated = !useGeo layerOption.whereClause = whereClause layerOption.queryOption = .useFilter layerOptions.append(layerOption) } //parameters let params = AGSGenerateGeodatabaseParameters() params.extent = areaToDownload params.layerOptions = layerOptions ... Hope that helps! Cheers, Mike
... View more
10-30-2018
11:45 PM
|
0
|
0
|
771
|
POST
|
Hi Jake! it works perfectly! thank you for your detailed answer! Cheers, Mike
... View more
10-30-2018
11:41 PM
|
0
|
0
|
870
|
POST
|
Hi! i have a Feature Layer witch can contain overlapping features (all the same colour). When the user tapps on the features i'll show him a "feature chooser" to select only one feature. But if the selected feature is smaller than an overlapping one and is beneath the bigger feature, the user can't see the selected feature at all. How can i lift the selected feature higher? (See "SelectedFeature.png") Thanks for your help!
... View more
10-25-2018
12:40 AM
|
0
|
2
|
1010
|
POST
|
Hi, I'm trying to update an AGSArcGISFeature (anlageFeature) with this code (offline): self.anlageTable.update(anlageFeature, completion: { (error) in print("error updating anlage: \(String(describing: error))") }) But I'm getting an Error: error updating anlage: Optional(Error Domain=com.esri.arcgis.runtime.error Code=2 "Invalid argument" UserInfo={NSLocalizedFailureReason=!input_SR || !output_SR, NSLocalizedDescription=Invalid argument, Additional Message=!input_SR || !output_SR}) Can anybody help me with this? Thank you! Cheers Mike
... View more
10-18-2017
07:10 AM
|
0
|
2
|
1295
|
POST
|
In my iOS App I use ArcGIS-Runtime-SDK-iOS 100.0.0 with Cocoapods. The downloaded Framework is 1.33 GB and my .ipa File is 250MB... ~60MB of the file size are ressources/code of my project. But the big part (~190MB) is caused by the ArcGIS SDK. In an other project I use the old SDK (10.2.5). The resulting ipa File is just 45MB. Is there a way to make my App with the new SDK smaller? Kind regards, Mike
... View more
03-02-2017
10:38 PM
|
0
|
1
|
1958
|
Title | Kudos | Posted |
---|---|---|
1 | 01-16-2019 02:03 AM | |
3 | 06-20-2019 11:45 PM |
Online Status |
Offline
|
Date Last Visited |
12-03-2022
01:17 AM
|