Created
January 11, 2020 18:02
-
-
Save jaredrada/561a0ab8e22f6e422f690ee3afe6f1d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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