Last active
August 29, 2015 14:17
-
-
Save zkkmin/5baf260b0ca290474776 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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