Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1099 from Esri/Ting/Fix-removeLayer-vNext
Browse files Browse the repository at this point in the history
Fix: remove invalid layer from `Show legend`
  • Loading branch information
yo1995 authored Aug 23, 2021
2 parents 3c2403d + ab2c90b commit d900edf
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ class MILShowLegendViewController: UIViewController, UIAdaptivePresentationContr
// initialize the map
self.map = AGSMap(basemapStyle: .arcGISTopographic)

// create tiled layer
let tiledLayer = AGSArcGISTiledLayer(url: URL(string: "https://services.arcgisonline.com/ArcGIS/rest/services/Specialty/Soil_Survey_Map/MapServer")!)
self.map.operationalLayers.add(tiledLayer)

// create a map image layer using a url
let mapImageLayer = AGSArcGISMapImageLayer(url: URL(string: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer")!)
// add the image layer to the map
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Show a legend for all the operational layers in the map.

![Image of Show legend 1](show-legend-1.png)
![Image of Show legend 2](show-legend-2.png)
![Image of Show legend 3](show-legend-3.png)

## Use case

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"ignore": false,
"images": [
"show-legend-1.png",
"show-legend-2.png",
"show-legend-3.png"
"show-legend-2.png"
],
"keywords": [
"legend",
Expand All @@ -15,16 +14,14 @@
"AGSLayerContent",
"AGSLegendInfo"
],
"redirect_from": [
"/ios/latest/swift/sample-code/show-legend.htm"
],
"redirect_from": [],
"relevant_apis": [
"AGSLayerContent",
"AGSLegendInfo"
],
"snippets": [
"MILLegendTableViewController.swift",
"MILShowLegendViewController.swift"
"MILShowLegendViewController.swift",
"MILLegendTableViewController.swift"
],
"title": "Show legend"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit d900edf

Please sign in to comment.