{"id":16088000,"url":"https://github.com/twoeightnine/staticmap","last_synced_at":"2026-05-17T03:32:37.682Z","repository":{"id":85833365,"uuid":"279504034","full_name":"TwoEightNine/StaticMap","owner":"TwoEightNine","description":"android-library to display static pieces of map","archived":false,"fork":false,"pushed_at":"2020-07-27T07:57:08.000Z","size":3813,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T12:41:35.389Z","etag":null,"topics":["android","kotlin","library","map"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TwoEightNine.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-14T06:40:14.000Z","updated_at":"2024-02-27T01:35:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"dbf4f831-b814-4209-9a2b-12e137a35306","html_url":"https://github.com/TwoEightNine/StaticMap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwoEightNine%2FStaticMap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwoEightNine%2FStaticMap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwoEightNine%2FStaticMap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwoEightNine%2FStaticMap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TwoEightNine","download_url":"https://codeload.github.com/TwoEightNine/StaticMap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361598,"owners_count":20926642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","kotlin","library","map"],"created_at":"2024-10-09T13:34:37.695Z","updated_at":"2026-05-17T03:32:32.636Z","avatar_url":"https://github.com/TwoEightNine.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## StaticMap\n\nStaticMap is a library for showing a static piece of map without having to use powerful but hard-weight maps engines.\nStaticMap API allows you to load a map right into `ImageView`.\n\n![](https://github.com/TwoEightNine/StaticMap/raw/master/staticmap_sample.gif)\n\n### usage\n\nadd this dependency to your app-level `build.gradle`:\n\n```groovy\nimplementation 'com.twoeightnine.staticmap:staticmap:0.1'\n```\n\nafter sync is done create preferred `TileLoader` (loads image by url into bitmap) and \n`TileProvider` (converts tile coordinates into tile url)\n\n```kotlin\nprivate inner class CustomTileLoader : TileLoader {\n    override fun loadTile(tileUrl: String, callback: TileLoader.Callback) {\n        try {\n            val bitmap = Glide.with(this@MainActivity)\n                .asBitmap()\n                .load(tileUrl)\n                .into(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL)\n                .get()\n            callback.onLoaded(bitmap)\n        } catch (e: Exception) {\n            callback.onFailed(e)\n        }\n    }\n}\n\nprivate inner class CustomTileProvider : TileProvider {\n    override fun getTileUrl(tile: Tile): String =\n        \"https://c.tile.openstreetmap.org/${tile.z}/${tile.x}/${tile.y}.png\"\n}\n```\n\nthen load a map\n\n```kotlin\nval tileEssential = TileEssential(CustomTileProvider(), CustomTileLoader())\nval pinIcon = ContextCompat.getDrawable(this, R.drawable.ic_pin)\nvar latLngZoom = LatLngZoom(0.0, 0.0, 16)\n\nStaticMap.with(tileEssential)\n        .load(latLngZoom)\n        .pin(pinIcon)\n        .into(yourImageView)\n```\n\n##### issues and contribution are welcome!\n\n#### twoeightnine, 2020 ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwoeightnine%2Fstaticmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwoeightnine%2Fstaticmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwoeightnine%2Fstaticmap/lists"}