Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
945 B
4
Indexable
Never
  map.setTileSource(object : OnlineTileSourceBase(
                "USGS Sat",
                0,
                18,
                256,
                ".png",
                arrayOf("https://2.aerial.maps.ls.hereapi.com/maptile/2.1/maptile/newest/hybrid.day/18/184189/116813/256/png8?apiKey=IPTEDpK8mbJtwQAX-YIZRoty81BzpLwXwRHFxngkRqU")
            ) {
//                https://2.aerial.maps.ls.hereapi.com/maptile/2.1/maptile/newest/hybrid.day/18/184189/116813/256/png8?apiKey=IPTEDpK8mbJtwQAX-YIZRoty81BzpLwXwRHFxngkRqU
                override fun getTileURLString(pMapTileIndex: Long): String {
                    return (baseUrl
                            + MapTileIndex.getZoom(pMapTileIndex)
                            + "/" + MapTileIndex.getY(pMapTileIndex)
                            + "/" + MapTileIndex.getX(pMapTileIndex)
                            + mImageFilenameEnding)
                }
            })
Leave a Comment