Skip to content

Instantly share code, notes, and snippets.

@zkkmin
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zkkmin/5baf260b0ca290474776 to your computer and use it in GitHub Desktop.
Save zkkmin/5baf260b0ca290474776 to your computer and use it in GitHub Desktop.
override func viewDidLoad() {
super.viewDidLoad()
// set OneMap base map url
let url = NSURL(string: "http://e1.onemap.sg/arcgis/rest/services/BASEMAP/MapServer")
// create a tiled map layer
let tiledLayer = AGSTiledMapServiceLayer(URL: url)
// add layer to the mapView UIView
self.mapView.addMapLayer(tiledLayer, withName: "Basemap Tiled Layer")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment