Skip to content

Instantly share code, notes, and snippets.

@jaredrada
Created January 11, 2020 18:02
Show Gist options
  • Select an option

  • Save jaredrada/561a0ab8e22f6e422f690ee3afe6f1d8 to your computer and use it in GitHub Desktop.

Select an option

Save jaredrada/561a0ab8e22f6e422f690ee3afe6f1d8 to your computer and use it in GitHub Desktop.
private func drawLndare() {
let style = SLDStyleSet(viewC: globeView, useLayerNames: true, relativeDrawPriority: 100)
let styleUrl = Bundle.main.url(forResource: "my-sld", withExtension: "sld")
style!.loadSldURL(styleUrl)
let tileSource = MaplyMBTileSource(mbTiles: "out")
vecTiles = MapboxVectorTilesPagingDelegate(mbTiles: tileSource!, style: style!, viewC: globeView)
layer = MaplyQuadPagingLayer(coordSystem: tileSource!.coordSys, delegate: vecTiles!)
layer?.flipY = false
//layer?.importance = 256*256
//layer?.useTargetZoomLevel = true
//layer?.singleLevelLoading = true
globeView.add(layer!)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment