{"id":13645374,"url":"https://github.com/jineshfrancs/ThemedGoogleMap","last_synced_at":"2025-04-21T14:30:41.780Z","repository":{"id":163804818,"uuid":"77017882","full_name":"jineshfrancs/ThemedGoogleMap","owner":"jineshfrancs","description":"Utility class to make GoogleMap with custom theme.","archived":false,"fork":false,"pushed_at":"2023-02-01T11:37:26.000Z","size":847,"stargazers_count":169,"open_issues_count":0,"forks_count":28,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-09T18:42:15.339Z","etag":null,"topics":["custom-theme","googlemaps"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jineshfrancs.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}},"created_at":"2016-12-21T04:33:39.000Z","updated_at":"2023-08-03T07:14:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"67a30e17-15fe-4767-aab9-e747a8e63c08","html_url":"https://github.com/jineshfrancs/ThemedGoogleMap","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jineshfrancs%2FThemedGoogleMap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jineshfrancs%2FThemedGoogleMap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jineshfrancs%2FThemedGoogleMap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jineshfrancs%2FThemedGoogleMap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jineshfrancs","download_url":"https://codeload.github.com/jineshfrancs/ThemedGoogleMap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070173,"owners_count":21369839,"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":["custom-theme","googlemaps"],"created_at":"2024-08-02T01:02:34.165Z","updated_at":"2025-04-21T14:30:41.332Z","avatar_url":"https://github.com/jineshfrancs.png","language":"Java","funding_links":[],"categories":["地图"],"sub_categories":[],"readme":"# ThemedGoogleMap\nUtility class to make GoogleMap with custom theme.\n\n\u003cimg src=\"https://github.com/jineshfrancs/ThemedGoogleMap/blob/master/screens/screen1.png\" width=\"240\" height=\"400\"\u003e  \u003cimg src=\"https://github.com/jineshfrancs/ThemedGoogleMap/blob/master/screens/screen4.png\" width=\"240\" height=\"400\"\u003e  \u003cimg src=\"https://github.com/jineshfrancs/ThemedGoogleMap/blob/master/screens/screen3.png\" width=\"240\" height=\"400\"\u003e\n\nCreate your own theme like this\n\n```java\nGoogleMapStyler googleMapStyler = new GoogleMapStyler.Builder(MainActivity.this)\n                        .setMainGeometryColorRes(R.color.maingeometrycolor)\n                        .setAllPlaceTextStrokeAlpha(-80)\n                        .setAllPlaceTextColorRes(R.color.adminstartivelabel)\n                        .setAllMainTownTextColorRes(R.color.administativelocality)\n                        .setAllPoiTextColorRes(R.color.poitext)\n                        .setAllPoiParkBackgroundColorRes(R.color.poiparkbackground)\n                        .setAllPoiParkTextColorRes(R.color.poilabel)\n                        .setAllRoadBackgroundColorRes(R.color.roadbackground)\n                        .setAllRoadTextColorRes(R.color.roadlabel)\n                        .setAllRoadArterialBackgroundColorRes(R.color.roadarterialbackground)\n                        .setAllRoadArterialStrokeColorRes(R.color.roadarterialstroke)\n                        .setAllRoadHighwayBackgroundColorRes(R.color.roadhighway)\n                        .setAllRoadHighwayStrokeColorRes(R.color.roadhighwaystroke)\n                        .setAllRoadHighwayTextColorRes(R.color.roadhighwaylabel)\n                        .setAllRoadLocalBackgroundColorRes(R.color.roadlocal)\n                        .setAllRoadLocalStrokeColorRes(R.color.roadlocalstroke)\n                        .setAllTransitStationTextColorRes(R.color.transitstationtext)\n                        .setAllTransitBackgroundColorRes(R.color.transit)\n                        .setAllWaterTextColorRes(R.color.waterlabel)\n                        .setAllWaterBackgroundColorRes(R.color.water)\n                        .setAllWaterTextStrokeAlpha(-20)\n                        .build();\n\n// Alternatively to use a Color int, remove the Res from the method name\n// Example:\n// setMainGeometryColor(Color.BLACK)\n                        \n```\nApply generated style to google map\n\n```java\n googleMap.setMapStyle(googleMapStyler.getMapStyleOptions());\n```\nUse in your project\n------\n\n1.Add it in your root build.gradle at the end of repositories:\n```gradle\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\n\n2.Add the dependency in your app build.gradle file:\n```gradle\ndependencies {\n\t       compile 'com.github.jineshfrancs:ThemedGoogleMap:1.0'\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjineshfrancs%2FThemedGoogleMap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjineshfrancs%2FThemedGoogleMap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjineshfrancs%2FThemedGoogleMap/lists"}